If you do an

Include /path/jserv.conf on your apache httpd.conf file

Inside your jserv.conf you can specify
# Whether Apache must start JVM or not (On=Manual Off=Autostart)
ApJServManual on

This will make it so you MUST specifically start your JServ.  This will make
the starting and stopping of the JServ independent of the webserver.

start it like "java -classpath your_jar.jar org.apache.jserv.JServ
your_jserv.properties"

That should help you fix 1.

As for 2, there is a way (JSP compilers load the new servlet classes
dynamically), but you would have to implement that functionality yourself
for this purpose.

Hope that helps.

-Tom Ivers

-----Original Message-----
From: Jos� Paumard [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 30, 1999 2:35 AM
To: [EMAIL PROTECTED]
Subject: Loading classes in a JSP


Hello everyone,
Here is my problem. I have JSPs under Apache JServ, that need to access
classes in a .jar file. The solution I use for now is the following :
- put the .jar in the classpath of the jvm (servlet.properties file)
- put <%@ import com.myclasses.* %> at the top of my JSPs
The problem is that each time I modify a class in this .jar, I need to
restart the Apache to have it reload the .jar. By the way, it seems that
there is a bug in Apache 1.3.6 JServ 1.0b3, as the JVM does not die all
the time when stopping Apache. Also, when one calls apachectl stop, if
the JVM dies, the destroy() method of the servlets does not seems to be
called.
My question is twofold :
1) is there a way to restart the JVM without restarting Apache ?
2) is there a way to dynamically load classes without declaring the .jar
in the classpath ?
Thank you for your help,
Jose Paumard

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to