Re: Error in stopping application tomcat !!

2020-07-22 Thread Kushagra Bindal
Hi Martin, These are the only two behaviors right now which I am getting on a regular basis. 1. During startup of the application and then shutdown 2. Running application and then shutdown. Please let me know if anything specific is further needed from my end which I can provide to have a better

Re: Error in stopping application tomcat !!

2020-07-22 Thread Martin Grigorov
On Wed, Jul 22, 2020, 15:55 Kushagra Bindal wrote: > Hi Christopher, > > Did you get a chance to look into this? > > Please help us in resolving this issue. > > On Sat, Jul 18, 2020 at 11:26 AM Kushagra Bindal < > bindal.kusha...@gmail.com> > wrote: > > > Hi Chris, > > > > Additionally when tryin

Re: Memory leak in the PKCS11 how to fix the problem

2020-07-22 Thread Martin Grigorov
On Wed, Jul 22, 2020, 16:58 Ragavendhiran Bhiman (rabhiman) wrote: > Sorry Martin, > > My answers are inline. > Take a heap dump and analyze it! > Thanks & Regards, > Raghav > > On 22/07/20, 7:20 PM, "Ragavendhiran Bhiman (rabhiman)" > wrote: > > Hello Martin, > > Thanks for your rep

Re: Why does Tomcat 8.0.36 compile huge JSPs fine but precompiling JSPs with jspc + javac fails with 'code too large' error? And how to fix it?

2020-07-22 Thread Максим Фастовец
> On Wed, Jul 22, 2020 at 6:58 PM Mark Thomas wrote: >> On 22/07/2020 15:49, Максим Фастовец wrote: >> Please advise where do I get that Eclipse Compiler for Java? > It is ecj-*.jar in $CATALINA_HOME/lib in your Tomcat installation. Cold you also please tell how to run it via ant? How to define

Re: Why does Tomcat 8.0.36 compile huge JSPs fine but precompiling JSPs with jspc + javac fails with 'code too large' error? And how to fix it?

2020-07-22 Thread Максим Фастовец
Thank you!

Re: Why does Tomcat 8.0.36 compile huge JSPs fine but precompiling JSPs with jspc + javac fails with 'code too large' error? And how to fix it?

2020-07-22 Thread Mark Thomas
On 22/07/2020 15:49, Максим Фастовец wrote: >> On Wed, Jul 22, 2020 at 3:32 PM Mark Thomas wrote: >>> On 22/07/2020 13:01, Максим Фастовец wrote: >>> Can you please tell why Tomcat 8.0.36 compiles huge JSPs fine but >>> precompiling JSPs with jspc + javac fails with code too large error? And >>> h

Re: Why does Tomcat 8.0.36 compile huge JSPs fine but precompiling JSPs with jspc + javac fails with 'code too large' error? And how to fix it?

2020-07-22 Thread Leonardo
Hi Максим, try there: https://mvnrepository.com/artifact/org.eclipse.jdt.core.compiler/ecj Em qua., 22 de jul. de 2020 às 12:07, Максим Фастовец escreveu: > > On Wed, Jul 22, 2020 at 3:32 PM Mark Thomas wrote: > >> On 22/07/2020 13:01, Максим Фастовец wrote: > >> Can you please tell why Tomcat

Re: Rewrite Valve Problem

2020-07-22 Thread Kenneth Noel
Thanks to the both of you for the help On Wed, Jul 22, 2020 at 4:46 AM Martin Grigorov wrote: > Hi Jerry, > > On Tue, Jul 21, 2020 at 2:39 AM Jerry Malcolm > wrote: > > > > > On 7/20/2020 5:00 PM, Mark Thomas wrote: > > > On 20/07/2020 22:43, Jerry Malcolm wrote: > > > > > > > > > > > >>> Do y

Re: Why does Tomcat 8.0.36 compile huge JSPs fine but precompiling JSPs with jspc + javac fails with 'code too large' error? And how to fix it?

2020-07-22 Thread Максим Фастовец
> On Wed, Jul 22, 2020 at 3:32 PM Mark Thomas wrote: >> On 22/07/2020 13:01, Максим Фастовец wrote: >> Can you please tell why Tomcat 8.0.36 compiles huge JSPs fine but >> precompiling JSPs with jspc + javac fails with code too large error? And >> how to fix it? Thank you! > > Possibly because Tom

Re: Memory leak in the PKCS11 how to fix the problem

2020-07-22 Thread Ragavendhiran Bhiman (rabhiman)
The tomcat version is apache-tomcat-8.5.29 And RedHat Enterprise Linux 7.6 On 22/07/20, 7:28 PM, "Ragavendhiran Bhiman (rabhiman)" wrote: Hi Chris, Please see my answers inline. Also shared the svg graph here. https://www.dropbox.com/sh/o6zra7pf2o1xpge/AAA1J7BaVdPDF7s3RjPmy0x

Re: Classloading Behavior in Embedded Tomcat

2020-07-22 Thread Chirag Dewan
I tried that with standalone Tomcat and it works. I can deploy Jersey-1 and Jersey-2 apps together. I was wondering whether Loader with delegate=false work in context for embedded? Thanks Chirag On Wed, 22 Jul, 2020, 5:03 pm Mark Thomas, wrote: > On 22/07/2020 11:35, Chirag Dewan wrote: > > Th

Re: Memory leak in the PKCS11 how to fix the problem

2020-07-22 Thread Ragavendhiran Bhiman (rabhiman)
Hi Chris, Please see my answers inline. Also shared the svg graph here. https://www.dropbox.com/sh/o6zra7pf2o1xpge/AAA1J7BaVdPDF7s3RjPmy0xBa?dl=0 Kindly reply. Thanks & Regards, Raghav On 20/07/20, 11:08 PM, "Christopher Schultz" wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA

Re: Memory leak in the PKCS11 how to fix the problem

2020-07-22 Thread Ragavendhiran Bhiman (rabhiman)
Sorry Martin, My answers are inline. Thanks & Regards, Raghav On 22/07/20, 7:20 PM, "Ragavendhiran Bhiman (rabhiman)" wrote: Hello Martin, Thanks for your reply https://www.dropbox.com/sh/o6zra7pf2o1xpge/AAA1J7BaVdPDF7s3RjPmy0xBa?dl=0 Here is the link I have shared the fla

Re: Memory leak in the PKCS11 how to fix the problem

2020-07-22 Thread Ragavendhiran Bhiman (rabhiman)
Hello Martin, Thanks for your reply https://www.dropbox.com/sh/o6zra7pf2o1xpge/AAA1J7BaVdPDF7s3RjPmy0xBa?dl=0 Here is the link I have shared the flame graph. Also kindly check my answers in red as well. Thanks & Regards, Raghav On 22/07/20, 2:33 PM, "Martin Grigorov" wrote: Hi Ragaven

Re: Error in stopping application tomcat !!

2020-07-22 Thread Kushagra Bindal
Hi Christopher, Did you get a chance to look into this? Please help us in resolving this issue. On Sat, Jul 18, 2020 at 11:26 AM Kushagra Bindal wrote: > Hi Chris, > > Additionally when trying to stop running application, we are getting below > error. > > Sat Jul 18 05:49:40 UTC 2020 > ***

Re: Why does Tomcat 8.0.36 compile huge JSPs fine but precompiling JSPs with jspc + javac fails with 'code too large' error? And how to fix it?

2020-07-22 Thread Mark Thomas
On 22/07/2020 13:01, Максим Фастовец wrote: > Hi! > > We're working on moving an old legacy Servlet/JSP web app from WebSphere to > Tomcat to cut our expenses. I figured out that the latest version of Tomcat > where our web app runs without 'The code of method > _jspService(HttpServletRequest, Htt

Why does Tomcat 8.0.36 compile huge JSPs fine but precompiling JSPs with jspc + javac fails with 'code too large' error? And how to fix it?

2020-07-22 Thread Максим Фастовец
Hi! We're working on moving an old legacy Servlet/JSP web app from WebSphere to Tomcat to cut our expenses. I figured out that the latest version of Tomcat where our web app runs without 'The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit' er

Re: Classloading Behavior in Embedded Tomcat

2020-07-22 Thread Mark Thomas
On 22/07/2020 11:35, Chirag Dewan wrote: > Thanks for a very quick reply Mark. > > The Tomcat version is 8.5.46. > > Though I do plan to upgrade to 9.0.36 in the coming weeks. OK. Both behave the same way which makes things easier. See the source code for full details but the summary is: First

Re: Classloading Behavior in Embedded Tomcat

2020-07-22 Thread Chirag Dewan
Thanks for a very quick reply Mark. The Tomcat version is 8.5.46. Though I do plan to upgrade to 9.0.36 in the coming weeks. Chirag On Wed, 22 Jul, 2020, 4:03 pm Mark Thomas, wrote: > On 22/07/2020 11:18, Chirag Dewan wrote: > > Hi, > > > > Due to some backward compatibility concerns, I need

Re: Classloading Behavior in Embedded Tomcat

2020-07-22 Thread Mark Thomas
On 22/07/2020 11:18, Chirag Dewan wrote: > Hi, > > Due to some backward compatibility concerns, I need to support both > Jersey-1 and Jersey-2 on the same Tomcat instance. This is an embedded > tomcat which runs inside a JVM application. > > Since, Jersey-1 and Jersey-2 have different JAXRS vers

Classloading Behavior in Embedded Tomcat

2020-07-22 Thread Chirag Dewan
Hi, Due to some backward compatibility concerns, I need to support both Jersey-1 and Jersey-2 on the same Tomcat instance. This is an embedded tomcat which runs inside a JVM application. Since, Jersey-1 and Jersey-2 have different JAXRS versions, I tried to remove both jsr311 and javax.ws.rs-2 f

Re: Memory leak in the PKCS11 how to fix the problem

2020-07-22 Thread Martin Grigorov
Hi Ragavendhiran, On Sat, Jul 18, 2020 at 3:55 PM Ragavendhiran Bhiman (rabhiman) wrote: > Hello All, > > > > I am seeing the memory leaks from tomcat apache in the following SSL path > using PKCS11. Attached the flame graph of memory possible memory leaks in > this area. > > Please check the at

Re: Rewrite Valve Problem

2020-07-22 Thread Martin Grigorov
Hi Jerry, On Tue, Jul 21, 2020 at 2:39 AM Jerry Malcolm wrote: > > On 7/20/2020 5:00 PM, Mark Thomas wrote: > > On 20/07/2020 22:43, Jerry Malcolm wrote: > > > > > > > >>> Do you have a ROOT web application deployed? If not, this could be > >>> https://bz.apache.org/bugzilla/show_bug.cgi?id=645