deploying app with different

Discussion in 'Java' started by Kev, Oct 1, 2008.

  1. Kev

    Kev Guest

    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.
    Kev, Oct 1, 2008
    #1
    1. Advertising

  2. Kev

    Facade Guest

    On Oct 1, 8:10 am, Kev <> wrote:
    > 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
    Facade, Oct 1, 2008
    #2
    1. Advertising

  3. Kev

    Arne Vajhøj Guest

    Kev wrote:
    > 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
    Arne Vajhøj, Oct 4, 2008
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alvin Bruney

    Re: Errors Deploying Web App

    Alvin Bruney, Jun 26, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    450
  2. Frank Drebin

    Re: deploying my asp.net app

    Frank Drebin, Aug 23, 2003, in forum: ASP .Net
    Replies:
    5
    Views:
    405
    Frank Drebin
    Aug 26, 2003
  3. =?Utf-8?B?VG9tIE4=?=

    deploying and re-deploying ASP.Net applications

    =?Utf-8?B?VG9tIE4=?=, Feb 4, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    376
    =?Utf-8?B?VG9tIE4=?=
    Feb 4, 2004
  4. Rico
    Replies:
    0
    Views:
    397
  5. Rico
    Replies:
    1
    Views:
    287
Loading...

Share This Page