Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

URL mapping without multiple initialization

Status
Not open for further replies.

frama

Technical User
Oct 19, 2006
1
US
I have a standalone Tomcat 5.5 and
I am not able to figure out how to map multiple url
to the same webapp without having tomcat initialize
the webapp twice.

I have an webapp deployed in webapps/testapp

This is accessible through
Now I want to access the same webapp using an
alternate url like:
I defined a new context in server.xml like:

<Context path = "/foo"
docBase = "/testapp"
debug = "0"
reloadable = "true"
crossContext= "true">
</Context>

but now I see that the webapp is initialized
twice by tomcat. How can I have only one
initialization of my webapp ?

Thanks

Frama
 
Tomcat just does not work like that I'm afraid.

Your options are to use Apache HTTPD server to redirect traffic from a URL to another.


--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top