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