JSP运行错误 STRUTS + SQL SERVER 2005
出现以下代码!请大虾们帮忙!太久没用JSP了!
type Exception report
message
description
The server encountered an internal error () that prevented it from fulfilling this request.exception
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 1 in the generated java file
The type org.apache.struts.action.ActionForm
cannot be resolved. It is indirectly referenced from required .class files
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:356)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:321)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.35 logs.
------解决方案--------------------找不到 这个 org.apache.struts.action.ActionForm
看看你导入struts的jar包了吗?
------解决方案--------------------你这个是少jar包了 、 对把struts2的包导入 别导入错了
------解决方案--------------------错误是Tomcat不能编译jsp了。
1)JAVA_HOME设了没??设对了没?
2)http://hi.baidu.com/wmqxyh/item/672a4cf10bc579c1a835a2d4
------解决方案--------------------把struts依赖的jar放到WebRoot/WEB-INF/lib下面就可以了。
------解决方案--------------------jar包导入错误了。看看代码里的import导入的问题
我的异常网推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.aiyiweb.com/java-web/317.html
我的异常网推荐解决方案:org.apache.jasper.JasperException: Unable to compile class,http://www.aiyiweb.com/j2ee/2308.html