Re: java.lang.NullPointerException at org.apache.jasper.JspCompilationContext.getTldResourcePath(JspCompilationContext.java:536) when starting Embedded Tomcat Instance

2015-03-16 Thread Thusitha Thilina Dayaratne
Hi Violeta, 2015-03-16 15:33 GMT+02:00 Thusitha Thilina Dayaratne : > > Hi Violeta > > Hi, > > 2015-03-16 15:07 GMT+02:00 Thusitha Thilina Dayaratne : > > > > >>> ERROR {org.apache.catalina.core.ApplicationDispatcher} - > > >>> Servlet.service() for servlet bridgeservlet threw exception > > >>> ja

Re: Error:Could not load [sun.rmi.transport.ObjectTable]

2015-03-16 Thread nandy r
I decided to startup tomcat and check the first request -since the problem seems to be with references from a previous load. I got this exception: java.lang.NoSuchMethodError: sun.rmi.transport.ObjectTable.getStub(Ljava/rmi/Remote;)Ljava/rmi/server/RemoteStub; org.objectweb.carol.rmi.jrm

Re: CGIServlet - Disregarding 404 error-page

2015-03-16 Thread Jacob Haverkost
That is exactly the line I am referring to. Simply replacing the call to res.setStatus with res.sendError would definitely be wrong due to what you described. That change is not what I am suggesting. It is simply what I did for a quick test. I was thinking it would be worth it to add a flag as a s

Re: CGIServlet - Disregarding 404 error-page

2015-03-16 Thread Konstantin Kolinko
2015-03-16 21:52 GMT+03:00 Jacob Haverkost : > Version: 6.0.43 > OS: Win7 x64 > > Currently, the CGIServlet does not appear to support using the 404 > error-page specified in the web.xml (ROOT). The error-pages work fine > > This appears to be due to the line, res.setStatus(404);, inside of doGet()

Re: Slow http denial of service

2015-03-16 Thread Aurélien Terrestris
Christopher, there are several questions in the same thread.. The first one about SlowLoris was answered a long ago ( http://tomcat.10.x6.nabble.com/is-tomcat-6-0-35-vulnerable-to-CVE-2007-6750-td585.html ). On the contrary, for fast connections opening (DOS), we can configure the firewall in

Re: Multiple SSL certificates on one Instance

2015-03-16 Thread Stefan Frei
hi 2 points: configure the reverse proxy is simpler. tomcat may be harder to troubleshoot issues. i would take the prxy to do that, in fact we use squid rev-proxy to solve exact the same problem. Regards Stefan 2015-03-16 14:16 GMT+01:00 Mark Thomas : > On 16/03/2015 12:53, Rory Kelly wrote:

Re: CGIServlet - Disregarding 404 error-page

2015-03-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jacob, On 3/16/15 2:52 PM, Jacob Haverkost wrote: > Version: 6.0.43 OS: Win7 x64 > > Currently, the CGIServlet does not appear to support using the 404 > error-page specified in the web.xml (ROOT). The error-pages work > fine > > This appears to

Re: Slow http denial of service

2015-03-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Aurélien, On 3/16/15 9:16 AM, Aurélien Terrestris wrote: > As browsers (at least the ones I know) open 2 connections to > browse websites That number has been bigger than 2 for quite a while, now: http://stackoverflow.com/questions/985431/max-para

CGIServlet - Disregarding 404 error-page

2015-03-16 Thread Jacob Haverkost
Version: 6.0.43 OS: Win7 x64 Currently, the CGIServlet does not appear to support using the 404 error-page specified in the web.xml (ROOT). The error-pages work fine This appears to be due to the line, res.setStatus(404);, inside of doGet(). According to the documentation for HttpServletResponse.

Re: java.lang.NullPointerException at org.apache.jasper.JspCompilationContext.getTldResourcePath(JspCompilationContext.java:536) when starting Embedded Tomcat Instance

2015-03-16 Thread Violeta Georgieva
Hi, 2015-03-16 15:33 GMT+02:00 Thusitha Thilina Dayaratne : > > Hi Violeta > > Hi, > > 2015-03-16 15:07 GMT+02:00 Thusitha Thilina Dayaratne : > > > > >>> ERROR {org.apache.catalina.core.ApplicationDispatcher} - > > >>> Servlet.service() for servlet bridgeservlet threw exception > > >>> java.lang

Re: java.lang.NullPointerException at org.apache.jasper.JspCompilationContext.getTldResourcePath(JspCompilationContext.java:536) when starting Embedded Tomcat Instance

2015-03-16 Thread Thusitha Thilina Dayaratne
Hi Violeta Hi, 2015-03-16 15:07 GMT+02:00 Thusitha Thilina Dayaratne : > > >>> ERROR {org.apache.catalina.core.ApplicationDispatcher} - > >>> Servlet.service() for servlet bridgeservlet threw exception > >>> java.lang.NullPointerException > >>> at > >>> > > > org.apache.jasper.JspCompilationConte

Re: java.lang.NullPointerException at org.apache.jasper.JspCompilationContext.getTldResourcePath(JspCompilationContext.java:536) when starting Embedded Tomcat Instance

2015-03-16 Thread Violeta Georgieva
Hi, 2015-03-16 15:07 GMT+02:00 Thusitha Thilina Dayaratne : > > >>> ERROR {org.apache.catalina.core.ApplicationDispatcher} - > >>> Servlet.service() for servlet bridgeservlet threw exception > >>> java.lang.NullPointerException > >>> at > >>> > > > org.apache.jasper.JspCompilationContext.getTldRes

Re: Slow http denial of service

2015-03-16 Thread Aurélien Terrestris
As browsers (at least the ones I know) open 2 connections to browse websites, we could have a look on the hourly stats and estimate this (under 100 without problem). I never met such problem anyway, the highest trafic being 120 000 different users/day. If you really have to face DDOS as said by Ch

Re: Multiple SSL certificates on one Instance

2015-03-16 Thread Mark Thomas
On 16/03/2015 12:53, Rory Kelly wrote: > Hey guys, > > > > I’ve a bad feeling what I’m trying to do is impossible, and I’m going to > have to implement a different solution. Been hunting for an answer, but > couldn’t find anything definite. > > I’m running Tomcat 8.0.18, > > Java 1.7.0_75-b13,

Re: java.lang.NullPointerException at org.apache.jasper.JspCompilationContext.getTldResourcePath(JspCompilationContext.java:536) when starting Embedded Tomcat Instance

2015-03-16 Thread Thusitha Thilina Dayaratne
>>> ERROR {org.apache.catalina.core.ApplicationDispatcher} - >>> Servlet.service() for servlet bridgeservlet threw exception >>> java.lang.NullPointerException >>> at >>> > org.apache.jasper.JspCompilationContext.getTldResourcePath(JspCompilationContext.java:536) >>> at > org.apache.jasper.compiler

Multiple SSL certificates on one Instance

2015-03-16 Thread Rory Kelly
Hey guys, I’ve a bad feeling what I’m trying to do is impossible, and I’m going to have to implement a different solution. Been hunting for an answer, but couldn’t find anything definite. I’m running Tomcat 8.0.18, Java 1.7.0_75-b13, Ubuntu 14.04. I have multiple sites running on Virtual H

Re: Slow http denial of service

2015-03-16 Thread David kerber
On 3/16/2015 8:41 AM, Robert Klemme wrote: On Sun, Mar 15, 2015 at 10:07 AM, Aurélien Terrestris wrote: I agree with the NIO connector which gives good results to this problem. Also, on Linux you can configure iptables firewall to limit the number of connections from one IP ( http://unix.sta

Re: Slow http denial of service

2015-03-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Robert, On 3/16/15 8:41 AM, Robert Klemme wrote: > On Sun, Mar 15, 2015 at 10:07 AM, Aurélien Terrestris > > wrote: > >> I agree with the NIO connector which gives good results to this >> problem. Also, on Linux you can configure iptables firewall

Re: Slow http denial of service

2015-03-16 Thread Robert Klemme
On Sun, Mar 15, 2015 at 10:07 AM, Aurélien Terrestris wrote: > I agree with the NIO connector which gives good results to this > problem. Also, on Linux you can configure iptables firewall to limit > the number of connections from one IP ( > > http://unix.stackexchange.com/questions/139285/limit-

Re: java.lang.NullPointerException at org.apache.jasper.JspCompilationContext.getTldResourcePath(JspCompilationContext.java:536) when starting Embedded Tomcat Instance

2015-03-16 Thread Graham Leggett
On 16 Mar 2015, at 11:48 AM, Thusitha Thilina Dayaratne wrote: >>> ERROR {org.apache.catalina.core.ApplicationDispatcher} - >>> Servlet.service() for servlet bridgeservlet threw exception >>> java.lang.NullPointerException >>> at >>> > org.apache.jasper.JspCompilationContext.getTldResourcePath(

Re: AW: digest.bat -a MD5 in Tomcat 8

2015-03-16 Thread Mark Thomas
On 16/03/2015 11:23, Igor Mukhin wrote: > Mark, > > thanks you, now I understand how it is build. > > I think that I have to use plain MD5 without salt if I want to use DIGEST > authentication. Correct. > Tomcat 8 documentation should say that people have to use "-s 0" flag and > copy md5 jus

AW: digest.bat -a MD5 in Tomcat 8

2015-03-16 Thread Igor Mukhin
Mark, thanks you, now I understand how it is build. I think that I have to use plain MD5 without salt if I want to use DIGEST authentication. Tomcat 8 documentation should say that people have to use "-s 0" flag and copy md5 just after the last $-sign. Mit freundlichen Grüßen Igor Mukhin

Re: digest.bat -a MD5 in Tomcat 8

2015-03-16 Thread Mark Thomas
On 16/03/2015 10:22, Igor Mukhin wrote: > Hello, > > I just tried to execute on Tomcat 8.0.20 : > digest.bat -a MD5 myusername:myrealm:mypassword > and it replyed with: > > myusername:myrealm:mypassword:283c7c0d977648d4dc3def5a20e2a595701a754244baec7153d40e8ee30ff6a5$1$f47f1b081ed

digest.bat -a MD5 in Tomcat 8

2015-03-16 Thread Igor Mukhin
Hello, I just tried to execute on Tomcat 8.0.20 : digest.bat -a MD5 myusername:myrealm:mypassword and it replyed with: myusername:myrealm:mypassword:283c7c0d977648d4dc3def5a20e2a595701a754244baec7153d40e8ee30ff6a5$1$f47f1b081edd3627ed24d67274dd6e15 I used this long MD5 (283c7c0d

Re: java.lang.NullPointerException at org.apache.jasper.JspCompilationContext.getTldResourcePath(JspCompilationContext.java:536) when starting Embedded Tomcat Instance

2015-03-16 Thread Thusitha Thilina Dayaratne
On 16/03/2015 09:26, Thusitha Thilina Dayaratne wrote: > Hi All, > > I'm in the process of migrating embedded tomcat application from Tomcat 7 > to Tomcat 8. > When I'm trying to start the embedded instance I'm getting a > NullPointerException > Here is the stacktrace > >> >> ERROR {org.apache.cata

Re: java.lang.NullPointerException at org.apache.jasper.JspCompilationContext.getTldResourcePath(JspCompilationContext.java:536) when starting Embedded Tomcat Instance

2015-03-16 Thread Mark Thomas
On 16/03/2015 09:26, Thusitha Thilina Dayaratne wrote: > Hi All, > > I'm in the process of migrating embedded tomcat application from Tomcat 7 > to Tomcat 8. > When I'm trying to start the embedded instance I'm getting a > NullPointerException > Here is the stacktrace > >> >> ERROR {org.apache.ca

Re: How to use Jasper to Parse JSP

2015-03-16 Thread Mark Thomas
On 16/03/2015 09:19, kaori hattanda wrote: > Dear Jasper > > I develop a tool for JSP's static code analysis. > > I would like to use parse result of jsp files for my tool. > I am assuming that the result is a syntax tree. Assumptions are never a good idea. Take a look at the source code for Ja

Re: Error:Could not load [sun.rmi.transport.ObjectTable]

2015-03-16 Thread Mark Thomas
On 16/03/2015 02:55, nandy r wrote: > Hello, I am trying to setup tomcat+jotm+sqlite and I get this exception stack: > java.lang.IllegalStateException: Illegal access: this web application > instance has been stopped already. > This seems more a java rmi issue although I am not sure. I googled

java.lang.NullPointerException at org.apache.jasper.JspCompilationContext.getTldResourcePath(JspCompilationContext.java:536) when starting Embedded Tomcat Instance

2015-03-16 Thread Thusitha Thilina Dayaratne
Hi All, I'm in the process of migrating embedded tomcat application from Tomcat 7 to Tomcat 8. When I'm trying to start the embedded instance I'm getting a NullPointerException Here is the stacktrace > > ERROR {org.apache.catalina.core.ApplicationDispatcher} - > Servlet.service() for servlet bri

How to use Jasper to Parse JSP

2015-03-16 Thread kaori hattanda
Dear Jasper I develop a tool for JSP's static code analysis. I would like to use parse result of jsp files for my tool. I am assuming that the result is a syntax tree. Would you tell me how to use the syntax tree from external programs? Best Regards, Kaori Hattanda -- -