This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes DB Connectivity issues Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "DB Connectivity issues" Watch "DB Connectivity issues" New topic
Author

DB Connectivity issues

Srinivas Katta
Ranch Hand

Joined: Feb 01, 2007
Posts: 76
Hi,

I have Deployed the application in JBoss and trying to login from the application but we are getting DB Connectivity issues as below
---------------------------------------------------------------------------------
Caused by: java.sql.SQLException: The Network Adapter could not establish the connection
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:412)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:531)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:221)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:503)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:151)
-------------------------------------------------------------------------------------------

We have the Required Oracle Driver jar file in default/lib folder and tried having thsi jar in WEB-INF/lib folder also

I can ping the DB Server from App server and can telnet the port

Please let me know if anybody encountered this issue

Thanks
Srinivas
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5838
    
    7

This is really an Oracle JDBC issues, and not anything to do with JBoss AS. Try googling the error message. I did and found this which might help (no guarantees since I don't use Oracle):
http://www.websina.com/bugzero/kb/oracle-connection.html


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DB Connectivity issues