jdbc Tomcat db2
843854Nov 17 2004 — edited Dec 23 2005Hello 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