How to add context path in tomcat5.5...
Hi.developers.
I am new to tomcat5.5. before i am using tomcat4.1,jdk1.5...it's all working well. Now i want to change in to tomcat5.5. My problem is in tomcat4.1 i am doing all projects. i have done creation of war files and write path in server.xml file like this
<Context path="/webtest" docBase="webtest" debug="0" reloadable="true" />
it's working well in tomcat4.1. I don't know where it is write this path in tomcat5.5. Please help me on this topic.
thanking you,
with regards
sure...:)-
as far as i know, if you are using war files you don't even need the context path....i use a host tag instead:
<host name="www.domain.com" appBase="/path/to/war" unpackWARs="true" autoDeploy="true" />
dropping war files in /path/to/war they auto extract themselves and are reachable via http://www.domain.com/context.
gl, hope that helps.
you need to give more information for us to help you...for all we know you are typing stuff in wrong. copy your config lines, copy the path where you placed the information and then copy the url you are going to in order to hit it.
if you want to start from ground zero and you have a war file drop it in $TOMCAT_HOME/webapps when tomcat has started.Wait a few seconds...if the war file doesn't self extract into a folder of the same name then something is wrong. If it does then go here:
http://<ip.of.tomcat>:8080/<warfilename>
the war file name is your contextroot....if you have jsps in that folder you shouldn't get any 404s.
gl, hope that helps.