我把自己tomcat的webapps里的项目拷贝到别电脑上不能显示出我要得东西,但是在我的电脑上就可以。在页面上显示的是一下错误信息:
HTTP Status 500 -
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: 26 in the generated java file
The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory
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)
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:88)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.33 logs.
什么问题啊这是?
------解决方案--------------------
看看tomcat下的jar包,对比一下。
------解决方案--------------------
考到别人电脑上项目的TOMCAT和JRE就找不到了,你在他的电脑上重新引入TOMCAT和JRE:在工程名字上右键—>选最后一项properties——>选第五项java build path——>在右侧对话框里看libraries里面的JRE和TOMCAT是不是没找到,然后换成他电脑本地的JRE和TOMCAT。重启
------解决方案--------------------
http://ruyuntao.iteye.com/blog/636512
------解决方案--------------------
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 26 in the generated java file
------解决方案--------------------
估计是你jar包 版本太低了
代码迷推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.daimami.com/search?q=317
代码迷推荐解决方案:org.apache.jasper.JasperException: Unable to compile class,http://www.daimami.com/search?q=2308