Hello again,
it appears that this problem occurs only on the current OSX jdk. It
works as expected when run on linux.
best,
felix
On 9/23/11 15:51 , Felix Schmid wrote:
Hello jetty users,
I am trying to deploy a simple war file containing an application
that consists of a simple jsp processing a form, using the
<jsp:useBean> and a bean class. The directory structure
within the war file looks as follows:
/
|
- form.html
|
- process.jsp
|
- WEB-INF
|
-classes
|
- data
|
- UserData.class
So the class of the bean to be used is data.UserData. The jsp
looks like this:
<jsp:useBean id="user" class="data.UserData" scope="session"
/>
<jsp:setProperty name="user" property="*" />
...
( have also tried to use <%@ page import="data.UserData" %>
in the first line but I run into the same problem).
Now when I submit my form and call process.jsp, the page doesn't
compile because WEB-INF/classes appears not to be in the
classpath:
SEVERE: Error compiling file: /private/var/folders/10/10dJBkRTH3uXwAtP-GMv0U++-9I/-Tmp-/jetty-0.0.0.0-8080-mytvid_fe.war-_app-any-/jsp/org/apache/jsp/processRegistrationform_jsp.java
2011-09-23 15:31:42.671:DBUG:oejs.ServletHandler:
org.apache.jasper.JasperException: PWC6033: Error in Javac
compilation for JSP||PWC6197: An error occurred at line: 1 in the
jsp file: /processRegistrationform.jsp|PWC6199: Generated servlet
error:|string:///processRegistrationform_jsp.java:44: package data
does
not exist||PWC6197: An error occurred at line: 1 in the jsp file:
/processRegistrationform.jsp|PWC6199: Generated servlet
error:|string:///processRegistrationform_jsp.java:46: package data
does not exist||PWC6197: An error occurred at line: 1 in the jsp
file: /
processRegistrationform.jsp|PWC6199: Generated servlet
error:|string:///processRegistrationform_jsp.java:48: package data
does not exist||
at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:129)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:299)
at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:392)
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:453)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:625)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:558)
at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:489)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:483)
at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:233)
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:972)
at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:417)
at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192)
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:906)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
at org.eclipse.jetty.server.Server.handle(Server.java:346)
at
org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:442)
at
org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:927)
at
org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:784)
at
org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:223)
at
org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:46)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:545)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:43)
at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
at java.lang.Thread.run(Thread.java:680)
2011-09-23
15:31:42.671:WARN:oejs.ServletHandler:/app/processRegistrationform.jsp
I really have no clue what I am soing wrong. At jetty startup, I
see this in the log:
2011-09-23 15:31:31.351:DBUG:oejw.WebAppClassLoader:Path resource=file:/private/var/folders/10/10dJBkRTH3uXwAtP-GMv0U++-9I/-Tmp-/jetty-0.0.0.0-8080-myapp.war-_myapp-any-/webapp/WEB-INF/classes/
Can anyone help me with this, I am really getting frustrated over
it (having googled 2 hrs or so).
thanks,
felix
|