Armin Haaf <[EMAIL PROTECTED]> wrote:
>...
>if I move the following three jar packages in the repository I get the
>problem
>
>/home/rmp/rmp/server/rmpAll.jar
>/home/rmp/rmp/server/deAll.jar
>/home/rmp/rmp/client/rmpProducts.jar
>
>I don't understand why this could be a problem, but it is one.
Is there any JNI code in there? I recall that the adaptive class loader
used for zones can't load JNI code, it must be in the system class path.
> And I
>should fix this very soon, so I thought I start a new JVM (a new jserv
>instance) and the problem is fixed. Is there a way to start a new JVM??
You need to use manual mode.
ApJServManual on
ApJServMount /servlets1 ajpv11://localhost:9000/jvm1
ApJServMount /servlets2 ajpv11://localhost:9001/jvm2
then you need separate jserv.properties file for each jvm, where the only
important difference is the value of the port property which must match the
port for the corresponding servlet zone. To run in manual mode do something
like:
java org.apache.jserv.JServ /usr/local/apache/conf/jvm1.jserv.properties
java org.apache.jserv.JServ /usr/local/apache/conf/jvm2.jserv.properties
Now, requests starting with /servlets1 go to the first JVM and those
starting with /servlets2 go to the second jvm.
If this is in a production server then you are going to want to have some
script that monitors the jvms and restarts them if necessary (e.g., a cron
job or mon <http://www.kernel.org/software/mon/>).
-- Ari Halberstadt mailto:[EMAIL PROTECTED] <http://www.magiccookie.com/>
PGP public key available at <http://www.magiccookie.com/pgpkey.txt>
-- --------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]