当前位置: 代码迷 >> Java Web开发 >> JSP运行异常 STRUTS + SQL SERVER 2005
  详细解决方案

JSP运行异常 STRUTS + SQL SERVER 2005

热度:9488   发布时间:2013-02-25 21:12:08.0
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导入的问题
  相关解决方案
本站暂不开放注册!
内测阶段只得通过邀请码进行注册!
 
  • 最近登录:Wed Nov 21 02:00:56 CST 2018
  • 最近登录:Wed Nov 21 02:00:56 CST 2018
  • 最近登录:Wed Nov 21 02:00:56 CST 2018
  • 最近登录:Wed Nov 21 02:00:56 CST 2018
  • 最近登录:Wed Nov 21 02:00:56 CST 2018