IDependOn-Set: 1
IDependOn-Set: 166
IDependOn-Set: 167
IDependOn-Set: 2
IDependOn-Set: 27
IDependOn-Set: 29
IDependOn-Set: 7
LastModifiedSecs: 927140022
Parent: 166
SequenceNumber: 11
Title: My servlet uses native code, how do I set the classpath?
Part: 0
Author-Set: jon@working-dogs.com
LastModifiedSecs: 920066640
Type: 
Lines: 1
The servlet classpath also cannot contain classes that use native methods. The Java security model prevents classloaders other than the system classloader from loading classes that contain native code. 
EndPart: 0
Part: 1
Author-Set: jon@working-dogs.com
HideAttributions: 1
LastModifiedSecs: 921097320
Type: monospaced
Lines: 16
>       Thanks Jon, for the information about JServ and JNI (attached
> below). One more problem, though. Now that I have added servlets to the
> system class path, they do not get reloaded when the .class files change.
> How can I do development if this is true? Below is the FAQ item discussing
> serlvets in the system classpath.

nice catch-22 eh?

The only way that I know of at this point is to run Apache JServ 
manually and restart it each time you need to change your code (or run it 
in automatic mode and hup the server each time).

Major pain in the rear, but this is a JVM limitation and not a Apache JServ 
limitation. I suggest that you also complain to Sun. ;-)

-jon
EndPart: 1
Part: 2
Author-Set: singkoo@dev.wirelessproxy.com
HideAttributions: 1
LastModifiedSecs: 927140022
Type: monospaced
Lines: 3
You can effectively let Jserv to reload your servlet and using JNI, if you
package those objects that uses JNI in a specific classpath, and then
instantiate them as you need it.  It works for me!
EndPart: 2
