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!

LD_LIBRARY_PATH error on suse linux db2 databese PLEASE help.

843854Dec 23 2002 — edited Dec 23 2002
Hi all java users.

I am using IBM WEB Sphere Application Server 4.0 Advanced single server Edition My system is Suse Linux 7.3 My db2 version is V7.2.


I want to connect to db2 database with JSP.
But following error is ::>



Original Exception:
Error Message: java.lang.UnsatisfiedLinkError: no db2jdbc (libdb2jdbc.so) in java.library.path
Error Code: 500
Target Servlet: null
Error Stack:
java.sql.SQLException: java.lang.UnsatisfiedLinkError: no db2jdbc (libdb2jdbc.so) in java.library.path
at COM.ibm.db2.jdbc.app.DB2Driver.<init>(DB2Driver.java:245)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java(Compiled Code))
at armrkdden_jsp_7._jspService(armrkdden_jsp_7.java:135)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:139)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:286)
at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:415)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:544)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:159)
at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:286)
.
.
.


I tried to solve this problem. I thing the cause of problem about LD_LIBRARY_PATH.
I set this line >>"export LD_LIBRARY_PATH=/home/db2inst1/sqllib:/home/db2inst1/sqllib/java12" some environmet file such as:..> /etc/profile, /home/db2inst1/.profile, /home/db2inst1/sqllib/db2profile, /opt/WebSphere/AppServer/java/jre/bin/java ...etc

Where file can add this LD_LIBRARY_PATH ... line ??

but I COULD NOT SOLVE THIS PROBLEM


PLEASE HELP ME..

Thank you all of java users.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 20 2003
Added on Dec 23 2002
1 comment
225 views