Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Tomcat and the fly likes Tomcat worker mapping a particular webapp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat worker mapping a particular webapp" Watch "Tomcat worker mapping a particular webapp" New topic

Tomcat worker mapping a particular webapp

Stefano Cazzola

Joined: Apr 21, 2011
Posts: 6
Hi everybody,
I have a win server which hosts an ASP (old-style) application. Now I have to deploy a Java webapp under Tomcat.
I yet setup Tomcat, IIS and the isapi_redirect.dll to pass requests through IIS to Tomcat. No problem in that.
The server is not a powerfull machine, so I was trying to reduce memory usage.
As now my Tomcat respond with the deployed application i.e.:

If I had to deploy another Java webapp I should create a new Tomcat instance, which consumes memory.
To avoid that I was wondering if there was a way to have a worker map a particular webapp under Tomcat, something that forwads a request like --> localhost:8080/mywebapp2
I hope I could explain clearly (as English is not my native language)

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17145

I cannot speak for IIS-to-Tomcat connections, but when using Apache as the frontend webserver, what you do is indicate a remapping connection. For example, you might redirect URLs from " to an internal Tomcat app at localhost:8090/webapp1. Then you might set up another virtual host that routes URLs addressing to localhost:8090/webapp2.

I think you may be confused because your original setup had just one Tomcat webapp, located at the root context. But that's one reason why I rarely place my Tomcat webapps there - there can be only one root per Tomcat host, but Tomcat can host many webapps, each under a different URL context name.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Tomcat worker mapping a particular webapp
It's not a secret anymore!