Re: How to find war file name programmatically?

2019-08-17 Thread W
ServletContext.getRealPath("/") works for me.Thanks. On Tuesday, August 13, 2019, 01:43:35 AM PDT, Mark Thomas wrote: On 12/08/2019 23:18, W wrote: > Hi, > I would like to find the war file name (for example,  > ROOT##2019-08-1

Re: How to find war file name programmatically?

2019-08-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 8/13/19 04:43, Mark Thomas wrote: > On 12/08/2019 23:18, W wrote: >> Hi, I would like to find the war file name (for example, >> ROOT##2019-08-12-10-44.war) inside >> ServletContextListener.con

Re: How to find war file name programmatically?

2019-08-13 Thread Mark Thomas
On 12/08/2019 23:18, W wrote: > Hi, > I would like to find the war file name (for example,  > ROOT##2019-08-12-10-44.war) inside   > ServletContextListener.contextInitialized() and  > ServletContextListener.contextDestroyed(). So I can send email to admins warn > them which

How to find war file name programmatically?

2019-08-12 Thread W
Hi, I would like to find the war file name (for example,  ROOT##2019-08-12-10-44.war) inside  ServletContextListener.contextInitialized() and ServletContextListener.contextDestroyed(). So I can send email to admins warn them which app is up and down.  Is there a way to do it? Any information

Re: How do I deploy a war file to a context path not matching the war file name

2013-02-01 Thread Edd Grant
Thanks Chris - that works perfectly! On 1 February 2013 11:06, chris derham wrote: >> The documentation for the docBase (a.k.a context root) attribute >> states that the docBase attribute should be used to point to the war >> or exploded war file. My server's appBase is the default of 'webapps' >

Re: How do I deploy a war file to a context path not matching the war file name

2013-02-01 Thread chris derham
> The documentation for the docBase (a.k.a context root) attribute > states that the docBase attribute should be used to point to the war > or exploded war file. My server's appBase is the default of 'webapps' > and my WAR and exploded WAR are under webapps so I have specified a > relative path of

Fwd: How do I deploy a war file to a context path not matching the war file name

2013-02-01 Thread Edd Grant
Hi all, I am using Tomcat 6.0.32 and have a deployment question. I have a war file over which I do not have control of the filename, let's call it MYAPP.war . Tomcat's default deployment behaviour would be to deploy this application under a context of /myapp however I want to deploy it instead und

Re: Depoy as different URL than default war file name

2008-10-28 Thread Mohit Anchlia
That works thanks. On Tue, Oct 28, 2008 at 1:03 PM, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: >> From: Mohit Anchlia [mailto:[EMAIL PROTECTED] >> Subject: Re: Depoy as different URL than default war file name >> >> This is what my logs say INFO: Starting Se

RE: Depoy as different URL than default war file name

2008-10-28 Thread Caldarale, Charles R
> From: Mohit Anchlia [mailto:[EMAIL PROTECTED] > Subject: Re: Depoy as different URL than default war file name > > This is what my logs say INFO: Starting Servlet Engine: > Apache Tomcat/6.0.18 > > So does it mean I can use New#App.war? That's what Mark said. You coul

Re: Depoy as different URL than default war file name

2008-10-28 Thread Mohit Anchlia
This is what my logs say INFO: Starting Servlet Engine: Apache Tomcat/6.0.18 So does it mean I can use New#App.war? On Tue, Oct 28, 2008 at 12:21 PM, Mark Thomas <[EMAIL PROTECTED]> wrote: > Mohit Anchlia wrote: >> I have a war file App.war so the url is http://ip/App/query but I want >> it to b

Re: Depoy as different URL than default war file name

2008-10-28 Thread Mark Thomas
Mohit Anchlia wrote: > I have a war file App.war so the url is http://ip/App/query but I want > it to be deployed in a way that the Url is http://ip/New/App/query. > How can I change the default behaviour? In Tomcat 6.0.18 onwards just rename it New#App.war Mark ---

Depoy as different URL than default war file name

2008-10-28 Thread Mohit Anchlia
I have a war file App.war so the url is http://ip/App/query but I want it to be deployed in a way that the Url is http://ip/New/App/query. How can I change the default behaviour? - To start a new topic, e-mail: users@tomcat.apache

Deploying war files to path not the same as the war file name.

2007-06-29 Thread ben short
Hi, We use maven to build our war files. The war file names are as follows... appname-1.0.war. Currently I rename the file to ROOT.war then deploy it via the tomcat manager app. Is it possible to leave the war file name alone but deploy it as the ROOT webapp? Regards Ben Short

Re: war file name

2007-05-29 Thread Mark Thomas
Tomcat wrote: > there is a directive in server.xml or context file, which force us having > war file name be the same as context file or the same as name of > directory which > war file unpacked, would you please let me know which directive it is. There is no such dire

war file name

2007-05-29 Thread Tomcat
Hello there is a directive in server.xml or context file, which force us having war file name be the same as context file or the same as name of directory which war file unpacked, would you please let me know which directive it is. Thanks Adam