This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes hosting the same app in two contexts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "hosting the same app in two contexts" Watch "hosting the same app in two contexts" New topic
Author

hosting the same app in two contexts

Kyle Willkomm
Ranch Hand

Joined: Sep 10, 2001
Posts: 44
Hello, really I am trying to host one web application in a context "/lnie". But I also want the Root context to resolve to /lnie.
If I put in the "" empty string context (default) context as the documentation says to solve this problem I end up with two applications with the same docbase.
I tries to run my bootstrap clases twice and doesn't recognize them as the same application. Which I suppose is normal.
But how do I do this. I still want to run the manager context and maybe other contexts but I want root to resolve to the /lnie web application.
I can't make the /lnie appication simply refer to itself as the "/" application because what if I decide to make a different application the root one and move that one back to lnie? The links won't work.
In Tomcat 3.2 this didn't happen. It only loaded one instance. I don't know what the difference is though.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: hosting the same app in two contexts
 
Similar Threads
How to install same application in multiple servers in websphere netdeployment App Server Environmen
glassfish to JBoss communication through RMI
JSP 404 error with web.xml
context conflict
Communication between to session