deploying app with different


K

Kev

Hi -

I'm normally my app into a tomcat (5.5) installation by simply copying
my MyApp.war file into the web apps dir. Tomcat starts and explodes
the WAR file - nice & simple. But now I want to append version numbers
to the war file so the file name changes from MyApp.war -> MyApp-
v2.01.war. Of course, this now changes the app root context - which I
do not want.

I've search lots of places and can't find a simple solution to this.
Nothing in the deployment descriptor sees to work for me.

I can't believe I'm the only the only person who has come across this.
Am I missing something simple?

Thanks, Kevin.
 
Ad

Advertisements

F

Facade

Hi -

I'm normally my app into a tomcat (5.5) installation by simply copying
my MyApp.war file into the web apps dir. Tomcat starts and explodes
the WAR file - nice & simple. But now I want to append version numbers
to the war file so the file name changes from MyApp.war -> MyApp-
v2.01.war.  Of course, this now changes the app root context - which I
do not want.

I've search lots of places and can't find a simple solution to this.
Nothing in the deployment descriptor sees to work for me.

I can't believe I'm the only the only person who has come across this.
Am I missing something simple?

Thanks, Kevin.

I think you control the context paths via server.xml

--a
 
Ad

Advertisements

A

Arne Vajhøj

Kev said:
I'm normally my app into a tomcat (5.5) installation by simply copying
my MyApp.war file into the web apps dir. Tomcat starts and explodes
the WAR file - nice & simple. But now I want to append version numbers
to the war file so the file name changes from MyApp.war -> MyApp-
v2.01.war. Of course, this now changes the app root context - which I
do not want.

I've search lots of places and can't find a simple solution to this.
Nothing in the deployment descriptor sees to work for me.

I can't believe I'm the only the only person who has come across this.
Am I missing something simple?

I don't think you can do it web.xml - you will need to
define it in the context.

See:
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html

Arne
 

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

Top