starting Tomcat from Java
I (sometimes) want to start Tomcat (5.5 onwards) from Java, but I am not embedding: I just need to get the same effect as running bin/startup.bat but getting Tomcat to run in an existing JVM (so I can debug some other stuff). I am considering translating startup.bat into Java: has this already been done? I really want a solution which continues to behave like startup.bat regardless of changes to the environment, Tomcat, server.xml etc. (I won't always be there to sort things out) Paul Singleton - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: starting Tomcat from Java
On 5/4/07, Paul Singleton [EMAIL PROTECTED] wrote: I (sometimes) want to start Tomcat (5.5 onwards) from Java, but I am not embedding: I just need to get the same effect as running bin/startup.bat but getting Tomcat to run in an existing JVM (so I can debug some other stuff). I am considering translating startup.bat into Java: has this already been done? I really want a solution I'm not sure if this answers your question exactly, but there are a few solutions proposed here: http://ptrthomas.wordpress.com/2006/03/25/how-to-start-and-stop-tomcat-from-ant/ which continues to behave like startup.bat regardless of changes to the environment, Tomcat, server.xml etc. (I won't always be there to sort things out) Paul Singleton -Regards Rashmi - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: starting Tomcat from Java
From: Paul Singleton [mailto:[EMAIL PROTECTED] Subject: starting Tomcat from Java I am considering translating startup.bat into Java: The resulting command line for 5.5 looks like this (spaces replaced by newlines for clarity): java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=conf/logging.properties -Djava.endorsed.dirs=common/endorsed -Dcatalina.base=. -Dcatalina.home=. -Djava.io.tmpdir=temp -cp bin/bootstrap.jar org.apache.catalina.startup.Bootstrap start (The above assumes that current directory is TOMCAT_HOME.) You'd have to set the various properties with System.setProperty() and do some finagling to make the -cp setting work. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: starting Tomcat from Java
On 5/4/07, Paul Singleton [EMAIL PROTECTED] wrote: I (sometimes) want to start Tomcat (5.5 onwards) from Java, but I am not embedding: I just need to get the same effect as running bin/startup.bat but getting Tomcat to run in an existing JVM (so I can debug some other stuff). Not sure about the 'in an existing JVM' part, but Cargo has a Java API for manipulating containers: http://cargo.codehaus.org/ -- Wendy - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]