[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Jetty JSP Compilation problem



Any Jetty experts out here?  I've posted this to the
Jetty discussion list, but I don't know how quickly
turn arounds are for possible answers there since I've
never used it before. Anyhow, maybe someone here can
help me.    Thanks, Matthew

I'm running Jetty 4.1.4 on a Windows 2k box. I'm using
the Ant method for starting/stopping it. Trying to run
the "demo" target I am getting an error that I'm not
quite sure how to fix. The problem seems to be that the
file path that is built for the JSP java class file is
not correctly built for the platform, and thus when the
engine trys to compile that class file, it cannot
locate it. How do I get this thing configured correctly
so that it builds the correct file path? Specific error
below, note the very end of the file path where it has
"\jsp\/hello_jsp.java". Shouldn't that read
"\jsp\hello_jsp.java"??


[java] 12:30:46.563 EVENT Error compiling file:
C:\DOCUME~1\mhardin\LOCALS~1\Temp\Jetty_0_0_0_0_8080__demo\jsp\/he
llo_jsp.java [javac] Compiling 1 source file


[java] 12:30:46.593 WARN!! Exception for
/demo/jsp/hello.jsp
[java] org.apache.jasper.JasperException: Unable to
compile class
for JSP

[java] An error occurred at line: -1 in the jsp file:
null

[java] Generated servlet error:
[java] [javac] Compiling 1 source file



[java] at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.ja\
va:120)
[java] at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
[java] at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:313)
[java] at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:324)
[java] at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:474)
[java] at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
[java] at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
[java] at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
[java] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[java] at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366)
[java] at
org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHandler.java:677)
[java] at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:581)
[java] at
org.mortbay.http.HttpContext.handle(HttpContext.java:1687)
[java] at
org.mortbay.http.HttpContext.handle(HttpContext.java:1637)
[java] at
org.mortbay.http.HttpServer.service(HttpServer.java:875)
[java] at
org.mortbay.http.HttpConnection.service(HttpConnection.java:806)
[java] at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:956)
[java] at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:823)
[java] at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:202)
[java] at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:290)
[java] at
org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743)
[java] at java.lang.Thread.run(Thread.java:536)

Matthew Hardin
matthew@hardin.net