You can use the Tomcat manager application to stop/start a Web application while you are adding new Java classes to the WEB-INF/classes directory. Make sure you have a user set up with the "manager" role in the $CATALINA_HOME/conf/tomcat-users.xml XML file. The user element looks like this (the user can have any name/password):
<user name="tomcat" password="tomcat" roles="standard,manager" /> The manager application uses basic authentication when you call its commands, and you would then enter this user's name and password. You can then issue start and stop commands with a URL in the browser that looks like: http://localhost:8080/manager/start?path=/<context-path> http://localhost:8080/manager/stop?path=/<context-path> ...where the "path" parameter specifies the application's context path, or just a "/" if it's the default Web app. The entire process can be automated with Ant (an example build file can be posted). Bruce On Tuesday, December 3, 2002, at 07:17 PM, Tom Kochanowicz wrote:
Is there a way to have a bean recognized (when changes are done) without having to restart Tomcat4? Is not is there an easy way to restart tomcat. I know I have seen this in some documentation but after an two hours of looking I have failed to find the answer. I have a Linux (Redhat 8)/Tomcat environment (both latest releases). I have setup Tomcat4 so that it starts on bootup. There is no DOS window to see status so I use log4J. TK ___________________________________________________________________________ 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
___________________________________________________________________________ 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