How to Setup Global JNDI Mapping
|
by Gregg Lagnese, MicroDeveloper, Inc. |
May 16, 2005 v1.3 |
Troubleshooting |
8) Check the database first |
Verify database connectivity a) TNSPing the database b) Connect using the username and password in step 1 c) Verify the server, sid, and port |
9) Error messages |
Driver errors usually look like (Cannot create JDBC driver of class '' for connect URL 'null'): Javax Driver errors looking like "java.sql.SQLException: No suitable driver" <Resource name="jdbc/<alias>" auth="Container" type="javax.sql.DataSource" driverClassName="oracle.jdbc.driver.OracleDriver" ... But I never found that to work reliably. This works every time (see step 1); note the inclusion of the factory: <Resource name="jdbc/<alias>" auth="Container" type="oracle.jdbc.pool.OracleDataSource" driverClassName="oracle.jdbc.driver.OracleDriver" Ensure that the resource link (step 2) is in either: Error messages that 'jdbc' is an unknown context: naming-factory.jar naming-factory-dbcp.jar naming-resources.jar IO Error Messages 'Io exception: The Network Adapter could not establish the
connection'
|