Re: reloading context with manager-script

2024-03-14 Thread Christopher Schultz
http://tomcat/manager-app/text/reload?path=/ When I reload an application (in java), I get a reply OK - Reloaded application at context path [/] but when the application is not present I get this reply: FAIL - No context exists named [] Is it intentional that the fail shows the ascii code rather

Re: reloading context with manager-script

2024-03-14 Thread Mark Thomas
=/ When I reload an application (in java), I get a reply OK - Reloaded application at context path [/] but when the application is not present I get this reply: FAIL - No context exists named [] Is it intentional that the fail shows the ascii code rather than the slash like on the OK? Yes

Re: reloading context with manager-script

2024-03-12 Thread Christopher Schultz
a reply OK - Reloaded application at context path [/] but when the application is not present I get this reply: FAIL - No context exists named [] Is it intentional that the fail shows the ascii code rather than the slash like on the OK? Yes. If the provided context exists then we know

Re: reloading context with manager-script

2024-03-12 Thread Greg Huber
(in java), I get a reply OK - Reloaded application at context path [/] but when the application is not present I get this reply: FAIL - No context exists named [] Is it intentional that the fail shows the ascii code rather than the slash like on the OK? Yes. If the provided context exists

Re: reloading context with manager-script

2024-03-11 Thread Christopher Schultz
Mark, On 3/10/24 08:49, Mark Thomas wrote: On 10/03/2024 10:50, Greg Huber wrote: Hello, Using http://tomcat/manager-app/text/reload?path=/ When I reload an application (in java), I get a reply OK - Reloaded application at context path [/] but when the application is not present I get

Re: reloading context with manager-script

2024-03-10 Thread Greg Huber
get a reply > > > > OK - Reloaded application at context path [/] > > > > but when the application is not present I get this reply: > > > > FAIL - No context exists named [] > > > > Is it intentional that the fail shows the ascii code rather than the &

Re: reloading context with manager-script

2024-03-10 Thread Mark Thomas
On 10/03/2024 10:50, Greg Huber wrote: Hello, Using http://tomcat/manager-app/text/reload?path=/ When I reload an application (in java), I get a reply OK - Reloaded application at context path [/] but when the application is not present I get this reply: FAIL - No context exists named

reloading context with manager-script

2024-03-10 Thread Greg Huber
Hello, Using http://tomcat/manager-app/text/reload?path=/ When I reload an application (in java), I get a reply OK - Reloaded application at context path [/] but when the application is not present I get this reply: FAIL - No context exists named [] Is it intentional that the fail shows

Re: I forget: does Tomcat have any problems with *not* having a ROOT context?

2023-09-26 Thread Christopher Schultz
James, On 9/25/23 12:17, James H. H. Lampert wrote: I probably asked the question before, but does Tomcat have any problems with not having a ROOT context? I always run with a ROOT context just to be able to do things like provide custom responses with clients request /no-such-app

Re: I forget: does Tomcat have any problems with *not* having a ROOT context?

2023-09-25 Thread Mark Thomas
On 25/09/2023 17:17, James H. H. Lampert wrote: I probably asked the question before, but does Tomcat have any problems with not having a ROOT context? None I am aware of although there may be some edge cases. Past precedence is that any such edge cases would be treated as bugs and fixed

Re: I forget: does Tomcat have any problems with *not* having a ROOT context?

2023-09-25 Thread Aryeh Friedman
On Mon, Sep 25, 2023 at 12:20 PM James H. H. Lampert wrote: > > I probably asked the question before, but does Tomcat have any problems > with not having a ROOT context? Not that I can tell and have been running in this mode for about 5 years now. -- Aryeh M. Friedman, Lead Develo

I forget: does Tomcat have any problems with *not* having a ROOT context?

2023-09-25 Thread James H. H. Lampert
I probably asked the question before, but does Tomcat have any problems with not having a ROOT context? -- James H. H. Lampert Touchtone Corporation - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional

Ответить: tomcat timeouts on startup and on context deployment

2023-08-19 Thread Усманов Азат Анварович
starts in no more than 50 seconds. От: Ivano Luberti Отправлено: 19 августа 2023 г. 10:57 Кому: users@tomcat.apache.org Тема: Re: tomcat timeouts on startup and on context deployment Christopher, Maxim To clarify , I have never hit a timeout in production

Re: tomcat timeouts on startup and on context deployment

2023-08-19 Thread Maxim Solodovnik
On Sat, 19 Aug 2023 at 14:58, Ivano Luberti wrote: > > Christopher, Maxim > > To clarify , I have never hit a timeout in production , but it happened > in Eclipse and since this timeout is configurable in Eclipse Tomcat > Launch configuration I have guessed such a timeout is a tomcat property >

Re: tomcat timeouts on startup and on context deployment

2023-08-19 Thread Ivano Luberti
Christopher, Maxim To clarify , I have never hit a timeout in production , but it happened in Eclipse and since this timeout is configurable in Eclipse Tomcat Launch configuration I have guessed such a timeout is a tomcat property hidden somewhere. AFAIK the list server doesn't allow

Re: tomcat timeouts on startup and on context deployment

2023-08-18 Thread Maxim Solodovnik
from mobile (sorry for typos ;) On Sat, Aug 19, 2023, 10:49 Christopher Schultz < ch...@christopherschultz.net> wrote: > Ivano, > > On 8/18/23 18:17, Ivano Luberti wrote: > > It seems I had explained myself badly. I'll try again. > > > > I need to know if there is and it is configurable a

Re: tomcat timeouts on startup and on context deployment

2023-08-18 Thread Christopher Schultz
Ivano, On 8/18/23 18:17, Ivano Luberti wrote: It seems I had explained myself badly. I'll try again. I need to know if there is and it is configurable a timeout on tomcat startup (in Eclipse you can configure it in the server configuration interface) I need also to know if there is and it

Re: tomcat timeouts on startup and on context deployment

2023-08-18 Thread Ivano Luberti
Hi Christopher. It seems I had explained myself badly. I'll try again. I need to know if there is and it is configurable a timeout on tomcat startup (in Eclipse you can configure it in the server configuration interface) I need also to know if there is and it is configurable a timeout on

Re: tomcat timeouts on startup and on context deployment

2023-08-18 Thread Christopher Schultz
Ivano, On 8/18/23 10:18, Ivano Luberti wrote: Hello eveybody, in one of my use case, when upgrading a web application it coult happen that on startup the application has to perform some database operation that could require some time, even some minutes. This happens typically when deploying

tomcat timeouts on startup and on context deployment

2023-08-18 Thread Ivano Luberti
Hello eveybody, in one of my use case, when upgrading a web application it coult happen that on startup the application has to perform some database operation that could require some time, even some minutes. This happens typically when deploying the application via tomcat manager but could

Re: Words of Wisdom re: Context Versioning - Parallel Deployment

2023-06-21 Thread Christopher Schultz
Dan, On 6/20/23 18:03, Christopher Schultz wrote: Dan, On 6/16/23 12:54, Dan McLaughlin wrote: Does anyone have any advice on implementing Context Versioning (parallel deployment) in Tomcat? It seems to have been a feature for quite some time. Is it stable?   What are the typical issues

Re: Words of Wisdom re: Context Versioning - Parallel Deployment

2023-06-20 Thread Christopher Schultz
Dan, On 6/16/23 12:54, Dan McLaughlin wrote: Does anyone have any advice on implementing Context Versioning (parallel deployment) in Tomcat? It seems to have been a feature for quite some time. Is it stable? What are the typical issues people run into? JMX issues? Classloader issues

AW: Words of Wisdom re: Context Versioning - Parallel Deployment

2023-06-17 Thread Thomas Hoffmann (Speed4Trade GmbH)
Hello Dan, > -Ursprüngliche Nachricht- > Von: Dan McLaughlin > Gesendet: Freitag, 16. Juni 2023 18:54 > An: Tomcat Users List > Betreff: Words of Wisdom re: Context Versioning - Parallel Deployment > > Does anyone have any advice on implementing Context

Words of Wisdom re: Context Versioning - Parallel Deployment

2023-06-16 Thread Dan McLaughlin
Does anyone have any advice on implementing Context Versioning (parallel deployment) in Tomcat? It seems to have been a feature for quite some time. Is it stable? What are the typical issues people run into? JMX issues? Classloader issues? I've tried to do a parallel deployment with our

Context usage

2023-04-10 Thread Kevin Huntly
Hello, I have the following environment entries in my context.xml: I'm trying to reference them in my spring app using the following in the XML: I can reference one and the app boots fine. If I try to reference both I get this: Caused by:

Re: java.lang.IllegalStateException: Unable to find match between the canonical context path

2023-04-10 Thread Mark Thomas
error . java.lang.IllegalStateException: Unable to find match between the canonical context path [/servicename] and the URI presented by the user agent [_visitor=...] at org.apache.catalina.connector.Request.getContextPath(Request.java:2152) at org.apache.catalina.connector.RequestFacade.getContextPath(RequestFacad

java.lang.IllegalStateException: Unable to find match between the canonical context path

2023-04-09 Thread Chandru Mariraj
etween the canonical context path [/servicename] and the URI presented by the user agent [_visitor=...] at org.apache.catalina.connector.Request.getContextPath(Request.java:2152) at org.apache.catalina.connector.RequestFacade.getContextPath(RequestFacade.ja

Issue with request context empty after http error

2023-02-24 Thread Mitch
in StandardHostValve.java. This should be done by the default ErrorReportValve’s invoke(req,res) . When this happens tho, the first step in invoke is checking if the context is null. This is always the case for me, because the uri never gets set because it’s an invalid uri (with an invalid character

Re: apache-tomcat-9.0.70 >> JNDI look up fails in a different thread context class loader !!

2022-12-13 Thread Rob Sargent
On 12/13/22 22:25, dineshk wrote: Hi Mark, I guess you are right , I tried with simple web application and JNDI look up fails in both tomcat 7.x and 9.x if the current thread context class loader is changed but strangely when we deploy our application which uses hibernate (4.3.11

Re: apache-tomcat-9.0.70 >> JNDI look up fails in a different thread context class loader !!

2022-12-13 Thread dineshk
Hi Mark, I guess you are right , I tried with simple web application and JNDI look up fails in both tomcat 7.x and 9.x if the current thread context class loader is changed but strangely when we deploy our application which uses hibernate (4.3.11) , it does work in tomcat 7.x  but not in 9.x

Re: apache-tomcat-9.0.70 >> JNDI look up fails in a different thread context class loader !!

2022-12-13 Thread Rémy Maucherat
On Tue, Dec 13, 2022 at 9:36 AM dineshk wrote: > > > Hi Mark, > I guess you are right , I tried with simple web application and JNDI look up > fails in both tomcat 7.x and 9.x if the current thread context class loader > is changed but strangely when we deploy our appl

Re: apache-tomcat-9.0.70 >> JNDI look up fails in a different thread context class loader !!

2022-12-13 Thread dineshk
Hi Mark, I guess you are right , I tried with simple web application and JNDI look up fails in both tomcat 7.x and 9.x if the current thread context class loader is changed but strangely when we deploy our application which uses hibernate (4.3.11) , it does work in tomcat 7.x  but not in 9.x

Re: apache-tomcat-9.0.70 >> JNDI look up fails in a different thread context class loader !!

2022-12-12 Thread Mark Thomas
On 12/12/2022 16:07, dineshk wrote: Hi Mark, We could reproduce this issue very easily with simple java program as well. Just before doing the JNDI look up , set  any custom class loader in the current thread as context class loader , this will fail the JNDI look up where as if we don't set

Re: apache-tomcat-9.0.70 >> JNDI look up fails in a different thread context class loader !!

2022-12-12 Thread dineshk
Hi Mark, We could reproduce this issue very easily with simple java program as well. Just before doing the JNDI look up , set  any custom class loader in the current thread as context class loader , this will fail the JNDI look up where as if we don't set any custom class loader , it works

Re: apache-tomcat-9.0.70 >> JNDI look up fails in a different thread context class loader !!

2022-12-12 Thread Christopher Schultz
application on tomcat 9.0.70. Before the hibernate bootstraps in our application , we do change the "Current Thread Context Class Loader " in the running thread to our "Custom class loader" which is required. Changing the "Current Thread Context Class Loader "  fails the

Re: apache-tomcat-9.0.70 >> JNDI look up fails in a different thread context class loader !!

2022-12-12 Thread dineshk
one? Mark On 12/12/2022 12:42, dineshk wrote: > Hi , > We are trying to deploy our application on tomcat 9.0.70. Before the > hibernate bootstraps in our application , we do change the "Current Thread > Context Class Loader " in the running thread to our "Cu

Re: apache-tomcat-9.0.70 >> JNDI look up fails in a different thread context class loader !!

2022-12-12 Thread Mark Thomas
the "Current Thread Context Class Loader " in the running thread to our "Custom class loader" which is required. Changing the "Current Thread Context Class Loader "  fails the JNDI look up for data source done by hibernate. if the "Current Thread Context Class Load

apache-tomcat-9.0.70 >> JNDI look up fails in a different thread context class loader !!

2022-12-12 Thread dineshk
Hi , We are trying to deploy our application on tomcat 9.0.70. Before the hibernate bootstraps in our application , we do change the "Current Thread Context Class Loader " in the running thread to our "Custom class loader" which is required. Changing the "Current Th

Re: Context Name replacement variable for conf/context.xml

2022-10-03 Thread Mark Thomas
one attribute that depends on the context name/path so that they can maintain separation of session manager instances between web applications. We have something like this for JULI: ${classloader.webappName}. There isn't anything that can currently do this for conf/context.xml but it might

Re: Context Name replacement variable for conf/context.xml

2022-10-02 Thread Christopher Schultz
Kok Hoor, On 10/1/22 10:20, Chew Kok Hoor wrote: I would like to configure $CATALINA_BASE/conf/context.xml to set up a Manager Don't do this. but would like to add the context name as one of the parameters to the manager (keyPrefix). It's much easier to copy webapps/manager/META-INF

Context Name replacement variable for conf/context.xml

2022-10-01 Thread Chew Kok Hoor
Hi all, I would like to configure $CATALINA_BASE/conf/context.xml to set up a Manager but would like to add the context name as one of the parameters to the manager (keyPrefix). Is there a variable or a list of variables I can use for this purpose? As using environment or java defined

Re: Per context heap usage

2022-05-19 Thread Christopher Schultz
Robert, On 5/19/22 02:34, Robert Olofsson wrote: On Wed, 2022-05-18 at 17:36 -0400, Christopher Schultz wrote: Is it possible to find out the per deployed context heap usage in tomcat? With a profiler you can look at the retained size of the web application class loader instance associated

Re: Per context heap usage

2022-05-19 Thread Robert Olofsson
On Wed, 2022-05-18 at 17:36 -0400, Christopher Schultz wrote: > > > > > Is it possible to find out the per deployed context heap usage in > > > > > tomcat? > > > > > > > > With a profiler you can look at the retained size of the web

Re: Per context heap usage

2022-05-18 Thread Christopher Schultz
Mark, On 5/17/22 12:50, Mark Thomas wrote: On 17/05/2022 17:34, Christopher Schultz wrote: Mark, On 5/17/22 08:17, Mark Thomas wrote: On 17/05/2022 10:41, Thomas Meyer wrote: Hi, Is it possible to find out the per deployed context heap usage in tomcat? With a profiler you can look

Re: Per context heap usage

2022-05-17 Thread Mark Thomas
On 17/05/2022 17:34, Christopher Schultz wrote: Mark, On 5/17/22 08:17, Mark Thomas wrote: On 17/05/2022 10:41, Thomas Meyer wrote: Hi, Is it possible to find out the per deployed context heap usage in tomcat? With a profiler you can look at the retained size of the web application class

Re: Per context heap usage

2022-05-17 Thread Christopher Schultz
Mark, On 5/17/22 08:17, Mark Thomas wrote: On 17/05/2022 10:41, Thomas Meyer wrote: Hi, Is it possible to find out the per deployed context heap usage in tomcat? With a profiler you can look at the retained size of the web application class loader instance associated with a web application

Re: Per context heap usage

2022-05-17 Thread Mark Thomas
On 17/05/2022 10:41, Thomas Meyer wrote: Hi, Is it possible to find out the per deployed context heap usage in tomcat? With a profiler you can look at the retained size of the web application class loader instance associated with a web application. Mark

Per context heap usage

2022-05-17 Thread Thomas Meyer
Hi, Is it possible to find out the per deployed context heap usage in tomcat? Mfg Thomas

Re: Two context paths to same application

2022-04-05 Thread Christopher Schultz
file (which is done only once per deployment). Thanks, -chris -Original Message- From: Mark Thomas Sent: perjantai 1. huhtikuuta 2022 18.46 To: users@tomcat.apache.org Subject: Re: Two context paths to same application On 01/04/2022 15:59, Harri Pesonen wrote: Hello, while reading

RE: Two context paths to same application

2022-04-05 Thread Harri Pesonen
18.46 To: users@tomcat.apache.org Subject: Re: Two context paths to same application On 01/04/2022 15:59, Harri Pesonen wrote: > Hello, > > while reading the documentation in > https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftomc > at.apache.org%2Ftomcat-8

Re: Two context paths to same application

2022-04-01 Thread Mark Thomas
p#1 (directory) => /app/1 (context path) But have another context path pointing to same application: /app/latest (context path) => app#1 (directory) I tried adding to server.xml inside like: But Tomcat created another directory app#latest from this, and copied app#1 there. I would like to avo

Two context paths to same application

2022-04-01 Thread Harri Pesonen
Hello, while reading the documentation in https://tomcat.apache.org/tomcat-8.5-doc/config/context.html#Naming it is not clear to me how to achieve the following: Have one WAR file with corresponding directory, for example: app#1.war => app#1 (directory) => /app/1 (context path) Bu

Re: Help needed reg Context

2021-10-13 Thread Mark Thomas
On 13/10/2021 14:19, Mohan T wrote: Dear All, We are using Tomcat 8.5 on Suse linix. We are deploying one of our artifacts as below hub#app#classic#admin.war The components are also deployed and the context is also created Successfully. Is there any other alternative way to set

Help needed reg Context

2021-10-13 Thread Mohan T
Dear All, We are using Tomcat 8.5 on Suse linix. We are deploying one of our artifacts as below hub#app#classic#admin.war The components are also deployed and the context is also created Successfully. Is there any other alternative way to set the context other than using # . [cid:image001

Re: Mixing Root Context webapp with other webapps

2021-07-09 Thread Christopher Schultz
Jerry, On 7/9/21 01:58, Jerry Malcolm wrote: I have one webapp that processes REST-style url paths and therefore needs to run in the ROOT context. I'm not sure the conclusion follows from the premise, here. You can certainly use REST-style URL paths and not have a context at the top-level

Re: Mixing Root Context webapp with other webapps

2021-07-09 Thread Jerry Malcolm
On 7/9/2021 2:23 AM, Olaf Kock wrote: On 09.07.21 07:58, Jerry Malcolm wrote: I have one webapp that processes REST-style url paths and therefore needs to run in the ROOT context.  Is it possible to run other webapps in the same host with other non-root contexts?   In other words, when

Re: Mixing Root Context webapp with other webapps

2021-07-09 Thread Mark Thomas
On 09/07/2021 08:23, Olaf Kock wrote: On 09.07.21 07:58, Jerry Malcolm wrote: I have one webapp that processes REST-style url paths and therefore needs to run in the ROOT context.  Is it possible to run other webapps in the same host with other non-root contexts?   In other words, when

Re: Mixing Root Context webapp with other webapps

2021-07-09 Thread Olaf Kock
On 09.07.21 07:58, Jerry Malcolm wrote: > I have one webapp that processes REST-style url paths and therefore > needs to run in the ROOT context.  Is it possible to run other webapps > in the same host with other non-root contexts?   In other words, when > resolving a URL to a w

Mixing Root Context webapp with other webapps

2021-07-08 Thread Jerry Malcolm
I have one webapp that processes REST-style url paths and therefore needs to run in the ROOT context.  Is it possible to run other webapps in the same host with other non-root contexts?   In other words, when resolving a URL to a web app, does it try to map the url to the defined context

Re: Error while setting context in serer.xml

2021-06-18 Thread Mark Thomas
On 18/06/2021 14:46, Mohan T wrote: Dear All, We are trying to set the context for a web application in tomcat 8.5. in the file server.xml. It is not considering the path set. Any changes need to be done for this to take effect ?. Rename the WAR file to hub

Error while setting context in serer.xml

2021-06-18 Thread Mohan T
Dear All, We are trying to set the context for a web application in tomcat 8.5. in the file server.xml. It is not considering the path set. Any changes need to be done for this to take effect ?. Thanks Mohan DISCLAIMER: This communication contains information

Re: How to define UserDatabase for webapp in context?

2021-01-29 Thread Karim Kanso
On Fri, 29 Jan 2021 at 09:23, Mark Thomas wrote: > > On 29/01/2021 08:49, Karim Kanso wrote: > > I have been trying to create a context xml file for a webapp so that > > it encapsulates all needed server side configuration for > > authentication to work. T

Re: How to define UserDatabase for webapp in context?

2021-01-29 Thread Mark Thomas
On 29/01/2021 08:49, Karim Kanso wrote: > I have been trying to create a context xml file for a webapp so that > it encapsulates all needed server side configuration for > authentication to work. That is, it contains both the and > elements. > > I dont understand why the fo

How to define UserDatabase for webapp in context?

2021-01-29 Thread Karim Kanso
I have been trying to create a context xml file for a webapp so that it encapsulates all needed server side configuration for authentication to work. That is, it contains both the and elements. I dont understand why the following definition of a context does not work (although does work when

Re: Static context from server.xml no longer working after upgrade to tomcat 9.0.37

2020-10-08 Thread Christopher Schultz
Linda, On 10/7/20 10:36, Haddix, Linda wrote: > We are in the process of upgrading from Tomcat 8.0.36 to Tomcat 9.0.37 > for the samesite cookie issue.  We found very few differences in the > version except for > > a context (static)  in server.xml for static content now gives a

Static context from server.xml no longer working after upgrade to tomcat 9.0.37

2020-10-07 Thread Haddix, Linda
We are in the process of upgrading from Tomcat 8.0.36 to Tomcat 9.0.37 for the samesite cookie issue. We found very few differences in the version except for a context (static) in server.xml for static content now gives a 404 in tomcat. I have checked the logs and it is getting past apache

Re: RemoteIpValve doesn't maintain context in worker thread after startAsync

2020-09-28 Thread Mark Thomas
On 28/09/2020 16:15, Solas, Nathan wrote: > I'm using RemoteIpValve to capture protocolHeader x-forwarded-proto and > upgrade the request to secure when SSL is terminated at the load balancer - > so far so good. > > When using theServletRequest.startAsync() and then passing the work to a >

RemoteIpValve doesn't maintain context in worker thread after startAsync

2020-09-28 Thread Solas, Nathan
I'm using RemoteIpValve to capture protocolHeader x-forwarded-proto and upgrade the request to secure when SSL is terminated at the load balancer - so far so good. When using theServletRequest.startAsync() and then passing the work to a threadpool executor, it seems the RemoteIpValve.invoke

Re: Tomcat WAR Context

2020-04-27 Thread Mark Thomas
On 27/04/2020 14:33, Siddharth Sharma wrote: > Hi, > Tomcat : 8.5.30 > Java 8 > OS : macOS Mojave 10.14.6 > Setting up a few (spring-boot) applications as WARs in a tomcat > server. I'm using the WAR names as the 'context'. Can this context > include regex in the path ? No. Y

Tomcat WAR Context

2020-04-27 Thread Siddharth Sharma
Hi, Tomcat : 8.5.30 Java 8 OS : macOS Mojave 10.14.6 Setting up a few (spring-boot) applications as WARs in a tomcat server. I'm using the WAR names as the 'context'. Can this context include regex in the path ? Sample Endpoint : /tenant/{tenantId}/entity/{entityId} ; Here tenantId is numeric (5

Re: 7.0.59 to 7.0.99 upgrade, CVE-2015-5174 fix prevents us from accessing resources outside context

2020-02-04 Thread Alex Pritchard
(url), with the 'location' param (context) and so was passing 'WEB-INF/content/%{url}' up the chain. Turns out I can override the default params by passing a params array to my @Request annotation, and so I was able to avoid the necessity for traversal by modifying my annotation to: @Result(name

Re: 7.0.59 to 7.0.99 upgrade, CVE-2015-5174 fix prevents us from accessing resources outside context

2020-02-04 Thread Mark Thomas
or 7.0.79 was >>>>> CVE-2017-7674 Cache Poisoning, which didn't seem related to my issue. >>>>> >>>>> >>>>> >>>>> I think you have identified the wrong change as the root cause of the >>>>> problem. RequestUtil st

Re: 7.0.59 to 7.0.99 upgrade, CVE-2015-5174 fix prevents us from accessing resources outside context

2020-02-03 Thread Alex Pritchard
lizes, it just won't let you traverse > >>> outside of the webapp root. The URL above would be fine. > >>> > >>> It isn't clear to me exactly what is going on here. A step-by-step > >>> description of what happens may help us identitfy potential root > causes. >

Re: 7.0.59 to 7.0.99 upgrade, CVE-2015-5174 fix prevents us from accessing resources outside context

2020-01-31 Thread Mark Thomas
fine. >>> >>> It isn't clear to me exactly what is going on here. A step-by-step >>> description of what happens may help us identitfy potential root causes. >>> >>> Given that the annotation uses location and that StrictHttpFirewall is >>> part o

Re: 7.0.59 to 7.0.99 upgrade, CVE-2015-5174 fix prevents us from accessing resources outside context

2020-01-30 Thread Alex Pritchard
ot. The URL above would be fine. > > > > It isn't clear to me exactly what is going on here. A step-by-step > > description of what happens may help us identitfy potential root causes. > > > > Given that the annotation uses location and that StrictHttpFirewall is > > pa

Re: 7.0.59 to 7.0.99 upgrade, CVE-2015-5174 fix prevents us from accessing resources outside context

2020-01-30 Thread Mark Thomas
otential root causes. > > Given that the annotation uses location and that StrictHttpFirewall is > part of Spring Security, I'm wondering if a redirect is involved. If so, > maybe something to do with useRelativeRedirects on the Context > (introduced in 7.0.67)? > > Mark > >

Re: 7.0.59 to 7.0.99 upgrade, CVE-2015-5174 fix prevents us from accessing resources outside context

2020-01-30 Thread Alex Pritchard
happens may help us identitfy potential root causes. Given that the annotation uses location and that StrictHttpFirewall is part of Spring Security, I'm wondering if a redirect is involved. If so, maybe something to do with useRelativeRedirects on the Context (introduced in 7.0.67)? Mark On Thu, Jan

Re: 7.0.59 to 7.0.99 upgrade, CVE-2015-5174 fix prevents us from accessing resources outside context

2020-01-30 Thread Mark Thomas
On 30/01/2020 18:41, Alex Pritchard wrote: > Hi, > > Trying to drag a legacy app forward and running into a breaking change > based on the fact that we're using struts2 to serve some JSPs from a > directory outside our context root by taking advantage of the now-patched > d

7.0.59 to 7.0.99 upgrade, CVE-2015-5174 fix prevents us from accessing resources outside context

2020-01-30 Thread Alex Pritchard
Hi, Trying to drag a legacy app forward and running into a breaking change based on the fact that we're using struts2 to serve some JSPs from a directory outside our context root by taking advantage of the now-patched directory traversal exploit. Essentially the action class is returning @Result

Re: override context path for manager application

2019-12-04 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Konstantin, On 12/4/19 17:32, Konstantin Kolinko wrote: > чт, 5 дек. 2019 г. в 01:20, Guild, Jason A (DOT) > : >> >> Hi all: >> >> The context path of the Tomcat manager application is "/manager"

Re: override context path for manager application

2019-12-04 Thread Guild, Jason A (DOT)
e Tomcat distribution and ran it with $CATALINA_BASE == $CATALINA_HOME and I was just adding a file to $CATALINA_HOME/conf/[engine]/[host]/dev9#manager.xml in an attempt to override the context path. Thanks again for your help, Jason On 12/4/2019 1:32 PM, Konstantin Kolinko wrote: > If y

Re: override context path for manager application

2019-12-04 Thread Konstantin Kolinko
чт, 5 дек. 2019 г. в 01:20, Guild, Jason A (DOT) : > > Hi all: > > The context path of the Tomcat manager application is "/manager" by default > [0]. > I am trying to change this context path from the default using an override > configuration. > > I am doin

override context path for manager application

2019-12-04 Thread Guild, Jason A (DOT)
Hi all: The context path of the Tomcat manager application is "/manager" by default [0]. I am trying to change this context path from the default using an override configuration. I am doing the typical creation of a container using makebase.sh and setting CATALINA_BASE befor

RE: Monitoring resources comsumption at context level

2019-04-05 Thread Jäkel , Guido
From: Christopher Schultz [mailto:ch...@christopherschultz.net] >Sent: Friday, April 05, 2019 12:35 AM >To: users@tomcat.apache.org >Subject: Re: Monitoring resources comsumption at context level > >-BEGIN PGP SIGNED MESSAGE- >Hash: SHA256 > >Fellipe, > >On 4/4/19 16:51, Fellipe

RE: Monitoring resources comsumption at context level

2019-04-05 Thread Jäkel , Guido
>Some years ago I googled something that is called "Classmexer" (as a >subproject(?) of something that is called "Javamex" > > https://www.javamex.com/classmexer/ > I just noticed, that I also have bookmarked an post called "Instrumentation Memory Counter"

Re: Monitoring resources comsumption at context level

2019-04-04 Thread Christopher Schultz
ellipe Theophilo wrote: >>>> Hi everyone, I'm trying to find a way to monitor metrics of >>>> resources comsumption at context level. I've opened this >>>> thread: >>>> https://stackoverflow.com/questions/55070370/monitoring-multiple-ja va- > >>

Re: Monitoring resources comsumption at context level

2019-04-04 Thread Fellipe Theophilo
Fellipe, > > On 4/2/19 17:04, Fellipe Theophilo wrote: > > Hi everyone, I'm trying to find a way to monitor metrics of > > resources comsumption at context level. I've opened this thread: > > https://stackoverflow.com/questions/55070370/monitoring-multiple-java- > appl

Re: Monitoring resources comsumption at context level

2019-04-03 Thread John Dale
to, OMG.org). Then, I can access the statistics on a classloader/instance/context basis, segmented by deployment URL for my most important memory driver. Nothing better than just taking a weekend to make it through critical sections in code to understand the answers to questions like this. Can't

Re: Monitoring resources comsumption at context level

2019-04-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Fellipe, On 4/2/19 17:04, Fellipe Theophilo wrote: > Hi everyone, I'm trying to find a way to monitor metrics of > resources comsumption at context level. I've opened this thread: > https://stackoverflow.com/questions/55070370/monitoring

Monitoring resources comsumption at context level

2019-04-02 Thread Fellipe Theophilo
Hi everyone, I'm trying to find a way to monitor metrics of resources comsumption at context level. I've opened this thread: https://stackoverflow.com/questions/55070370/monitoring-multiple-java-applications-at-once-with-one-zabbix-java-gateway But no one knows a solution. By using jConsole

Re: Tomcat 9 - Web Application deployment fails: OperationNotSupportedException: Context is read only

2019-03-27 Thread Mark Thomas
On 27/03/2019 17:12, Ted Spradley wrote: > My web application deploys/starts normally locally on MacOS with the same > TomEE and JVM 1.8.0_202-b08 and other JMS (embedded ActiveMQ) Websocket > application, but on the remote Linux (CentOS) it fails with the “Context is > read only”

Tomcat 9 - Web Application deployment fails: OperationNotSupportedException: Context is read only

2019-03-27 Thread Ted Spradley
My web application deploys/starts normally locally on MacOS with the same TomEE and JVM 1.8.0_202-b08 and other JMS (embedded ActiveMQ) Websocket application, but on the remote Linux (CentOS) it fails with the “Context is read only” error below. Any suggestion of where to begin looking

Re: Followup2: Changed behaviour of Tomcat Deployment/Context/Lifecycle Manager concerning symbolic links

2019-03-13 Thread Mark Thomas
On 12/03/2019 11:45, Jäkel, Guido wrote: >> -Original Message- >> From: Mark Thomas [mailto:ma...@apache.org] >> Sent: Tuesday, March 12, 2019 12:51 AM >> To: users@tomcat.apache.org >> Subject: Re: Followup2: Changed behaviour of Tomcat >> Deployment/

RE: Followup2: Changed behaviour of Tomcat Deployment/Context/Lifecycle Manager concerning symbolic links

2019-03-13 Thread Jäkel , Guido
>-Original Message- >From: Johanes Soetanto [mailto:otnat...@gmail.com] >Sent: Tuesday, March 12, 2019 9:03 PM >To: Tomcat Users List >Subject: Re: Followup2: Changed behaviour of Tomcat >Deployment/Context/Lifecycle Manager concerning symbolic links > >Hi all, &g

Re: Followup2: Changed behaviour of Tomcat Deployment/Context/Lifecycle Manager concerning symbolic links

2019-03-12 Thread Johanes Soetanto
Hi all, On Tue, 12 Mar. 2019, 9:45 pm Jäkel, Guido, wrote: >-Original Message- >From: Mark Thomas [mailto:ma...@apache.org] >Sent: Tuesday, March 12, 2019 12:51 AM >To: users@tomcat.apache.org >Subject: Re: Followup2: Changed behaviour of Tomcat Deployment/Context/Li

RE: Followup2: Changed behaviour of Tomcat Deployment/Context/Lifecycle Manager concerning symbolic links

2019-03-12 Thread Jäkel , Guido
>-Original Message- >From: Mark Thomas [mailto:ma...@apache.org] >Sent: Tuesday, March 12, 2019 12:51 AM >To: users@tomcat.apache.org >Subject: Re: Followup2: Changed behaviour of Tomcat >Deployment/Context/Lifecycle Manager concerning symbolic links &g

Re: Followup2: Changed behaviour of Tomcat Deployment/Context/Lifecycle Manager concerning symbolic links

2019-03-11 Thread Mark Thomas
he docBase, the canonical version of that path was set as the docBase on the Context. If the user supplied a relative value for the docBase, the value was passed as is. There is no good reason that I can see for that inconsistency and potential (unproven) for things to break if the docBase contai

Re: Followup2: Changed behaviour of Tomcat Deployment/Context/Lifecycle Manager concerning symbolic links

2019-03-11 Thread Michael Osipov
there was not any real hit for the motivation for the change or any reference to an issue ticket or a pull request. There's just one sentence for the changelog:   Ensure that a canonical path is always used for the docBase of a Context   to ensure consistent behaviour. (markt) But I

RE: Followup2: Changed behaviour of Tomcat Deployment/Context/Lifecycle Manager concerning symbolic links

2019-03-11 Thread Jäkel , Guido
>-Original Message- >From: Rainer Jung [mailto:rainer.j...@kippdata.de] >Sent: Monday, March 11, 2019 9:03 AM >To: Tomcat Users List ; Michael Osipov > >Subject: Re: Followup2: Changed behaviour of Tomcat >Deployment/Context/Lifecycle Manager concerning symbolic link

Re: Followup2: Changed behaviour of Tomcat Deployment/Context/Lifecycle Manager concerning symbolic links

2019-03-11 Thread Rainer Jung
for the change or any reference to an issue ticket or a pull request. There's just one sentence for the changelog:   Ensure that a canonical path is always used for the docBase of a Context   to ensure consistent behaviour. (markt) But I can't get any idea from that what the author

  1   2   3   4   5   6   7   8   9   10   >