Change the context of deployed WARs

P

pandorino.mdg

Hi all,
as far as I know, using the Tomcat Manager I'm able to upload a WAR
from my PC to the tomcat server and the manager automatically deploy
the web-application with the context <WAR name>. So I can call the
web-app with the URL
http://<server name>/<WAR name>.

What I want is to deploy an application in Tomcat so that the context I
use to access to the web-app is something like
http://<server name>/deployedwars/<WAR name> instead of http://<server
name>/<WAR name> (in other words, I would like that the context is
modified by adding in the URI the path "/deployedwars/").

I have searched this newsgroup without success (maybe I did the wrong
search).

Do you have an idea?
Any help appreciated.
Thanks in advance
Mauro
 
S

Steve W. Jackson

Hi all,
as far as I know, using the Tomcat Manager I'm able to upload a WAR
from my PC to the tomcat server and the manager automatically deploy
the web-application with the context <WAR name>. So I can call the
web-app with the URL
http://<server name>/<WAR name>.

What I want is to deploy an application in Tomcat so that the context I
use to access to the web-app is something like
http://<server name>/deployedwars/<WAR name> instead of http://<server
name>/<WAR name> (in other words, I would like that the context is
modified by adding in the URI the path "/deployedwars/").

I have searched this newsgroup without success (maybe I did the wrong
search).

Do you have an idea?
Any help appreciated.
Thanks in advance
Mauro

First, your assumption isn't necessarily correct. I have a war file
which, when deployed to Tomcat, uses <WAR name>/<serviceName> as the
endpoint URL.

As to modifying the full URI, that's a Tomcat-specific issue, so I would
recommend looking in Tomcat-oriented groups for an answer.

= Steve =
 
P

pandorino.mdg

Well, /<WAR name>/<serviceName> or just /<WAR name> for me it is the
same. What I need is the change at the URI, as you said.

Sorry for posting in this group, I found a lot of posts here about
tomcat... that's the reason I also posted here.

Mauro
 

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

Members online

No members online now.

Forum statistics

Threads
474,436
Messages
2,571,696
Members
48,796
Latest member
Greg L.
Top