Li, Jerry at [EMAIL PROTECTED] wrote:
> Hi, All:
>
> Your help is highly appreciated for the following questions.
>
> 1. Does Tomcat have web-based administration functionality?
>
> We want to let the Tomcat administrator start/stop Tomcat through a
> Web-based interface. I have searched the mail archives, and found somebody
> starting working on it in April. Is it available now? If yes, where could I
> get it?
The web-based interface is not available yet, unless you're not talking
about Tomcat 4.0's "manager" web application (it's in the distribution).
I never tried it, anyway I wouldn't trust shutting down an instance of
Tomcat thru HTTP...
Also if you shut down your servlet engine using a servlet, I believe you
won't be able to start it back up with the same servlet engine :) :) :)
> 2. where is the right location to put properties files
>
> Our application uses a single properties file: system.properties. We have
> found that we have to put system.properties into WEB-INF/classes, otherwise,
> Tomcat could not find it.
>
> We have tried to put it into WEB-INF/lib and put WEB-INF/lib into tomcat's
> classpath ( the classpath in tomcat.bat under <tomcat_home>/bin), but tomcat
> still could not find it. However, if put it into WEB-INF/classes, tomcat
> will find it.
And that's correct. WEB-INF/classes is it's right location. Tomcat 4.0 even
ignores your CLASSPATH environment setting... Is there a problem in leaving
it there? (BTW, read the servlet specification for that!)
Pier