Hi,

I'm new to Maven and have been following the examples in the Maven
developers notebook book. I've tried using the jetty plugin to load a
war containing an application which includes some JSP's.

Jetty starts up fine, but when I go to the first page (a JSP) I get the
error below.

I realise this is because Jetty can't find tools.jar to compile the
generated servlet code- what I don't know is how to add tools.jar to the
jetty plugin classpath. JAVA_HOME is set up correctly. I'm using jdk1.5
on Linux.

Any help would be most appreciated.

Regards,
Greg.

[java] java.lang.NoClassDefFoundError: sun/tools/javac/Main
    [java]      at org.apache.jasper.compiler.SunJavaCompiler.compile
(SunJavaCompiler.java:136)
    [java]      at org.apache.jasper.compiler.Compiler.compile
(Compiler.java:272)
    [java]      at org.apache.jasper.servlet.JspServlet.loadJSP
(JspServlet.java:548)
    [java]      at org.apache.jasper.servlet.JspServlet
$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
    [java]      at org.apache.jasper.servlet.JspServlet
$JspServletWrapper.service(JspServlet.java:188)
    [java]      at org.apache.jasper.servlet.JspServlet.serviceJspFile
(JspServlet.java:381)
    [java]      at org.apache.jasper.servlet.JspServlet.service
(JspServlet.java:473)
    [java]      at javax.servlet.http.HttpServlet.service
(HttpServlet.java:853)
    [java]      at org.mortbay.jetty.servlet.ServletHolder.handle
(ServletHolder.java:354)
    [java]      at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
(WebApplicationHandler.java:294)
    [java]      at org.mortbay.jetty.servlet.Dispatcher.dispatch
(Dispatcher.java:220)
    [java]      at org.mortbay.jetty.servlet.Dispatcher.forward
(Dispatcher.java:133)
    [java]      at org.mortbay.jetty.servlet.Default.handleGet
(Default.java:300)
    [java]      at org.mortbay.jetty.servlet.Default.service
(Default.java:215)
    [java]      at javax.servlet.http.HttpServlet.service
(HttpServlet.java:853)
    [java]      at org.mortbay.jetty.servlet.ServletHolder.handle
(ServletHolder.java:354)
    [java]      at org.mortbay.jetty.servlet.WebApplicationHandler
$Chain.doFilter(WebApplicationHandler.java:342)
    [java]      at
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage
(PageFilter.java:118)
    [java]      at
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter
(PageFilter.java:52)
    [java]      at org.mortbay.jetty.servlet.WebApplicationHandler
$Chain.doFilter(WebApplicationHandler.java:334)
    [java]      at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
(WebApplicationHandler.java:286)
    [java]      at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:567)
    [java]      at org.mortbay.http.HttpContext.handle
(HttpContext.java:1808)
    [java]      at
org.mortbay.jetty.servlet.WebApplicationContext.handle
(WebApplicationContext.java:525)
    [java]      at org.mortbay.http.HttpContext.handle
(HttpContext.java:1758)
    [java]      at org.mortbay.http.HttpServer.service
(HttpServer.java:879)
    [java]      at org.mortbay.http.HttpConnection.service
(HttpConnection.java:790)
    [java]      at org.mortbay.http.HttpConnection.handleNext
(HttpConnection.java:952)
    [java]      at org.mortbay.http.HttpConnection.handle
(HttpConnection.java:807)
    [java]      at org.mortbay.http.SocketListener.handleConnection
(SocketListener.java:197)
    [java]      at org.mortbay.util.ThreadedServer.handle
(ThreadedServer.java:289)
    [java]      at org.mortbay.util.ThreadPool$PoolThread.run
(ThreadPool.java:501)


----------------------------------

Evolution Technology Services Ltd.

PLEASE NOTE:
This e-mail is confidential to the ordinary user of the mailbox to which it was 
addressed. It may be disclosed only for the purposes for which it was sent. If 
you receive this e-mail in error you should not use, disclose, copy, forward or 
rely on it, but destroy it and notify the sender.
 
Please visit http://www.evolutionunderwriting.com/home/email.html for the full 
wording of our disclaimer.

Reply via email to