• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

manager app

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
when I start tomcat and then add following lines to server.xml
<Context path="/manager" debug="0" privileged="true" docBase="/jakarta-tomcat-4.1.12/server/webapps/manager">
</Context>
my manager application works but while try to shutdown the tomcat it gives error. Also it does not restart. Do you know where is exact place to add above lines or I've to make changes to existing lines in server.xml.
please help.
thanks,
SS
 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sanjeev:
In my 4.0.1 tomcat installation, the manager folder is this way:
\Apache Tomcat 4.0\webapps\manager
And in server.xml the manager context is defined as follows:
<!-- Tomcat Manager Context -->
<Context path="/manager" docBase="manager"
debug="0" privileged="true"/>
I think you may need to edit your server.xml just to have "manager" instead of the whole jakarta thing for the docbase
Hope this helps
[ October 30, 2002: Message edited by: Madan, Gopal ]
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Sanjeev Shahi:
when I start tomcat and then add following lines to server.xml
<Context path="/manager" debug="0" privileged="true" docBase="/jakarta-tomcat-4.1.12/server/webapps/manager">
</Context>
my manager application works but while try to shutdown the tomcat it gives error. Also it does not restart. Do you know where is exact place to add above lines or I've to make changes to existing lines in server.xml.
please help.
thanks,
SS


I think u placed the files in wrong directory,the manager context shd not be under /jakarta-tomcat-4.1.12/server/ directory.Moreover the manager context is already there in tomcat when its shipped to you.The general logic is to put new context say(Shahipage
) under ="/jakarta-tomcat-4.1.12/webapps/ directory.
Now in your server.xml add the following line
<!-- Shahipage Context -->
<Context path="/Shahipage" docBase="Shahipage" debug="0" privileged="true"/>
Yes u don't need to give full path for the docbase,if your context is under webapps directory.
You can add the above line above or below the
comment <!-- Tomcat Root Context --> in the file server.xml.Try to find the <!-- Tomcat Root Context --> in the file server.xml and add below or above it.
I suggests you to go through the tutorials or readme files under the webapps/tomcat-docs directory.
Still confused ?? Javaranch is here to help you further. :roll:
 
Sanjeev Shahi
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
bala/Madan
Thanks for your help. BTW since which version tomcat has manager application? still I don't know how to check version on unix as don't se release-notes.txt
thanks
 
Yes, of course, and I accept that blame. In fact, i covet that blame. As does this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic