当前位置: 代码迷 >> Eclipse >> eclipes里找不到javabean为什么解决方法
  详细解决方案

eclipes里找不到javabean为什么解决方法

热度:41   发布时间:2016-04-23 18:42:55.0
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.daimami.com/search?q=2308
  相关解决方案