Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] keep getting error 'package xy does not exist' when compiling jsp

Hello again,

it appears that this problem occurs only on the current OSX jdk. It works as expected when run on linux.


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
          - 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-
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:/// package data does
 not exist||PWC6197: An error occurred at line: 1 in the jsp file: /processRegistrationform.jsp|PWC6199: Generated servlet error:|string:/// package data does not exist||PWC6197: An error occurred at line: 1 in the jsp file: /
processRegistrationform.jsp|PWC6199: Generated servlet error:|string:/// package data does not exist||
        at org.apache.jasper.compiler.DefaultErrorHandler.javacError(
        at org.apache.jasper.compiler.ErrorDispatcher.javacError(
        at org.apache.jasper.compiler.Compiler.generateClass(
        at org.apache.jasper.compiler.Compiler.compile(
        at org.apache.jasper.JspCompilationContext.compile(
        at org.apache.jasper.servlet.JspServletWrapper.service(
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(
        at org.apache.jasper.servlet.JspServlet.service(
        at javax.servlet.http.HttpServlet.service(
        at org.eclipse.jetty.servlet.ServletHolder.handle(
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(
        at org.eclipse.jetty.servlet.ServletHandler.doScope(
        at org.eclipse.jetty.server.session.SessionHandler.doScope(
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(
        at org.eclipse.jetty.server.Server.handle(
        at org.eclipse.jetty.server.HttpConnection.handleRequest(
        at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(
        at org.eclipse.jetty.http.HttpParser.parseNext(
        at org.eclipse.jetty.http.HttpParser.parseAvailable(
        at org.eclipse.jetty.server.AsyncHttpConnection.handle(
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(
        at org.eclipse.jetty.util.thread.QueuedThreadPool$
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-

Can anyone help me with this, I am really getting frustrated over it (having googled 2 hrs or so).


Back to the top