Issues with the application of localhost to Linux applications

Source: Internet
Author: User

Chen Kozhan

============

Recently encountered a wonderful problem:

Premise-Linux environment; Oracle database has been built, and Tomcat has built and deployed applications;

Reason:

I deployed the same application in Tomcat under Win7 with Linux and then accessed the Oracle database in Linux, and the test was successful and the application worked.

However, when I go to the Linux environment where Tomcat deploys the application, the login page of the application is normally accessible because it also needs to be connected to the database, so it works properly. But when I got to the database, I got an error, and I looked at Tomcat's log and found the following:

Hibernate:
Select
SystemID
from
hidp_sys_is
where
systemcode=?
Abandonedobjectpool is used ([email protected])
Logabandoned:false
removeabandoned:true
removeabandonedtimeout:600
2015-02-05 16:23:16 [http-bio-8080-exec-9:18957]-[ERROR] Cannot create poolableconnectionfactory (the Network Adapter could not establish the connection)

I wonder, how can not access the database, before Windows when not good, really wonderful!

=================================================================

Solution:

I think for a moment, it suddenly occurred to me that when I configured the Oracle instance, it was useless to find localhost under Linux.

Yes, the problem is, it's stuck here.

Then you configure the " data source" when the write localhost to your native IP address, you can access the database normally.

========

This is about, under Linux, how to get the local host IP problem!

Cond...

Issues with the application of localhost to Linux applications

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.