Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

The Network Adapter could not establish the connection In OC4J

68775Mar 13 2002
I have Server 1 with Oracle8.1.7 database and 9i AS 1.0.2.2.1 and another server 2 with Oracle 9i database.

When my EJB tries to connect to Oracle 9i database on server 2
I have the error in oc4j.

I tried all kinds of Classes12.zip files in j2ee/home/lib. It does not help me. I can use orionconsole from my PC and connect it EJB in the server 1. Then I can access the Server 2 database no problem. Why ??? Any body can help me ?

From my pc using the same EJB (on my pc) I have no problems talk to Server 2 database.


$ java -jar orion.jar
Oracle9iAS (1.0.2.2.1) Containers for J2EE initialized
java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:222)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:335)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:334)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:442)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:321)
at com.evermind.sql.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:118)
at com.mot.common.dbcap.authentication.ejb.AuthenticationSQLJ.<init>(AuthenticationSQLJ.sqlj:62)
at com.mot.common.dbcap.authentication.ejb.AuthenticationBean.authenticate(AuthenticationBean.java:25)
at Authentication_StatelessSessionBeanWrapper2.authenticate(Authentication_StatelessSessionBeanWrapper2.java:54)
at java.lang.reflect.Method.invoke(Native Method)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:66)
at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 12 2002
Added on Mar 13 2002
3 comments
323 views