eclipes里找不到javabean为什么
我用的是lomboz,javabean的java文件放在j2src里了,而且已经把javabean的class文件自动生成 放到web-inf/classes里了但运行jsp时显示这样的错误:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 22 in the jsp file: /index.jsp
Generated servlet error:
D:\program files\JavaWorkSpace\myWeb\bin\org\apache\jsp\index_jsp.java:75: cannot find symbol
symbol : class Mybean
location: class org.apache.jsp.index_jsp
Mybean a=new Mybean();
^
An error occurred at line: 22 in the jsp file: /index.jsp
Generated servlet error:
D:\program files\JavaWorkSpace\myWeb\bin\org\apache\jsp\index_jsp.java:75: cannot find symbol
symbol : class Mybean
location: class org.apache.jsp.index_jsp
Mybean a=new Mybean();
^
2 errors
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
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:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
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)
大家帮帮我啊!!
[解决办法]
up
[解决办法]
UP
[解决办法]
up
我的异常网推荐解决方案:org.apache.jasper.JasperException: Unable to compile class,http://www.myexception.cn/j2ee/2308.html