Re: Add jar to catalina base / tomcat instance classpath (Tomcat 9)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Paul, On 9/4/19 11:21, Paul Carter-Brown wrote: > Can you not just put the jar in the /lib folder of tomcat Or, more specifically, here: %CATALINA_BASE%/lib - -chris > On Wed, Sep 4, 2019 at 5:17 PM Stephane Passignat > wrote: > >> I may misread the catalina.sh (else instead of elif). >> >> I try to add a setenv.sh in the catalina_home. >> >> -Original Message- From: Stephane Passignat >> > stephane%20passignat%20%3cpassig...@hotmail.com%3e>> Reply-To: >> Tomcat Users List > tomcat%20users%20list%20%3cus...@tomcat.apache.org%3e>> To: >> Tomcat Users List > tomcat%20users%20list%20%3cus...@tomcat.apache.org%3e>> Subject: >> Add jar to catalina base / tomcat instance classpath (Tomcat 9) >> Date: Wed, 4 Sep 2019 14:54:53 + >> >> >> Hi, >> >> >> I would like to add a jar to tomcat system classloader >> (applicable to tomcat instance and its applications but not to >> all tomcat instances). >> >> >> I read the catalina.sh files but I can't find a solution. Are >> there any ? >> >> >> thanks >> >> stephane >> >> >> > -BEGIN PGP SIGNATURE- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl1v6SwACgkQHPApP6U8 pFj6Kg//Ry1sVZf69iGzn+MYR81hht00tHMsL5yMg7b5R4dgVcJkO+kB2v4BnL8Y +/q/F8oJ6kj/0b4GXXYr76cY+ry9Ax0MRLK05YBLLtmON/dKjUys9nDdY0GkiadK vkswTTjkb8hflTvSimu7g7RHwj7aUqHR9/3coxHaraQk90Sh00ucnJmUzNXfP204 1FZ8rj0hkhmwL2GhgAwbtOFHiDiu01UbYc3jclki+dLFCDrb5CLm5Rj/QAj3b+Si MOV5g3vi379NicpVLRHPdZhvUSQvsVVSq/+K7PUI8tPUScUAFNRNGSpNgVcRHPIV 39ISFcKKJHo6VJjeykidlDH8z0kFXMgtnSR/R09II93Km52Ltj6BFtjv1JJ0JPob lvUsFTHd1pQ2iq5+Ous9yEE+10VJn6SQnBrDz6IkjzV5PVctj1+jdw10FxYV7El0 A8+bmMEgEo5iY0Dl/UQZHwqnM5addzsI+GvAnQP7yMfZYi2Da/LwztK2arhxwD8q UxuveNB2vIWF/Rhfh4iJlT7iPPr0WsyUE836wN6/SJ8HbC+BUOYTL1uwxPXcnOlo PrSTmpR9qafKC+j7bO0xCM5r1rWNBA+8Ar4a5oo9wUN18QJFJU0zofpEfE9d/yKY rO5t9r3jQqWO+OG4OvEu6RJRdQo6/gISpOIkT37Ii+5AOC9gl00= =e5da -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat doesn't refreshes and still gives me an old error again and again
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Karen, > On 9/4/19 10:45, Karen Goh wrote: >> On Wednesday, September 4, 2019, 9:32:43 PM GMT+8, Dave Thorn >> wrote: > > >> On Wed, Sep 04, 2019 at 01:21:11PM +, Karen Goh wrote: > > >>> I am facing this problem - that Tomcat - 9.0.24 doesn't >>> refreshes and it will give ma an error, even after I commented >>> out a line. But, after several cleaning - using Tomcat >>> Directory clean, right-click on the project in Eclipse and do a >>> run maven force update and project built, it will still give me >>> an error that point out to a commented out line. > > >> Do you have a tomcat/work directory? ISTR sometimes having to > >> rm -rf /var/cache/tomcat/work/Catalina/localhost/{webappname} > >> Could you let me know how to do it Windows 10 way? Sorry for the >> trouble cos basically most of my stuff is still using Windows >> 10 > > C:> DEL /S %CATALINA_BASE%\work\Catalina\localhost\{webappname} > > Or just navigate Windows Explorer to the "work" directory and > press the "DELETE" key on your keyboard. > > Hi Chris, > > Just to clarify, so instead of doing the clean, I will have to to > to this place - C:\Program > Files\Apache\apache-tomcat-9.0.24\webapps\webappname and delete > weappname ? Not at all. You are deleting the "work" directory for the application. Only do this when Tomcat is not running, otherwise it will probably get very upset. You probably don't need to do this. I was just helping you translate *NIX-speak into Windows-speak. > I happened to read this > https://stackoverflow.com/questions/763693/where-is-the-work-directory - -located-for-a-tomcat-instance-running-in-eclipse > > I checked the location when I right-clicked the Tomcat instance, > it says meta data, so should I delete the metadata one ? My Tomcat > configuration is take control of Tomcat installation. > > Kindly advise. And thanks for your help.> You've reached the limit of my knowledge when it comes to Eclipse. I mostly use Eclipse as a text editor with auto-complete and syntax checking. I do builds and deployments separately. - -chris -BEGIN PGP SIGNATURE- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl1v6OUACgkQHPApP6U8 pFhyNQ//ZYdfKCkKBp1uLqUzxrhxqxyb8KyrgUDAwl9hPUar8BINzK3Wp+tz8esX 6EGYuMiNbqgKvF8QLV6PllIkqo/tV/qlmzgSkiGPhXtn6O3FIBy1iCIScCaFyUnE kWoI8Ct7qwQsQtfn2fR6FqLR/om1dHGYr86zCBow65vxS04wXVD6X8i0N3gdPkKh Q7MQYsG5pzdI+CtiXGnXaFGhZP58guCZd1EAlbH9xEVxHY5RFh8XDBlf4VmOFrXD jrgkmo1Lzkr2lCmWRgi1CCaqma3daMbKnND/CVjACPzgfMIMu3Vyj1oEO4rvFqBX ph7cXM+B6XMDqMKa9PVg0+S5LUKjZIPptm9jvupGp9JzBeoxPXwR2k7UO6K873/c ndone4WrWoB/3J829Kk6nrZ39ukEG2O2tpfN8h3WRuz49exUnGlh+F14QG1D6f9h 8i7T5vHkIONUnw7L3dS4jpGwoxJXM0QmlKc3Aj/t6P4QzFSnIK3peEEUGR7WqC1S w1OIMumpMocOtyJRym4nSUByyk5NLUxjJS0Z6Iilg/BlbAPqFpSAfNzwf4h/C4Ue fidAWIFyubp4RNrNDMSap7hOE+6cIukAYNDpH9h+GgWjFhB7dHKE9gZdcHcsOzOG YXGYXN0j3Uz9HZEKEpOm23eykBG7Yj2tbNUWUR2d4NtScLeLsaY= =7zeG -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat doesn't refreshes and still gives me an old error again and again
On Wednesday, September 4, 2019, 10:50:17 PM GMT+8, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Karen, On 9/4/19 10:45, Karen Goh wrote: > On Wednesday, September 4, 2019, 9:32:43 PM GMT+8, Dave Thorn > wrote: > > > On Wed, Sep 04, 2019 at 01:21:11PM +, Karen Goh wrote: > > >> I am facing this problem - that Tomcat - 9.0.24 doesn't >> refreshes and it will give ma an error, even after I commented >> out a line. But, after several cleaning - using Tomcat Directory >> clean, right-click on the project in Eclipse and do a run maven >> force update and project built, it will still give me an error >> that point out to a commented out line. > > > Do you have a tomcat/work directory? ISTR sometimes having to > > rm -rf /var/cache/tomcat/work/Catalina/localhost/{webappname} > > Could you let me know how to do it Windows 10 way? Sorry for the > trouble cos basically most of my stuff is still using Windows > 10 C:> DEL /S %CATALINA_BASE%\work\Catalina\localhost\{webappname} Or just navigate Windows Explorer to the "work" directory and press the "DELETE" key on your keyboard. Hi Chris, Just to clarify, so instead of doing the clean, I will have to to to this place - C:\Program Files\Apache\apache-tomcat-9.0.24\webapps\webappname and delete weappname ? I happened to read this https://stackoverflow.com/questions/763693/where-is-the-work-directory-located-for-a-tomcat-instance-running-in-eclipse I checked the location when I right-clicked the Tomcat instance, it says meta data, so should I delete the metadata one ? My Tomcat configuration is take control of Tomcat installation. Kindly advise. And thanks for your help. - -chris -BEGIN PGP SIGNATURE- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl1vzyQACgkQHPApP6U8 pFilXw//d6+V8jCdk7rsimcTHB7khA5G0ERSXISHZCbGRA+PHxa4wE2U6Z1HFZtv 7hoxx46PSNkcWr+wgIjWCcj87MRdZsOJOAOqByRH1fSPLmZzdJyUxafPPNjA0wxU zT+T4CicFbBehjCi9rMbNI8tt/UOjQDcNJPuEIEXoLj2L4ybDSMcrTGjjDfhUuf8 +Z/1XefU7lBMiBDBGVGTmePm58P8cjLj8rq7nuXEbs3fcmA6udoHpWmoP7A4u+tx bmF1L6UEL0V3DIAUPJrV+WONGUw6te4sRF4PmKCPLyWBqfClU6lRt0U3CFN/T2u8 RqjX/rsCio4oImLSbgzRQnYLdWwb5tvuZzhlRGTnJcrSHj8D8ECWq8GdL0ppOnZo WoNf03NlaHniFUo6zW/LeMQUDjETH6/2qyvXC8fpjDDOn74yy6Zwk1ZMCwSmGS3e D7Sdek0ZlzonaCRcOu0f+iHNU/2ZuGdwKrgIltPuRwG50Tkhjad780/Xt55v/vOL kyqppaONZypXqNTkmDnIibzd1TyknRk7Y9UnCQIkgnBzhNuuG4MxzFh+2/BK8Qiy fOVZUCEvm5DbFIMRE4QSc7b8edrrC3YDRuQecZnii5Lk7c9By3xLiGu1SfH673Jz /is7giTMejiUzs2sb6JUYJN6RPyHPDFgI15ZRhgekt+OpN5jDXQ= =EtCR -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Add jar to catalina base / tomcat instance classpath (Tomcat 9)
Can you not just put the jar in the /lib folder of tomcat On Wed, Sep 4, 2019 at 5:17 PM Stephane Passignat wrote: > I may misread the catalina.sh (else instead of elif). > > I try to add a setenv.sh in the catalina_home. > > -Original Message- > From: Stephane Passignat stephane%20passignat%20%3cpassig...@hotmail.com%3e>> > Reply-To: Tomcat Users List tomcat%20users%20list%20%3cus...@tomcat.apache.org%3e>> > To: Tomcat Users List tomcat%20users%20list%20%3cus...@tomcat.apache.org%3e>> > Subject: Add jar to catalina base / tomcat instance classpath (Tomcat 9) > Date: Wed, 4 Sep 2019 14:54:53 + > > > Hi, > > > I would like to add a jar to tomcat system classloader (applicable to > tomcat instance and its applications but not to all tomcat instances). > > > I read the catalina.sh files but I can't find a solution. Are there any ? > > > thanks > > stephane > > >
Re: Add jar to catalina base / tomcat instance classpath (Tomcat 9)
I may misread the catalina.sh (else instead of elif). I try to add a setenv.sh in the catalina_home. -Original Message- From: Stephane Passignat mailto:stephane%20passignat%20%3cpassig...@hotmail.com%3e>> Reply-To: Tomcat Users List mailto:tomcat%20users%20list%20%3cus...@tomcat.apache.org%3e>> To: Tomcat Users List mailto:tomcat%20users%20list%20%3cus...@tomcat.apache.org%3e>> Subject: Add jar to catalina base / tomcat instance classpath (Tomcat 9) Date: Wed, 4 Sep 2019 14:54:53 + Hi, I would like to add a jar to tomcat system classloader (applicable to tomcat instance and its applications but not to all tomcat instances). I read the catalina.sh files but I can't find a solution. Are there any ? thanks stephane
Add jar to catalina base / tomcat instance classpath (Tomcat 9)
Hi, I would like to add a jar to tomcat system classloader (applicable to tomcat instance and its applications but not to all tomcat instances). I read the catalina.sh files but I can't find a solution. Are there any ? thanks stephane
Re: Tomcat doesn't refreshes and still gives me an old error again and again
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Karen, On 9/4/19 10:45, Karen Goh wrote: > On Wednesday, September 4, 2019, 9:32:43 PM GMT+8, Dave Thorn > wrote: > > > On Wed, Sep 04, 2019 at 01:21:11PM +, Karen Goh wrote: > > >> I am facing this problem - that Tomcat - 9.0.24 doesn't >> refreshes and it will give ma an error, even after I commented >> out a line. But, after several cleaning - using Tomcat Directory >> clean, right-click on the project in Eclipse and do a run maven >> force update and project built, it will still give me an error >> that point out to a commented out line. > > > Do you have a tomcat/work directory? ISTR sometimes having to > > rm -rf /var/cache/tomcat/work/Catalina/localhost/{webappname} > > Could you let me know how to do it Windows 10 way? Sorry for the > trouble cos basically most of my stuff is still using Windows > 10 C:> DEL /S %CATALINA_BASE%\work\Catalina\localhost\{webappname} Or just navigate Windows Explorer to the "work" directory and press the "DELETE" key on your keyboard. - -chris -BEGIN PGP SIGNATURE- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl1vzyQACgkQHPApP6U8 pFilXw//d6+V8jCdk7rsimcTHB7khA5G0ERSXISHZCbGRA+PHxa4wE2U6Z1HFZtv 7hoxx46PSNkcWr+wgIjWCcj87MRdZsOJOAOqByRH1fSPLmZzdJyUxafPPNjA0wxU zT+T4CicFbBehjCi9rMbNI8tt/UOjQDcNJPuEIEXoLj2L4ybDSMcrTGjjDfhUuf8 +Z/1XefU7lBMiBDBGVGTmePm58P8cjLj8rq7nuXEbs3fcmA6udoHpWmoP7A4u+tx bmF1L6UEL0V3DIAUPJrV+WONGUw6te4sRF4PmKCPLyWBqfClU6lRt0U3CFN/T2u8 RqjX/rsCio4oImLSbgzRQnYLdWwb5tvuZzhlRGTnJcrSHj8D8ECWq8GdL0ppOnZo WoNf03NlaHniFUo6zW/LeMQUDjETH6/2qyvXC8fpjDDOn74yy6Zwk1ZMCwSmGS3e D7Sdek0ZlzonaCRcOu0f+iHNU/2ZuGdwKrgIltPuRwG50Tkhjad780/Xt55v/vOL kyqppaONZypXqNTkmDnIibzd1TyknRk7Y9UnCQIkgnBzhNuuG4MxzFh+2/BK8Qiy fOVZUCEvm5DbFIMRE4QSc7b8edrrC3YDRuQecZnii5Lk7c9By3xLiGu1SfH673Jz /is7giTMejiUzs2sb6JUYJN6RPyHPDFgI15ZRhgekt+OpN5jDXQ= =EtCR -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat doesn't refreshes and still gives me an old error again and again
On Wednesday, September 4, 2019, 9:32:43 PM GMT+8, Dave Thorn wrote: On Wed, Sep 04, 2019 at 01:21:11PM +, Karen Goh wrote: > I am facing this problem - that Tomcat - 9.0.24 doesn't refreshes > and it will give ma an error, even after I commented out a line. > But, after several cleaning - using Tomcat Directory clean, > right-click on the project in Eclipse and do a run maven force > update and project built, it will still give me an error that point > out to a commented out line. Do you have a tomcat/work directory? ISTR sometimes having to rm -rf /var/cache/tomcat/work/Catalina/localhost/{webappname} Could you let me know how to do it Windows 10 way? Sorry for the trouble cos basically most of my stuff is still using Windows 10 although it was never obvious why I sometimes had to, but generally didn't. -- dave thorn Would you like green eggs and the fundamental condition of yearning for meaning in a world devoid of it? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat doesn't refreshes and still gives me an old error again and again
On Wed, Sep 04, 2019 at 01:21:11PM +, Karen Goh wrote: > I am facing this problem - that Tomcat - 9.0.24 doesn't refreshes > and it will give ma an error, even after I commented out a line. > But, after several cleaning - using Tomcat Directory clean, > right-click on the project in Eclipse and do a run maven force > update and project built, it will still give me an error that point > out to a commented out line. Do you have a tomcat/work directory? ISTR sometimes having to rm -rf /var/cache/tomcat/work/Catalina/localhost/{webappname} although it was never obvious why I sometimes had to, but generally didn't. -- dave thorn Would you like green eggs and the fundamental condition of yearning for meaning in a world devoid of it? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat doesn't refreshes and still gives me an old error again and again
Hi Expert, I am facing this problem - that Tomcat - 9.0.24 doesn't refreshes and it will give ma an error, even after I commented out a line. But, after several cleaning - using Tomcat Directory clean, right-click on the project in Eclipse and do a run maven force update and project built, it will still give me an error that point out to a commented out line. Can I know if the above indicate a corrupted Tomcat instance or what should I do in order not to have the above problem crop up again and again? Eclipse Maven Java EE, JSP, JSTL OS : Windows10 Tomcat : 9.0.24 Thanks & regards, Karen - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: SSO fails on Tomcat 9
Heidi, I have just completed the tests and SPNEGO works as expected with both Tomcat 8.5.x and 9.0.x. The test environment was as per: http://tomcat.apache.org/tomcat-9.0-doc/windows-auth-howto.html with the following changes: - Updated the Domain Controller and Tomcat instance with all the latest patches from Windows update - Oracle Java 1.8.0u162 / Adopt OpenJDK Java 11.0.4_11 (tested Tomcat running under both) - Tomcat 8.5.x, Tomcat 9.0.x (current HEAD at the time of writing), 9.0.24 (from the tag) The test environment uses separate CATALINA_HOME / CATALINA_BASE so the Tomcat instance configuration (CATALINA_BASE) is guaranteed to be identical while I vary the Tomcat binary (CATALINA_HOME) to use. It looks like there is something not quite right with the Tomcat 9 configuration. You could try adding: -Dsun.security.spnego.debug=true in setenv.bat. That might provide some insight although I've had mixed experience using that to debug SPNEGO issues in the past. >> Thank you for your help with this, it must be that Tomcat 9 SPNEGO is more >> strict than the Tomcat 8 implementation was... I haven't found any evidence to support the above conclusion at this point. All the evidence so far (diff of the relevant code and my own test environment) points to a configuration difference in your Tomcat 9 installation. You mentioned starting and stopping services. I wondered if the change of default user from "Local System" to "Local Service" had triggered this issue but that makes no difference. Looking at your log files in more detail, I do notice a few things: -Djava.security.krb5.ini=... The above system property is incorrect. It should be: -Djava.security.krb5.conf=... It won't impact your environment because it appears to be set to the default. This affects both Tomcat 8 and Tomcat 9. The conf\krb5.ini does not specify the keytab file. In the config files in the Tomcat docs this looks like: default_keytab_name = FILE:c:\apache-tomcat-9.0.x\conf\tomcat.keytab The debug logs for the authentication processes look very different. That strongly suggests that the configurations are not the same. I would concentrated on comparing the configuration of the two systems. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Fw: Tomcat 7.0 how to check if overloaded with requests or were requests received by tomcat on a specific day and time
On 04.09.2019 08:11, ford royal wrote: Dear Experts Please guide me I am trying to investigate we use TOMCAT 7.0 1. how to check if TOMCAT is overloaded with incoming requests ? 2. were the requests received by TOMCAT on a specific day and time from SAP ECC ? How to find ? Precise tomcat version ? (7.x.y) Precise JVM versions ? Precise platform (OS) ? 1. The first step would be to see if it is not the platform that is overloaded. You can get an idea of that with e.g. "top" (for Linux) or the Task Manager (for Windows). Tomcat (or rather the JVM which runs Tomcat) will use as much CPU as it can get. If it is the only serious thing running on that system, then it will use 100% of the CPU, if it can/must, to process incoming requests. 2. Configure a tomcat access log, and look at it. In the standard configuration, it will show the IP of the client, and the requested URL, for each request. It probably also shows the time needed to process each request. See here : http://tomcat.apache.org/tomcat-7.0-doc/config/valve.html#Access_Log_Valve Also, tomcat 7 is old, and the current version is tomcat 9. You'll have more chances to get better answers with a more recent version. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Fw: Tomcat 7.0 how to check if overloaded with requests or were requests received by tomcat on a specific day and time
> Dear Experts > > Please guide me I am trying to investigate we use TOMCAT 7.0 > > 1. how to check if TOMCAT is overloaded with incoming requests ? > 2. were the requests received by TOMCAT on a specific day and time from SAP > ECC ? How to > find ? > > > Rau. > Best Regards, > Thank you, > Cheers. :-))