Classpath issues

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Classpath issues

Kristian Nordal
Hi,

I'm trying to run Jetty embedded, but I get this when I try to access  
to webapp:

java.lang.NullPointerException
         at org.apache.jasper.JspCompilationContext.createCompiler
(JspCompilationContext.java:220)
         at org.apache.jasper.JspCompilationContext.compile
(JspCompilationContext.java:552)
         at org.apache.jasper.servlet.JspServletWrapper.service
(JspServletWrapper.java:293)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile
(JspServlet.java:291)
         at org.apache.jasper.servlet.JspServlet.service
(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at org.mortbay.jetty.servlet.ServletHolder.handle
(ServletHolder.java:427)
         at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
(WebApplicationHandler.java:475)
         at org.mortbay.jetty.servlet.Dispatcher.dispatch
(Dispatcher.java:275)
         at org.mortbay.jetty.servlet.Dispatcher.forward
(Dispatcher.java:169)
         at org.mortbay.jetty.servlet.Default.handleGet(Default.java:
312)
         at org.mortbay.jetty.servlet.Default.service(Default.java:232)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at org.mortbay.jetty.servlet.ServletHolder.handle
(ServletHolder.java:427)
         at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
(WebApplicationHandler.java:475)
         at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:567)
         at org.mortbay.http.HttpContext.handle(HttpContext.java:1565)
         at org.mortbay.jetty.servlet.WebApplicationContext.handle
(WebApplicationContext.java:635)
         at org.mortbay.http.HttpContext.handle(HttpContext.java:1517)
         at org.mortbay.http.HttpServer.service(HttpServer.java:954)
         at org.mortbay.http.HttpConnection.service
(HttpConnection.java:814)
         at org.mortbay.http.HttpConnection.handleNext
(HttpConnection.java:981)
         at org.mortbay.http.HttpConnection.handle
(HttpConnection.java:831)
         at org.mortbay.http.SocketListener.handleConnection
(SocketListener.java:244)
         at org.mortbay.util.ThreadedServer.handle
(ThreadedServer.java:357)
         at org.mortbay.util.ThreadPool$PoolThread.run
(ThreadPool.java:534)

After searching around, I see other people getting this when they are  
having classpath issues (missing dependencies). The classloader of  
the Server object I try to start contains these:

urls[0] = file:/Users/kristian/.m2/repository/org/codehaus/mojo/jetty-
maven-plugin/1.0-SNAPSHOT/jetty-maven-plugin-1.0-SNAPSHOT.jar
urls[1] = file:/Users/kristian/.m2/repository/avalon-framework/avalon-
framework/4.1.3/avalon-framework-4.1.3.jar
urls[2] = file:/Users/kristian/.m2/repository/xerces/xerces/2.4.0/
xerces-2.4.0.jar
urls[3] = file:/Users/kristian/.m2/repository/junit/junit/3.7/
junit-3.7.jar
urls[4] = file:/Users/kristian/.m2/repository/log4j/log4j/1.2.6/
log4j-1.2.6.jar
urls[5] = file:/Users/kristian/.m2/repository/commons-logging/commons-
logging/1.0.4/commons-logging-1.0.4.jar
urls[6] = file:/Users/kristian/.m2/repository/xerces/xercesImpl/2.6.2/
xercesImpl-2.6.2.jar
urls[7] = file:/Users/kristian/.m2/repository/tomcat/jasper-compiler/
5.5.9/jasper-compiler-5.5.9.jar
urls[8] = file:/Users/kristian/.m2/repository/tomcat/jasper-runtime/
5.5.9/jasper-runtime-5.5.9.jar
urls[9] = file:/Users/kristian/.m2/repository/tomcat/jsp-api/5.0.18/
jsp-api-5.0.18.jar
urls[10] = file:/Users/kristian/.m2/repository/logkit/logkit/1.0.1/
logkit-1.0.1.jar
urls[11] = file:/Users/kristian/.m2/repository/jetty/
org.mortbay.jetty/5.1.4/org.mortbay.jetty-5.1.4.jar
urls[12] = file:/Users/kristian/.m2/repository/tomcat/servlet-api/
5.0.18/servlet-api-5.0.18.jar

Anyone got any idea?

--
Thanks,
Kristian


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Jetty-support mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-support
Reply | Threaded
Open this post in threaded view
|

Re: Classpath issues

Kristian Nordal
After adding jasper-compiler-jdt the exception went away.

On Oct 17, 2005, at 2:58 PM, Kristian Nordal wrote:

> Hi,
>
> I'm trying to run Jetty embedded, but I get this when I try to  
> access to webapp:
>
> java.lang.NullPointerException
>         at org.apache.jasper.JspCompilationContext.createCompiler
> (JspCompilationContext.java:220)
>         at org.apache.jasper.JspCompilationContext.compile
> (JspCompilationContext.java:552)
>         at org.apache.jasper.servlet.JspServletWrapper.service
> (JspServletWrapper.java:293)
>         at org.apache.jasper.servlet.JspServlet.serviceJspFile
> (JspServlet.java:291)
>         at org.apache.jasper.servlet.JspServlet.service
> (JspServlet.java:241)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:
> 856)
>         at org.mortbay.jetty.servlet.ServletHolder.handle
> (ServletHolder.java:427)
>         at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
> (WebApplicationHandler.java:475)
>         at org.mortbay.jetty.servlet.Dispatcher.dispatch
> (Dispatcher.java:275)
>         at org.mortbay.jetty.servlet.Dispatcher.forward
> (Dispatcher.java:169)
>         at org.mortbay.jetty.servlet.Default.handleGet(Default.java:
> 312)
>         at org.mortbay.jetty.servlet.Default.service(Default.java:232)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:
> 856)
>         at org.mortbay.jetty.servlet.ServletHolder.handle
> (ServletHolder.java:427)
>         at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
> (WebApplicationHandler.java:475)
>         at org.mortbay.jetty.servlet.ServletHandler.handle
> (ServletHandler.java:567)
>         at org.mortbay.http.HttpContext.handle(HttpContext.java:1565)
>         at org.mortbay.jetty.servlet.WebApplicationContext.handle
> (WebApplicationContext.java:635)
>         at org.mortbay.http.HttpContext.handle(HttpContext.java:1517)
>         at org.mortbay.http.HttpServer.service(HttpServer.java:954)
>         at org.mortbay.http.HttpConnection.service
> (HttpConnection.java:814)
>         at org.mortbay.http.HttpConnection.handleNext
> (HttpConnection.java:981)
>         at org.mortbay.http.HttpConnection.handle
> (HttpConnection.java:831)
>         at org.mortbay.http.SocketListener.handleConnection
> (SocketListener.java:244)
>         at org.mortbay.util.ThreadedServer.handle
> (ThreadedServer.java:357)
>         at org.mortbay.util.ThreadPool$PoolThread.run
> (ThreadPool.java:534)
>
> After searching around, I see other people getting this when they  
> are having classpath issues (missing dependencies). The classloader  
> of the Server object I try to start contains these:
>
> urls[0] = file:/Users/kristian/.m2/repository/org/codehaus/mojo/
> jetty-maven-plugin/1.0-SNAPSHOT/jetty-maven-plugin-1.0-SNAPSHOT.jar
> urls[1] = file:/Users/kristian/.m2/repository/avalon-framework/
> avalon-framework/4.1.3/avalon-framework-4.1.3.jar
> urls[2] = file:/Users/kristian/.m2/repository/xerces/xerces/2.4.0/
> xerces-2.4.0.jar
> urls[3] = file:/Users/kristian/.m2/repository/junit/junit/3.7/
> junit-3.7.jar
> urls[4] = file:/Users/kristian/.m2/repository/log4j/log4j/1.2.6/
> log4j-1.2.6.jar
> urls[5] = file:/Users/kristian/.m2/repository/commons-logging/
> commons-logging/1.0.4/commons-logging-1.0.4.jar
> urls[6] = file:/Users/kristian/.m2/repository/xerces/xercesImpl/
> 2.6.2/xercesImpl-2.6.2.jar
> urls[7] = file:/Users/kristian/.m2/repository/tomcat/jasper-
> compiler/5.5.9/jasper-compiler-5.5.9.jar
> urls[8] = file:/Users/kristian/.m2/repository/tomcat/jasper-runtime/
> 5.5.9/jasper-runtime-5.5.9.jar
> urls[9] = file:/Users/kristian/.m2/repository/tomcat/jsp-api/5.0.18/
> jsp-api-5.0.18.jar
> urls[10] = file:/Users/kristian/.m2/repository/logkit/logkit/1.0.1/
> logkit-1.0.1.jar
> urls[11] = file:/Users/kristian/.m2/repository/jetty/
> org.mortbay.jetty/5.1.4/org.mortbay.jetty-5.1.4.jar
> urls[12] = file:/Users/kristian/.m2/repository/tomcat/servlet-api/
> 5.0.18/servlet-api-5.0.18.jar

--
Kristian



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Jetty-support mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-support