IDependOn-Set: 1
IDependOn-Set: 119
IDependOn-Set: 2
IDependOn-Set: 305
IDependOn-Set: 306
IDependOn-Set: 312
LastModifiedSecs: 938561896
Parent: 119
SequenceNumber: 3
Title: JServ & JDBC drivers dependant on native code
Part: 0
Author-Set: ba@sentor.com.au
LastModifiedSecs: 938561896
Type: 
Lines: 7
I had attempted to use JServ in conjunction with DB2 access on NT.  In spite of the best configuration efforts, I was unable to get it to work - an UnsatisfiedLinkError exception was being thrown.

This is because the JDBC drivers for DB2 require native code to execute - db2jdbc.dll specifically, whose directory must be (and was) in the path.  After trying to debug classes locally, I discovered (buried) in the Sun documentation that in order to debug drivers dependant on dll's, the dll must be copied with an '_g' appended to the end of the name ie. db2jdbc_g.dll.

Having done this separately, I started up Apache/JServ, and things worked the first time.  JServ must require debug names for dependant native dll's.

Also, set the wrapper.env.copyall=true in jserv.properties. This copies all system environment variables for use by JServ.
EndPart: 0
