After going to /manager/html you should see a list of installed
applications.  In tomcat-users.xml have something like:

  <user name="admin" password="admin" roles="manager" />

And that should give you a view like this:

--
Listed applications for virtual host localhost
Path            Status          Sessions        Reload  Remove

/toMgtReports   running / stop  1               Reload » Remove »
/tofrmanagerdev running / stop  0               Reload » Remove »
/tofrDavid      running / stop  0               Reload » Remove »

--

As for you creating a shell script that shuts down the server, I think
you mean that it would restart the application.  Take a look at manager
how-to on jakarta site

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html

The gist of things is that there are commands like
/manager/list                   - to list currently deployed apps
/manager/reload?path=/tofrDavid         - reloads the application

and many others to aid in managing single applications.

Good luck
d.

Tom Kochanowicz wrote:
David,

        It seems the settings you described below are already set from my install.
I did make a user for admin and manager, however when I log in as the Tomcat
Web Application Manager the Application Path has a link (underlined text)
but the Start, Stop ... do not. I don't know why. I have worked around this
by creating a launcher that calls a shell script that shutdown and restarts
the server.


TK

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of David
Mossakowski
Sent: Wednesday, December 04, 2002 1:07 PM
To: [EMAIL PROTECTED]
Subject: Re: Linux/Tomcat auto reloading when a bean is added


Use the manager app that is at /manager/html for Tomcat builds 4.1 and
higher.

If you're using 4.0 build add the mapping for HTMLManager servlet

     <servlet-name>HTMLManager</servlet-name>

<servlet-class>org.apache.catalina.servlets.HTMLManagerServlet</servlet-clas
s>
     <init-param>
       <param-name>debug</param-name>
       <param-value>2</param-value>
     </init-param>
   </servlet>


And define the mapping

   <servlet-mapping>
     <servlet-name>HTMLManager</servlet-name>
     <url-pattern>/html/*</url-pattern>
   </servlet-mapping>


You also have to have a user that has a role manager

d.


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






--
David Mossakowski
Instinet Corporation



****************************************************************************
<<Disclaimer>>

This message is intended only for the use of the Addressee and
may contain information that is PRIVILEGED and/or
CONFIDENTIAL or both.

This email is intended only for the personal and confidential use
of the recipient(s) named above.

If the reader of this email is not an intended recipient, you have
received this email in error and any review, dissemination,
distribution or copying is strictly prohibited.

If you have received this email in error, please notify the sender
immediately by return mail and permanently deleting the copy
you received.

Thank you.

****************************************************************************

___________________________________________________________________________
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





--
David Mossakowski
Instinet Corporation

___________________________________________________________________________
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

Reply via email to