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
-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
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
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
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'
>
> 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
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
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
> 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
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
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
---
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
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
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
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
15 matches
Mail list logo