IntelliJ Java IDE
The moose likes Tomcat and the fly likes context path modification Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "context path modification" Watch "context path modification" New topic
Author

context path modification

John Davis
Ranch Hand

Joined: Nov 02, 2000
Posts: 181
The only app that I've been able to install which actually gets started when I start Tomcat has a context path which is identical to the Directory name. I need to get this context path changed. Anybody know how to do this?
I have tried to install the same App using the Application Manager where I specify the context path that I want, and the URL of the Directory. The results are as follows:
sometimes I get an error message = failed - context path must equal directory name.
sometimes the install succeeds, but then when Tomcat is started the next time, the application with that context path is missing. In order to get the context path that I want, I always have to go into Application Manager after starting Tomcat and try installing it with the desired context path.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 11863
In order to escape from the assumptions that Tomcat makes about application names and directory paths you have to configure entries in server.xml
Bill
 
 
subject: context path modification
 
Threads others viewed
Multiple apps in Tomcat
how to access other folders outside webapp in tomcat6
Why is it deploying in two contexts? I'm stumped
disappearing web apps
site transfer context path problem
developer file tools