日期:2014-05-18  浏览次数:20900 次

tomcat编译jsp找不到自定义的包
正在调试一个书上例子,出错信息如下:
org.apache.jasper.JasperException:   Unable   to   compile   class   for   JSP

Generated   servlet   error:
D:\Tomcat\work\Catalina\localhost\_\org\apache\jsp\WebRoot\showAttackSolution_jsp.java:6:   软件包   struts.sample.cap13.sample1.entity   不存在
import   struts.sample.cap13.sample1.entity.AttackSolution;
                                                                                    ^


An   error   occurred   at   line:   55   in   the   jsp   file:   /WebRoot/showAttackSolution.jsp
Generated   servlet   error:
D:\Tomcat\work\Catalina\localhost\_\org\apache\jsp\WebRoot\showAttackSolution_jsp.java:175:   软件包   struts.sample.cap13.sample1.entity   不存在
                        struts.sample.cap13.sample1.entity.AttackSolution   attackSolution   =   null;
                                                                                            ^


An   error   occurred   at   line:   55   in   the   jsp   file:   /WebRoot/showAttackSolution.jsp
Generated   servlet   error:
D:\Tomcat\work\Catalina\localhost\_\org\apache\jsp\WebRoot\showAttackSolution_jsp.java:181:   软件包   struts.sample.cap13.sample1.entity   不存在
                        attackSolution   =   (struts.sample.cap13.sample1.entity.AttackSolution)   _jspx_page_context.findAttribute( "attackSolution ");
                                                                                                                                ^


Generated   servlet   error:
D:\Tomcat\work\Catalina\localhost\_\org\apache\jsp\WebRoot\showAttackSolution_jsp.java:212:   软件包   struts.sample.cap13.sample1.entity   不存在
                            attackSolution   =   (struts.sample.cap13.sample1.entity.AttackSolution)   _jspx_page_context.findAttribute( "attackSolution ");