majin
2005-01-27 15:59:30 UTC
Ich habe ein JavaBean(.java datei) geschrieben und unter Verzeinisse
/dbpra/share/TUM/dbpra10/public_jsp/WEB-INF/classes/tum/dbpra10 gespeichert.
Dann wird dieser Bean kompiliert .
Ich habe in meiner Jsp-Datei so geschrieben . <%@page
import="tum.dbpra10.OrderBean" %>
Aber taucht immer Fehlermeldung auf .
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
/dbpra/share/TUM/dbpra10/public_jsp/WEB-INF/tomcat_work/org/apache/jsp/shopc
hoose_jsp.java:13: cannot access tum.dbpra10.OrderBean
bad class file:
/dbpra/share/TUM/dbpra10/public_jsp/WEB-INF/classes/tum/dbpra10/OrderBean.cl
ass
class file contains wrong class: OrderBean
Please remove or make sure it appears in the correct subdirectory of the
classpath.
import tum.dbpra10.OrderBean;
^
1 error
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3
32)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
11)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
95)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Kann jemand mir sagen , waran liegt der Fehler ?
Danke
/dbpra/share/TUM/dbpra10/public_jsp/WEB-INF/classes/tum/dbpra10 gespeichert.
Dann wird dieser Bean kompiliert .
Ich habe in meiner Jsp-Datei so geschrieben . <%@page
import="tum.dbpra10.OrderBean" %>
Aber taucht immer Fehlermeldung auf .
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
/dbpra/share/TUM/dbpra10/public_jsp/WEB-INF/tomcat_work/org/apache/jsp/shopc
hoose_jsp.java:13: cannot access tum.dbpra10.OrderBean
bad class file:
/dbpra/share/TUM/dbpra10/public_jsp/WEB-INF/classes/tum/dbpra10/OrderBean.cl
ass
class file contains wrong class: OrderBean
Please remove or make sure it appears in the correct subdirectory of the
classpath.
import tum.dbpra10.OrderBean;
^
1 error
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3
32)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5
11)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
95)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Kann jemand mir sagen , waran liegt der Fehler ?
Danke