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: