Eclipse WTP and Tomcat question

D

deepstar

Hey all

Does anyone know how I can set a webapp's path to / instead of using
/webappname ?
I am running a webapp which before was Resin based so all the URL's are
mapped as /localhost:8080/index.jsp etc... now Tomcat wants to sort
everything neatly under localhost:8080/webappname/index.jsp - but I
need to remove the webapp name in the url.

I tried doing this by changing <Context docBase="webappname"
path="/webappname"> to <Context docBase="webappname" path="/"> in
server.xml but Tomcat keeps changing it back!

Thanks!
 
T

Tarkin

Hey all

Does anyone know how I can set a webapp's path to / instead of using
/webappname ?
I am running a webapp which before was Resin based so all the URL's are
mapped as /localhost:8080/index.jsp etc... now Tomcat wants to sort
everything neatly under localhost:8080/webappname/index.jsp - but I
need to remove the webapp name in the url.

I tried doing this by changing <Context docBase="webappname"
path="/webappname"> to <Context docBase="webappname" path="/"> in
server.xml but Tomcat keeps changing it back!

Thanks!

YMMV, but, FWIW-
backup the old ${CATALINA_HOME}/webapps/ROOT directory,
then install your webapp there.

HTH,
Tarkin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top