Hi

Last morning we deployed  some servlets on JRUN.

1. I edited the jsm.properties file and added the jdbc driver named
"db2java.zip" to the java.classpath variable.
2. I added my jar file containing the packaged classes including the servlet
classes into the  appropriate lib directory.
3. Everything worked fine- the servlets accessed the database, I tested
things out and released the URL to  users for comments.

4. Strangely enough, last evening the servlets could not access the database
because of some problem loading the JDBC driver.... I got the following
error as clipped out of our applications own LOG files:

### clipping from logs starts
java.sql.SQLException: java.lang.UnsatisfiedLinkError: no db2jdbc in
java.library.path
### clipping from logs ends

5. This, inspite of the fact that the jsm.properties file was not edited
since last morning - when everything it was working fine and we have not
changed anything else.

I wonder if some variable such as java.lib must be set. (?)

6. I looked up some documentation from JRUN and found some suggestion  that
the BIN directory "is where the  JDBC driver libraries might be placed". But
this has to do with the PATH rather than the classpath.

Hope someone has a clue and has a moment to advice.... The clippings from
the jsm.properties file containing classpath  entries for my jar file and
the JDBC driver db2java.zip are attached herewith for reference

# jsm.properties file starts
# JRun Service Manager Properties
#

java.args=
redirect.stderr=true
java.securitymanager=
jrun.api21=false
redirect.stdout=true
admin.port=56492
admin.bindaddress=*

jrun.rootdir=D:/JRun
java.path=D:\\JRun\\examples\\jni

java.classpath=D:/JRun/classes;D:/JRun/jsm-default/classes;D:/JRun/lib/jrun.
jar;D:/JRun/lib/servlet.jar;D:/JRun/lib/cfanywhere.jar;D:/JRun/instantdb/cla
sses;D:/JRun/lib/jrunadmin/jrunadmin.jar;D:/JRun/jdk1.2/lib/rt.zip;D:/JRun/j
dk1.2/lib/i18n.zip;D:/JRun/jdk1.2/lib/tools.jar;D:/JRun/lib/ariesservertest.
jar;D:/JRun/lib/aric.jar;D:/SQLLIB/java/db2java.zip;
java.exe=D:\\JRun\\jdk1.2\\bin\\javaw.exe

# jsm.properties file ends


Thanks

Sanjay

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to