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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

jdbc Tomcat db2

843854Nov 17 2004 — edited Dec 23 2005
Hello Java Gurus,

Please please please help me with my problem. I have an application which connects to db2 through tomcat 4.0.1. But I am unable to connect to the database. The following are my errors:
java.lang.UnsatisfiedLinkError: SQLAllocEnv
at COM.ibm.db2.jdbc.app.DB2Driver.SQLAllocEnv(Native Method)
at COM.ibm.db2.jdbc.app.DB2Driver.(DB2Driver.java:244)
at COM.ibm.db2.jdbc.app.DB2Driver.(DB2Driver.java:129)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at database.Database.(Database.java:30)
at database.ConnectionPool.allocateConnection(ConnectionPool.java:117)
at database.ConnectionPool.getConnection(ConnectionPool.java:33)
at persistence.AbstractEntityFactory.makeEntityArray(AbstractEntityFactory.java:153)
at persistence.AbstractEntityFactory.makeInitializedEntityArray(AbstractEntityFactory.java:131)
at persistence.AbstractEntityFactory.select(AbstractEntityFactory.java:102)
at achp.persistence.generated.StaffEntityFactory.select(StaffEntityFactory.java:30)
at achp.persistence.generated.StaffEntity.select(StaffEntity.java:21)
at achp.presentation.UserBean.login(UserBean.java:143)

I know that its a jdbc problem.... I copied Db2java.jar file to all the lib directories in tomcat, but the problem still persists. I dont know what else I should do. Please help me resolve this.

Thanks a million.
Uma

Comments

HajoNormann

The future of modern API design started here.

Key takeaway: Differentiate APIs along "private" and "public"

Microservices are "private"

APIs are "public"

Expect more to come!

1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jan 20 2006
Added on Nov 17 2004
10 comments
493 views