Re: health check return 404 after upgrade from 70 to tomcat 9.0.71

2023-03-17 Thread Rui
Hi user group: just found open-telemetry has fixing for it: https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/instrumentation/tomcat/tomcat-common/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/tomcat/common/TomcatHelper.java#L71 ``` static

Re: health check return 404 after upgrade from 70 to tomcat 9.0.71

2023-03-17 Thread Rui
Hi Mark I can't find any Valve setting in the spring boot application(search by valve), would you mind sharing more info? Regarding the mb state and debugging, yes aware that my local intellij debugger could change the mb state, so in the the debug lib I call mb.getType() only I got more

Re: Tomcat 9.0.72 Firefox issue with 204 response (Empty Body)

2023-03-17 Thread Bhavesh Mistry
Hi Tomcat Team and Mark, I am able to reproduce the problem with your sample app. *CSP large header is causing this problem we attached it to ALL responses. This custom header. I am not sure if this is a tomcat issue or Firefox. *We get *NS_ERROR_ABORT*. Sorry, it took a while but the issue

Re: Unable to start application

2023-03-17 Thread John Dale (DB2DOM)
Some context regarding context.xml https://serverfault.com/questions/177862/how-to-add-multiple-context-elements-to-conf-context-xml-in-tomcat6 On 3/17/23, Kevin Huntly wrote: > no I think it has something to do with it but I'm not sure. I'll try taking > out the environment values and see what

Re: Unable to start application

2023-03-17 Thread John Dale (DB2DOM)
ok - "mnet" should be "ment" I figured I'd spell that out and behave like a compiler. :) I would also move that configuration into server.xml (it's a major difference between your configuration and mine). I have never used conf/Context.xml to configure my applications. I've always either put

Re: Unable to start application

2023-03-17 Thread Kevin Huntly
no I think it has something to do with it but I'm not sure. I'll try taking out the environment values and see what happens On Fri, Mar 17, 2023, 19:11 John Dale (DB2DOM) wrote: > In the log you sent below, I see a typo: > Context/Environmnet > > Does that have something to do with it, or is

Re: Unable to start application

2023-03-17 Thread John Dale (DB2DOM)
In the log you sent below, I see a typo: Context/Environmnet Does that have something to do with it, or is this a typo in tomcat logging? On 3/17/23, Kevin Huntly wrote: > yes, under Catalina/localhost > > On Fri, Mar 17, 2023, 19:07 John Dale (DB2DOM) wrote: > >> Are you modifying a

Re: Unable to start application

2023-03-17 Thread Kevin Huntly
yes, under Catalina/localhost On Fri, Mar 17, 2023, 19:07 John Dale (DB2DOM) wrote: > Are you modifying a context.xml file in the conf folder? > > On 3/17/23, Kevin Huntly wrote: > > Also of note: > > > > 17-Mar-2023 17:25:42.113 INFO [main] > >

Re: Unable to start application

2023-03-17 Thread John Dale (DB2DOM)
Are you modifying a context.xml file in the conf folder? On 3/17/23, Kevin Huntly wrote: > Also of note: > > 17-Mar-2023 17:25:42.113 INFO [main] > org.apache.catalina.startup.HostConfig.deployDescriptor Deploying > deployment descriptor >

Re: Unable to start application

2023-03-17 Thread Kevin Huntly
oh yeah definitely. I have path="/solutions" in there. didn't make a difference. if you want the logs I can toss them over, you may see something I don't On Fri, Mar 17, 2023, 18:52 John Dale (DB2DOM) wrote: > Did you try it with your actual context path? > > path="" > > would work for

Re: Unable to start application

2023-03-17 Thread John Dale (DB2DOM)
Did you try it with your actual context path? path="" would work for localhost:8080 path="mypath" would work for localhost:8080/mypath Obviously, replacing "mypath" with your path. On 3/17/23, Kevin Huntly wrote: > thank you i really appreciate that - and whats wrong with loonies and >

Re: Unable to start application

2023-03-17 Thread Kevin Huntly
thank you i really appreciate that - and whats wrong with loonies and toonies?! hahaha haven't figured it out yet, I did add the path="" tag, it didn't help at all. its almost like its just ignoring the actual content of the context.xml but is reading it, because it is attempting to deploy the

Re: Unable to start application

2023-03-17 Thread John Dale (DB2DOM)
Because you seem so humble and are willing to ask a lot of questions, I predict you'll be a very good DB2 admin or a very good whatever you choose to do. I do development/design on Oracle, SQL Server, and MariaDB. I haven't done anything with DB2 since 2003, and it was short lived. I prefer

Re: Unable to start application

2023-03-17 Thread John Dale (DB2DOM)
All good information - thank you. In looking over your configuration file, I noticed that "webapps" was specified. I'm not sure about the "installed apps" folder (never used that). My preferred deployment model is to put my app outside tomcat and reference it from server.xml .. I do some

Re: Unable to start application

2023-03-17 Thread Kevin Huntly
are you a db2 admin? I need one of those too hahaha - I became the db2 admin at my job because I knew the most about it which isn't saying much lol On Fri, Mar 17, 2023, 18:17 John Dale (DB2DOM) wrote: > I'm not a guru regarding tomcat system ops .. I'm trying to hold down > the fort until one

Re: Unable to start application

2023-03-17 Thread John Dale (DB2DOM)
I'm not a guru regarding tomcat system ops .. I'm trying to hold down the fort until one of the really knowledgeable folks chimes-in if we can't figure it out. :) try setting path = "/mycontext" Also, I'm not sure how tomcat is going to resolve the names to service configurations and whatnot ..

Re: Unable to start application

2023-03-17 Thread Kevin Huntly
also, to answer your other question - the app is installed as an exploded war under ${catalina.home}/installed apps as specified in the docbase On Fri, Mar 17, 2023, 18:12 Kevin Huntly wrote: > I assumed the context is driven by the xml name - at least that's what > I've read. happy to add it

Re: Unable to start application

2023-03-17 Thread John Dale (DB2DOM)
I'm using tomcat 10.x - I have had good luck putting everything into server.xml as such .. Engine Host Parameter Resource Context On 3/17/23, Kevin Huntly wrote: > Also of note: > > 17-Mar-2023 17:25:42.113 INFO [main] > org.apache.catalina.startup.HostConfig.deployDescriptor

Re: Unable to start application

2023-03-17 Thread Kevin Huntly
I assumed the context is driven by the xml name - at least that's what I've read. happy to add it if it needs to be there On Fri, Mar 17, 2023, 18:11 John Dale (DB2DOM) wrote: > Did I miss something? > > Isn't there supposed to be a "path" element in your context? > > I'm seeing session cookie

Re: Unable to start application

2023-03-17 Thread John Dale (DB2DOM)
Where are you putting your Context file? Do you have a war file deployed into webapps/some.war? On 3/17/23, Kevin Huntly wrote: > Also of note: > > 17-Mar-2023 17:25:42.113 INFO [main] > org.apache.catalina.startup.HostConfig.deployDescriptor Deploying > deployment descriptor >

Re: Unable to start application

2023-03-17 Thread John Dale (DB2DOM)
Did I miss something? Isn't there supposed to be a "path" element in your context? I'm seeing session cookie path, but not path. On 3/17/23, Kevin Huntly wrote: > Also of note: > > 17-Mar-2023 17:25:42.113 INFO [main] > org.apache.catalina.startup.HostConfig.deployDescriptor Deploying >

Re: Unable to start application

2023-03-17 Thread Kevin Huntly
Also of note: 17-Mar-2023 17:25:42.113 INFO [main] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying deployment descriptor [/opt/Apache/Tomcat/apache-tomcat-9.0.73/conf/Catalina/localhost/esolutions.xml] 17-Mar-2023 17:25:42.174 WARNING [main]

Re: Unable to start application

2023-03-17 Thread Kevin Huntly
Here's my santized server.xml and context.xml server.xml -> https://pastebin.com/Bj6Wh0qU context.xml -> https://pastebin.com/Z3dBf3eK

Re: Unable to start application

2023-03-17 Thread John Dale (DB2DOM)
Also, are you deploying a war file referenced outside of the tomcat home folder, or are you referencing an expanded directory? How much have you edited the default server.xml? Were there xml structural changes in the server.xml file or Context element from what you used to configure the

Re: Unable to start application

2023-03-17 Thread John Dale (DB2DOM)
Did you recursive file search "context.xml" in the tomcat root after deployment? Maybe we can help narrow things down for Chris et al with a little back and forth, or perhaps solve it ourselves. :) Try tailing the catalina, localhost, and other log files in the logs directory on startup ..

Re: Unable to start application

2023-03-17 Thread Kevin Huntly
There's no context.xml in the WAR Kevin Huntly Email: kmhun...@gmail.com Cell: 716/424-3311 -BEGIN GEEK CODE BLOCK- Version: 1.0 GCS/IT d+ s a C++ UL+++$ P+(++) L+++ E--- W+++ N+ o K(+) w---

Re: Unable to start application

2023-03-17 Thread Kevin Huntly
No, and for as much as I'm sure that would work I would rather have it in the context where it belongs. Additionally, it's not reading my JDBC resource references either, nor te MailSession I configured in the root context.xml. Kevin Huntly Email:

Re: Unable to start application

2023-03-17 Thread John Dale (DB2DOM)
Dissect your deployment war, but also make sure you aren't defining a context element in server.xml. Lastly, if memory serves, Tomcat also allows context overrides in expanded war files. I eventually just started managing server.xml metadata (context etc) to avoid conflicts and simplify. "Hope

Re: Unable to start application

2023-03-17 Thread Darryl Baker
Have you tried just setting the environment variable in the shell script .../bin/setenv.sh ? Darryl Baker, GSEC, GCLD (he/him/his) Sr. System Administrator Distributed Application Platform Services Northwestern University 4th Floor 2020 Ridge Avenue Evanston, IL 60208-0801

Unable to start application

2023-03-17 Thread Kevin Huntly
Hello, I am unable to start my application on Tomcat 9.0.73 with JDK19 on RHEL 8.7. It appears to be ignoring everything in my context.xml, for example: Code: try { Context initContext = new InitialContext(); environment = (String) initContext.lookup("environment"); } catch (final

Re: Systemd file and umask for tomcat

2023-03-17 Thread Simon Matter
> Hello, > today I was struggling with the umask on ubuntu and tomcat. > > The normal way to do it in systemd is: > > [Service] > UMask=0022 > > Unfortunately, this didn’t work and it took me a while to figure out, that > Catalina.sh > is overwriting the umask with 0027 if no env-variable was set.

Systemd file and umask for tomcat

2023-03-17 Thread Thomas Hoffmann (Speed4Trade GmbH)
Hello, today I was struggling with the umask on ubuntu and tomcat. The normal way to do it in systemd is: [Service] UMask=0022 Unfortunately, this didn’t work and it took me a while to figure out, that Catalina.sh is overwriting the umask with 0027 if no env-variable was set. So for tomcat, I

Re: health check return 404 after upgrade from 70 to tomcat 9.0.71

2023-03-17 Thread Mark Thomas
On 17/03/2023 14:27, Rui wrote: Hi user group: I added some debug info to the 9.0.71 baseline from the logs it hit this (supposed not inn 9.0.70) https://github.com/apache/tomcat/blob/9.0.71/java/org/apache/catalina/connector/CoyoteAdapter.java#L677 That suggests you are using the Rewrite

Re: Tomcat 9.0.72 and New Relic APM java agent issues

2023-03-17 Thread Mark Thomas
On 17/03/2023 14:02, Roe, Jennifer L wrote: Hi,    We have opened a case with New Relic. The behavior exists with the 7.11.1 and 8.0.1 java agents per multiple applications teams. [The behavior was first noticed with Tomcat 9.0.72; Tomcat 9.0.73 which was released shortly after 9.0.72 also

Re: health check return 404 after upgrade from 70 to tomcat 9.0.71

2023-03-17 Thread Rui
Hi user group: I added some debug info to the 9.0.71 baseline from the logs it hit this (supposed not inn 9.0.70) https://github.com/apache/tomcat/blob/9.0.71/java/org/apache/catalina/connector/CoyoteAdapter.java#L677 means undecodedURI type is T_CHARS or T_STR, however, decodedURI type is

RE: Re: Tomcat 9.0.72 and New Relic APM java agent issues

2023-03-17 Thread Roe, Jennifer L
Hi, We have opened a case with New Relic. The behavior exists with the 7.11.1 and 8.0.1 java agents per multiple applications teams. [The behavior was first noticed with Tomcat 9.0.72; Tomcat 9.0.73 which was released shortly after 9.0.72 also experiences this behavior.] The app teams

Re: Tomcat 9.0.72 and New Relic APM java agent issues

2023-03-17 Thread Thomas Meyer
Hi, We may see something similar with tomcat 9.0.73 and jsp pages. Need to test with newrelic app disabled. Did you already create a case with newrelic with this problem? Mfg Thomas Am 13. März 2023 20:18:12 MEZ schrieb "Roe, Jennifer L" : >We are using 9.0.73 Tomcat version and New Relic

Re: Did something JSP related change between 9.0.71 and 9.0.73

2023-03-17 Thread Thomas Meyer
Hi, It looks like some parts of this is missing: JSP snippet: [...] [...] Will render into configBaseString" /> Looks like the : >Hello, > >> -Ursprüngliche Nachricht- >> Von: Thomas Meyer >> Gesendet: Freitag, 17. März 2023 09:57 >> An: users@tomcat.apache.org >> Betreff:

AW: Did something JSP related change between 9.0.71 and 9.0.73

2023-03-17 Thread Thomas Hoffmann (Speed4Trade GmbH)
Hello, > -Ursprüngliche Nachricht- > Von: Thomas Meyer > Gesendet: Freitag, 17. März 2023 09:57 > An: users@tomcat.apache.org > Betreff: Did something JSP related change between 9.0.71 and 9.0.73 > > Hi, > > One of our jsp pages did start to render incorrectly in 9.0.73. > The same

Did something JSP related change between 9.0.71 and 9.0.73

2023-03-17 Thread Thomas Meyer
Hi, One of our jsp pages did start to render incorrectly in 9.0.73. The same page does render correctly in 9.0.71. We never did use 9.0.72. Any ideas? -- Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.

AW: How do I see the POST payload sent from Tomcat

2023-03-17 Thread Thomas Hoffmann (Speed4Trade GmbH)
Hello, > -Ursprüngliche Nachricht- > Von: Aditya Kumar <0akum...@gmail.com> > Gesendet: Donnerstag, 16. März 2023 20:29 > An: Tomcat Users List > Betreff: How do I see the POST payload sent from Tomcat > > I have a Java application running under Tomcat 9. One component of this >