Kind regards,
Mark
От: Mark Thomas
Отправлено: 18 марта 2025 г. 9:35
Кому: users@tomcat.apache.org
Тема: Re: context path version number with parallel deployment
On 17/03/2025 18:43, Усманов Азат Анварович wrote:
thanks a lot! I got it working.
A quick follow
like this:
String webappVersion =
(String)request.gteServletContext().getAttribute("org.apache.catalina.webappVersion");
"
От: Mark Thomas
Отправлено: 18 марта 2025 г. 9:35
Кому: users@tomcat.apache.org
Тема: Re: context path version number with par
i/org/apache/catalina/Globals.html
Where else would you like to see it? The where may change which steps
are required to update the docs.
Mark
От: Christopher Schultz
Отправлено: 17 марта 2025 г. 17:40
Кому: users@tomcat.apache.org
Тема: Re: context path version n
There is also
https://tomcat.apache.org/tomcat-9.0-doc/config/listeners.html#Context_Naming_Info_Listener_-_org.apache.catalina.core.ContextNamingInfoListener
which I have added years ago. Works perfeclty from servlets, Logback and
Spring.
On 2025/03/17 12:53:22 Усманов Азат Анварович wrote:
>
а: Re: context path version number with parallel deployment
Азат,
On 3/17/25 8:53 AM, Усманов Азат Анварович wrote:
> Hi everyone! is it possible to display current version number in a jsp page
> or servlet when using parallel deployment . using some property.
>Currently when building an
Азат,
On 3/17/25 8:53 AM, Усманов Азат Анварович wrote:
Hi everyone! is it possible to display current version number in a jsp page or
servlet when using parallel deployment . using some property.
Currently when building an app war we use git to calculate last revision
number, store it in
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256
Dan,
On 8/29/13 3:47 PM, D C wrote:
> Thank you both. I see in the link you sent me, that "path" can
> only be see from within server.xml. To correct myself from eariler
> i said it worked in context.xml, when it was in deed server.xml
> where i
On Thu, Aug 29, 2013 at 2:10 PM, Daniel Mikusa wrote:
> On Aug 29, 2013, at 2:02 PM, D C wrote:
>
> > Tomcat 7.0.40
> > RHEL 6
> >
> > I am trying to define all of my contexts in
> conf/Catalina/localhost/*.xml.
> >
> > This seems to work fine, however I'm having an issue setting the path.
> >
>
On Aug 29, 2013, at 2:02 PM, D C wrote:
> Tomcat 7.0.40
> RHEL 6
>
> I am trying to define all of my contexts in conf/Catalina/localhost/*.xml.
>
> This seems to work fine, however I'm having an issue setting the path.
>
> myApp.xml
>
>
> This simply does not work.
You generally don't wa
> From: D C [mailto:dc12...@gmail.com]
> Subject: context path ignored in conf/Catalina/localhost/*
> Tomcat 7.0.40
> I am trying to define all of my contexts in conf/Catalina/localhost/*.xml.
> This seems to work fine, however I'm having an issue setting the path.
> myApp.xml
>
> This simply
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
André,
On 12/3/12 6:50 PM, André Warnier wrote:
> P.S. If you decide to use UrlRewriteFilter, you should be looking
> at the documentation
> (http://urlrewritefilter.googlecode.com/svn/trunk/src/doc/manual/4.0/index.html),
Cool,
>
there's a 4.0 ver
Leo Donahue - RDSA IT wrote:
___
From: Christopher Schultz [ch...@christopherschultz.net]
Sent: Friday, November 30, 2012 8:13 PM
To: Tomcat Users List
Subject: Re: Context Path for a subdirectory
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Leo,
On 11/30
___
From: Christopher Schultz [ch...@christopherschultz.net]
Sent: Friday, November 30, 2012 8:13 PM
To: Tomcat Users List
Subject: Re: Context Path for a subdirectory
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Leo,
On 11/30/12 5:52 PM, Leo Donahue - RDSA
On 12/2/2012 4:54 AM, Konstantin Kolinko wrote:
> 2012/11/30 Terence M. Bandoian :
>> Hi, Chuck-
>>
>> I don't mean to be argumentative but, with Tomcat 6.0.29, I found that
>> static files from an images subdirectory of a web application were not
>> cached by Internet Explorer 7. As a workaround,
2012/11/30 Terence M. Bandoian :
> Hi, Chuck-
>
> I don't mean to be argumentative but, with Tomcat 6.0.29, I found that
> static files from an images subdirectory of a web application were not
> cached by Internet Explorer 7. As a workaround, I created a context for the
> images subdirectory and
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Leo,
On 11/30/12 7:07 PM, Leo Donahue - RDSA IT wrote:
>> -Original Message- From: Leo Donahue - RDSA IT
>> [mailto:leodona...@mail.maricopa.gov] Sent: Friday, November 30,
>> 2012 5:02 PM To: Tomcat Users List Subject: RE
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Leo,
On 11/30/12 7:02 PM, Leo Donahue - RDSA IT wrote:
> Any changes that I make to the rest web app are done on Server 1,
> in which I then need to generate a new rest.war file to be deployed
> on Server 4. Anything custom that I configure for the r
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Leo,
On 11/30/12 5:52 PM, Leo Donahue - RDSA IT wrote:
> Ok, so before I upgraded to Tomcat 7.0.33 to use the container
> supplied remote address filter, what were my options to restrict
> access to just a subdirectory of a web app in Tomcat 6.0.35?
> From: Leo Donahue - RDSA IT [mailto:leodona...@mail.maricopa.gov]
> Subject: RE: Context Path for a subdirectory
> I considered the security constraint, but wouldn't that have required me
> to set up SSL (for a secure user/password submittal) and get someone to
> pay for
>-Original Message-
>From: Leo Donahue - RDSA IT [mailto:leodona...@mail.maricopa.gov]
>Sent: Friday, November 30, 2012 5:02 PM
>To: Tomcat Users List
>Subject: RE: Context Path for a subdirectory
>
>
>The way the Server 1 is configured, there are accounts that the
>-Original Message-
>From: André Warnier [mailto:a...@ice-sa.com]
>Sent: Friday, November 30, 2012 4:45 PM
>To: Tomcat Users List
>Subject: Re: Context Path for a subdirectory
>
>Maybe a bit of lateral thinking here.
>What does the admin webapp really do ? For w
Leo Donahue - RDSA IT wrote:
-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
Sent: Friday, November 30, 2012 4:04 PM
To: Tomcat Users List
Subject: RE: Context Path for a subdirectory
From: Leo Donahue - RDSA IT [mailto:leodona...@mail.maricopa.gov
>-Original Message-
>From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
>Sent: Friday, November 30, 2012 4:04 PM
>To: Tomcat Users List
>Subject: RE: Context Path for a subdirectory
>
>> From: Leo Donahue - RDSA IT [mailto:leodona...@mail.maricopa.gov]
> From: Leo Donahue - RDSA IT [mailto:leodona...@mail.maricopa.gov]
> Subject: RE: Context Path for a subdirectory
> what were my options to restrict access to just a subdirectory of a
> web app in Tomcat 6.0.35?
Using just spec-provided mechanisms, such access can be limited
>-Original Message-
>From: Christopher Schultz [mailto:ch...@christopherschultz.net]
>Sent: Friday, November 30, 2012 3:39 PM
>To: Tomcat Users List
>Subject: Re: Context Path for a subdirectory
>
>-BEGIN PGP SIGNED MESSAGE-
>Hash: SHA1
>
>Chuck,
>
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Chuck,
On 11/30/12 5:25 PM, Caldarale, Charles R wrote:
>> From: Christopher Schultz [mailto:ch...@christopherschultz.net]
>> Subject: Re: Context Path for a subdirectory
>
>> I don't think it's specifically /u
> From: Christopher Schultz [mailto:ch...@christopherschultz.net]
> Subject: Re: Context Path for a subdirectory
> I don't think it's specifically /un/supported.
> For instance, Tomcat should happily deploy both of these files:
> myapp.war
> myapp#static.war
That&
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Chuck,
On 11/30/12 3:00 PM, Caldarale, Charles R wrote:
>> From: Terence M. Bandoian [mailto:tere...@tmbsw.com] Subject:
>> Context Path for a subdirectory
>
>>> A webapp can never be nested inside another, so what you're
>>> trying to do is nonsensi
Leo Donahue - RDSA IT wrote:
-Original Message-
From: André Warnier [mailto:a...@ice-sa.com]
Sent: Friday, November 30, 2012 8:20 AM
To: Tomcat Users List
Subject: Re: Context Path for a subdirectory
Leo Donahue - RDSA IT wrote:
If I can tag another question on the end of this thread
> From: Terence M. Bandoian [mailto:tere...@tmbsw.com]
> Subject: Context Path for a subdirectory
> > A webapp can never be nested inside another, so what you're trying
> > to do is nonsensical.
> I don't mean to be argumentative but, with Tomcat 6.0.29, I found that
> static files from an ima
>-Original Message-
>From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
>Sent: Friday, November 30, 2012 8:32 AM
>To: Tomcat Users List
>Subject: RE: Context Path for a subdirectory
>
>> From: Leo Donahue - RDSA IT [mailto:leodona...@mail.maricopa.gov]
> From: Leo Donahue - RDSA IT [mailto:leodona...@mail.maricopa.gov]
> Subject: RE: Context Path for a subdirectory
> Why is denyStatus an option? Why would someone use it?
Because some people still believe in security through obscurity.
- Chuck
THIS COMMUNICATION MAY CONTAIN CON
>-Original Message-
>From: André Warnier [mailto:a...@ice-sa.com]
>Sent: Friday, November 30, 2012 8:20 AM
>To: Tomcat Users List
>Subject: Re: Context Path for a subdirectory
>>
>>Leo Donahue - RDSA IT wrote:
>>
>> If I can tag another question on t
Leo Donahue - RDSA IT wrote:
-Original Message-
From: André Warnier [mailto:a...@ice-sa.com]
Sent: Friday, November 30, 2012 12:23 AM
To: Tomcat Users List
Subject: Re: Context Path for a subdirectory
On 11/29/2012 11:41 AM, Leo Donahue - RDSA IT wrote:
Reading the docs:
http
>-Original Message-
>From: André Warnier [mailto:a...@ice-sa.com]
>Sent: Friday, November 30, 2012 12:23 AM
>To: Tomcat Users List
>Subject: Re: Context Path for a subdirectory
>>>>>
>>>>> On 11/29/2012 11:41 AM, Leo Donahue - RDSA I
Leo Donahue - RDSA IT wrote:
-Original Message-
From: André Warnier [mailto:a...@ice-sa.com]
Sent: Thursday, November 29, 2012 3:40 PM
To: Tomcat Users List
Subject: Re: Context Path for a subdirectory
Leo Donahue - RDSA IT wrote:
-Original Message-
From: Mark Eggers
>-Original Message-
>From: André Warnier [mailto:a...@ice-sa.com]
>Sent: Thursday, November 29, 2012 3:40 PM
>To: Tomcat Users List
>Subject: Re: Context Path for a subdirectory
>
>Leo Donahue - RDSA IT wrote:
>>> -Original Message-
>>
Leo Donahue - RDSA IT wrote:
-Original Message-
From: Mark Eggers [mailto:its_toas...@yahoo.com]
Sent: Thursday, November 29, 2012 1:12 PM
To: Tomcat Users List
Subject: Re: Context Path for a subdirectory
On 11/29/2012 11:41 AM, Leo Donahue - RDSA IT wrote:
Reading the docs:
http
2012/11/29 Leo Donahue - RDSA IT :
> Reading the docs: http://tomcat.apache.org/tomcat-7.0-doc/config/context.html
>
> "..The web application used to process each HTTP request is selected by
> Catalina based on matching the longest possible prefix of the Request URI
> against the context path of
On 11/29/2012 12:32 PM, Leo Donahue - RDSA IT wrote:
-Original Message- From: Mark Eggers
[mailto:its_toas...@yahoo.com] Sent: Thursday, November 29, 2012
1:12 PM To: Tomcat Users List Subject: Re: Context Path for a
subdirectory
On 11/29/2012 11:41 AM, Leo Donahue - RDSA IT wrote
>-Original Message-
>From: Mark Eggers [mailto:its_toas...@yahoo.com]
>Sent: Thursday, November 29, 2012 1:12 PM
>To: Tomcat Users List
>Subject: Re: Context Path for a subdirectory
>
>On 11/29/2012 11:41 AM, Leo Donahue - RDSA IT wrote:
>> Reading the docs:
> From: Leo Donahue - RDSA IT [mailto:leodona...@mail.maricopa.gov]
> Subject: Context Path for a subdirectory
> If I have a webapp, with a www directory, and in that www directory
> are other directories, how would I restrict access to one of those
> subdirectories to the localhost?
Probably
On 11/29/2012 11:41 AM, Leo Donahue - RDSA IT wrote:
Reading the docs: http://tomcat.apache.org/tomcat-7.0-doc/config/context.html
"..The web application used to process each HTTP request is selected by Catalina
based on matching the longest possible prefix of the Request URI against the conte
Sorry, I don't see how I did not see it:
arg0.getServletContext().getContextPath()
On 25 May 2011 10:53, Mateu Yabar wrote:
> Hi to all,
>
> I've created a ServletContextListener, which needs to use get the current
> context path (as defined in web.xml):
>
> public class UpdateExecutionStartCont
Hi Konstantin,
It is the same but now the problem is I can't use a hard coded path in the
import statement in xsl. So I really wonder why relative paths in
xsl:import are not working with context root deployment of the war.
Regards,
Tembug
On Tue, Mar 9, 2010 at 5:12 AM, Konstantin Kolinko
wrot
2010/3/8 tembugs tembugs :
> In my servelt, I try to transform my xml data available as a string to html
> using the xsl files available.
>
http://marc.info/?t=12665788981&r=1&w=2
That was your thread. Is anything different now?
Best regards,
Konstantin Kolinko
In my servelt, I try to transform my xml data available as a string to html
using the xsl files available.
On Mon, Mar 8, 2010 at 5:14 PM, Pid wrote:
> On 08/03/2010 08:51, tembugs tembugs wrote:
>
>> Hi,
>>
>> On Mon, Mar 8, 2010 at 2:13 PM, André Warnier wrote:
>>
>> tembugs tembugs wrote:
>>
On 08/03/2010 08:51, tembugs tembugs wrote:
Hi,
On Mon, Mar 8, 2010 at 2:13 PM, André Warnier wrote:
tembugs tembugs wrote:
Hi,
I am trying to deploy my web application in tomcat5.5.28 using multilevel
path. Example, my webmodule is testapp.war and I am deploying it as
module1/user1/test
Hi,
On Mon, Mar 8, 2010 at 2:13 PM, André Warnier wrote:
> tembugs tembugs wrote:
>
>> Hi,
>>
>> I am trying to deploy my web application in tomcat5.5.28 using multilevel
path. Example, my webmodule is testapp.war and I am deploying it as
module1/user1/testapp using tomcat manager. It deploys
tembugs tembugs wrote:
Hi,
Can anyone give the step by step procedure to do context path in tomcat
5.5.28? I couldn't follow the one given in apache website.
Maybe, if you explain what you mean by "do context path".
It might be better to explain what you are trying to do, and how it is
not w
> From: Kwok Ng [mailto:[EMAIL PROTECTED]
> Subject: Context path
Telling us the version of Tomcat you're using would be useful.
> I am trying to deploy webapps with context xml file. I have a context
> xml in the /conf/locahost/www.xml. The content is:
I hope that's /conf/Catalina/locahost/w
Because your webapp's context.xml is named www.xml. The path spec in
your ... element is ignored in favor of the
name of the xml file. I'd go further in saying you should also change
the name of your webapp (C:\webapps\www -> C:\webapps\abc).
--David
Kwok Ng wrote:
Hi folks,
I am trying
Kwok Ng wrote:
> I am trying to deploy webapps with context xml file. I have a context
> xml in the /conf/locahost/www.xml. The content is:
>
>
>
> When I start the tomcat, I can't access the anything with
> http://localhost/abc, but I can access http://localhost/www. Why?
Because the path
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Skijor,
Skijor wrote:
>
> BootStrap
> /
>
Note that by mapping '/' to your own servlet, you are overriding the
"default" servlet that usually serves requests for things like static
resources.
> This seems like a tomcat bug to me since I have s
> From: Build Admin [mailto:[EMAIL PROTECTED]
> Subject: context path in tomcat 5.x
>
> How to set context path in tomcat 5.x server?
Reading the doc won't hurt:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
Searching the archives is also useful:
http://marc.theaimsgroup.com/?l=to
Andre Prasetya wrote:
lets say that i have a war named dodol.war, if i deployed to tomcat,
it will
be deployed to /dodol rite ? is it possible to get the path '/dodol'
programatically ? I am thiking of putting a configuration file outside
tomcat lets say at /opt/server/gateway/config and the fil
> From: Konstantin L Kouptsov [mailto:[EMAIL PROTECTED]
> Subject: context path
>
> in
> C:\Program Files\Apache Software Foundation\Tomcat
> 5.5\conf\Catalina\localhost\
> I created a file context.xml with the following contents:
>
>path="/myapp" reloadable="true" docBase="D:\myapp\we
Tim Lucia wrote:
Try D:/myapp/web -- It works for me. Generally speaking, / always works for
directory path separation in anything Java-esque. \ is the escape character,
and so for \ to work, you often have to double it up, i.e., \\.
Yes, thank you for the answer. Actually from the errors i
Try D:/myapp/web -- It works for me. Generally speaking, / always works for
directory path separation in anything Java-esque. \ is the escape character,
and so for \ to work, you often have to double it up, i.e., \\.
-Original Message-
From: Konstantin L Kouptsov [mailto:[EMAIL PROTECTED
Never mind. Typo in the path.
Konstantin L Kouptsov wrote:
Question:
I do not want to put my application into the standard webapps directory,
but rather I prefer to put it on D: disk (with lots of space). Also, I
want to be able to access the application locally. So, I did what's said
in
Hi Robert,
To counter such a problem, try giving the absolute path in the 'appBase'
parameter of the HostName tag in server.xml.
My server.xml is something like this:
After making these changes, the error didn't appear for me.
Thanks,
Sathish
On Thu, 2006-02
Markus,
Thanks for replying. I saw that line as well:
"The value of this field must not be set except when statically defining
a Context in server.xml, as it will be infered from the filenames used
for either the .xml context file or the docBase."
As the current 5.5 documentation states that
Robert Taylor wrote:
> Greetings,
>
> I'm using Tomcat 5.5.15 on Win2k in development.
> I start Tomcat through a target in my Ant build and pass it a server.xml
> file.
>
> My web app is deployed to a directory named "webapp" (the docbase) and
> contains a /META-INF/context.xml file which has a co
63 matches
Mail list logo