[OWASP-ESAPI] Problems with Swingset on Leopard
Andrea Cogliati
andreac at dollos.it
Tue Oct 14 14:38:19 EDT 2008
Kevin,
I was getting the error when accessing the index.jsp page. The /main
did the trick, thanks! I'm going to experiment a little bit, then
update the wiki with a few hints for Mac and possible Linux users.
Thanks!
Andrea
On Oct 14, 2008, at 1:15 PM, Kevin Fealey wrote:
> Hey Andrea,
>
> I'm guessing you are going to 127.0.0.1:8080
> Swingset is actually set up to run at 127.0.0.1:8080/main
>
> I think this will solve your problem, but if not, get back to me
> with some more details. When is this error displayed? When you
> visit the index? or a specific page? or before you go to the address?
>
> Good luck!
>
> -Kevin
>
> On Tue, Oct 14, 2008 at 11:44 AM, Andrea Cogliati
> <andreac at dollos.it> wrote:
> I reply to my own message. The Swingset WAR on the web site has been
> compiled with Java 6 and cannot run on Java 5 (the default Java
> environment on Leopard): that's account for the "Bad version number
> in .class file" in my previous message.
>
> I tried to compile Swingset myself (not very familiar with Eclipse)
> but when I try to run it I always end up with the following error
> message (with either Tomcat 5.5 or 6.0, Java 5 or Java 6):
>
> SEVERE: Servlet.service() for servlet jsp threw exception
> java.lang.NullPointerException: Cannot use current request until it
> is set with HTTPUtilities.setCurrentHTTP()
> at
> org
> .owasp
> .esapi.reference.DefaultHTTPUtilities.getCurrentRequest(Unknown
> Source)
> at org.apache.jsp.index_jsp._jspService(index_jsp.java:60)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org
> .apache
> .jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:
> 342)
> at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org
> .apache
> .catalina
> .core
> .ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
> 290)
> at
> org
> .apache
> .catalina
> .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
> org
> .apache
> .catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
> 233)
> at
> org
> .apache
> .catalina.core.StandardContextValve.invoke(StandardContextValve.java:
> 191)
> at
> org
> .apache
> .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
> at
> org
> .apache
> .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at
> org
> .apache
> .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
> 109)
> at
> org
> .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
> 286)
> at
> org
> .apache.coyote.http11.Http11Processor.process(Http11Processor.java:
> 845)
> at org.apache.coyote.http11.Http11Protocol
> $Http11ConnectionHandler.process(Http11Protocol.java:583)
> at org.apache.tomcat.util.net.JIoEndpoint
> $Worker.run(JIoEndpoint.java:447)
> at java.lang.Thread.run(Thread.java:613)
>
> Any advise?
>
> Andrea
>
More information about the OWASP-ESAPI
mailing list