Message Unable to compile class for JSP

使用 UniEAPWorkshop_5.0运行4.6 的代码,流程新建时出现的错误

JDK 使用C:\Program Files (x86)\Java\jdk1.7.0_80

tomcat使用 apache-tomcat-7.0.91   改成apache-tomcat-6.0.41 解决!

HTTP Status 500 – Internal Server Error

--------------------------------------------------------------------------------

Type Exception Report

Message Unable to compile class for JSP

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception 

org.apache.jasper.JasperException: Unable to compile class for JSP
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:675)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:378)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	com.neusoft.uniflow.web.security.WorkflowContextIntegrationFilter.doFilterHttp(WorkflowContextIntegrationFilter.java:58)
	org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
	org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:96)
	com.neusoft.report.server.util.fw.ReportFWFilter.doFilter(Unknown Source)
	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
	com.neusoft.unieap.techcomp.security.intercept.filter.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:125)
	com.neusoft.unieap.techcomp.security.intercept.filter.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:86)
	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
	com.neusoft.unieap.techcomp.security.ui.webapp.WebServiceFilter.doFilter(WebServiceFilter.java:101)
	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
	com.neusoft.unieap.techcomp.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:150)
	org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
	com.neusoft.unieap.techcomp.security.filter.ChannelProcessingFilter.doFilterHttp(ChannelProcessingFilter.java:25)
	org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
	org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:278)
	org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
	com.neusoft.unieap.techcomp.security.accountpolicy.AccountPolicyFilter.doFilter(AccountPolicyFilter.java:82)
	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
	org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89)
	org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
	com.neusoft.unieap.techcomp.security.concurrent.ConcurrentSessionFilter.doFilterHttp(ConcurrentSessionFilter.java:102)
	org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
	com.neusoft.unieap.techcomp.security.ui.webapp.JCaptchaProcessingFilter.doFilter(JCaptchaProcessingFilter.java:82)
	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
	com.neusoft.unieap.techcomp.security.filter.SpecialCharFilter.doFilter(SpecialCharFilter.java:195)
	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
	com.neusoft.unieap.techcomp.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:241)
	org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
	org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:175)
	org.springframework.security.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:99)
	com.neusoft.unieap.core.filter.UniEAPContextIntegrationFilter.doFilter(UniEAPContextIntegrationFilter.java:123)
	com.neusoft.unieap.core.filter.IEModeFilter.doFilter(IEModeFilter.java:58)
	org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:85)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

Root Cause 

java.lang.IllegalArgumentException: Page directive: invalid value for import
	org.apache.jasper.compiler.Node$PageDirective.validateImport(Node.java:628)
	org.apache.jasper.compiler.Node$PageDirective.addImport(Node.java:609)
	org.apache.jasper.compiler.Parser.parsePageDirective(Parser.java:352)
	org.apache.jasper.compiler.Parser.parseDirective(Parser.java:473)
	org.apache.jasper.compiler.Parser.parseFileDirectives(Parser.java:1773)
	org.apache.jasper.compiler.Parser.parse(Parser.java:135)
	org.apache.jasper.compiler.ParserController.doParse(ParserController.java:242)
	org.apache.jasper.compiler.ParserController.parseDirectives(ParserController.java:119)
	org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:194)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:374)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:341)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:660)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:378)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	com.neusoft.uniflow.web.security.WorkflowContextIntegrationFilter.doFilterHttp(WorkflowContextIntegrationFilter.java:58)
	org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
	org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:96)
	com.neusoft.report.server.util.fw.ReportFWFilter.doFilter(Unknown Source)
	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)
	com.neusoft.unieap.techcomp.security.intercept.filter.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:125)
	com.neusoft.unieap.techcomp.security.intercept.filter.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:86)
	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
	com.neusoft.unieap.techcomp.security.ui.webapp.WebServiceFilter.doFilter(WebServiceFilter.java:101)
	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
	com.neusoft.unieap.techcomp.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:150)
	org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
	com.neusoft.unieap.techcomp.security.filter.ChannelProcessingFilter.doFilterHttp(ChannelProcessingFilter.java:25)
	org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
	org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:278)
	org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
	com.neusoft.unieap.techcomp.security.accountpolicy.AccountPolicyFilter.doFilter(AccountPolicyFilter.java:82)
	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
	org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89)
	org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
	com.neusoft.unieap.techcomp.security.concurrent.ConcurrentSessionFilter.doFilterHttp(ConcurrentSessionFilter.java:102)
	org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
	com.neusoft.unieap.techcomp.security.ui.webapp.JCaptchaProcessingFilter.doFilter(JCaptchaProcessingFilter.java:82)
	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
	com.neusoft.unieap.techcomp.security.filter.SpecialCharFilter.doFilter(SpecialCharFilter.java:195)
	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
	com.neusoft.unieap.techcomp.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:241)
	org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
	org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)
	org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:175)
	org.springframework.security.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:99)
	com.neusoft.unieap.core.filter.UniEAPContextIntegrationFilter.doFilter(UniEAPContextIntegrationFilter.java:123)
	com.neusoft.unieap.core.filter.IEModeFilter.doFilter(IEModeFilter.java:58)
	org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:85)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

Note The full stack trace of the root cause is available in the server logs.

--------------------------------------------------------------------------------

Apache Tomcat/7.0.91

  

原文地址:https://www.cnblogs.com/Jeely/p/11658801.html

时间: 2024-11-05 04:52:59

Message Unable to compile class for JSP的相关文章

jsp调用javabean出现错误HTTP Status 500 - Unable to compile class for JSP

HTTP Status 500 - Unable to compile class for JSP: type Exception report message Unable to compile class for JSP: description The server encountered an internal error that prevented it from fulfilling this request. exception org.apache.jasper.JasperE

Count:858org.apache.jasper.JasperException: Unable to compile class for JSP

1.错误描述 Count:858org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 12 in the jsp file: /resource/pages/storageTankQuery/storageTankInfo/storageTankInfo.jsp basePath cannot be resolved to a variable 9: // 璺

org.apache.jasper.JasperException: Unable to compile class for JSP

部署war时,遇到下面异常: exception org.apache.jasper.JasperException: Unable to compile class for JSP org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:604) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328

JAVA Drp项目实战—— Unable to compile class for JSP 一波三折

交代下背景,电脑系统是64位的,用的是64位的Tomcat,安装是32位的Myeclipse10,java环境也是32位的,Tomcat在开始启动时会报这样一个错误,"Can't load IA 64-bit .dll on a AMD32-bit platform",但是不耽误使用,最近在敲Drp项目中用到了底层接口的几个方法,这个错误导致项目不能正常运行了,所以就将64位的Tomcat换成了与java环境一样的32位的Tomcat,上面的问题就顺利解决了,于是继续自己的开发,但是当

Unable to compile class for JSP 错误的解决过程。

刚配置好Tomcat.启动项目没问题.然后一访问就报错了. ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 2012-8-18 19:17:40 org.apache.catalina.core.StandardWrapperValve invoke 严重: Servlet.service() for servlet jsp threw exception org.apac

【FAQ】HTTP Status 500 - Unable to compile class for JSP:'***' cannot be resolved to a type

1.问题现象 2.解决方法 原因分析:cannot be resolved to a type 基本上是该类没有被识别出来,编译的时候,编译路径下没有该类对应的库文件, 可以通过下面几步解决: 1.拷贝类对应的jar到tomcat lib目录下:C:\Program Files\Java\apache-tomcat-8.0.9\lib 1.关闭tomcat服务器:执行bat文件 C:\Program Files\Java\apache-tomcat-8.0.9\bin\shutdown.bat

HTTP Status 500 - Unable to compile class for JSP:Syntax error on token "=", @ expected

jsp页面中使用<% = com.xunge.base.constant.PlatInfo.title %>取静态字段的值,报HTTP Status 500 - Unable to compile class for JSP:Syntax error on token "=", @ expected错误. 详细错误信息如下: 在网上搜索了很久也没找到解决方法,后来发现是因为"<% ="百分号和等号之间多了一个空格的原因,去掉就OK了.

Servlet.service() for servlet [jsp] in context with path [/Healthy_manager] threw exception [Unable to compile class for JSP] with root cause java.lang.IllegalArgumentException: Page directive: inval

严重: Servlet.service() for servlet [jsp] in context with path [/Healthy_manager] threw exception [Unable to compile class for JSP] with root causejava.lang.IllegalArgumentException: Page directive: invalid value for import    at org.apache.jasper.comp

Maven项目不能编译jsp解决方法:Unable to compile class for JSP

一.问题描述: 先交代开发环境,JDK是1.8的,IDE是eclipse 4.7,web服务器是Tomcat 9.0,maven是3.5.0,搭建好环境后输入命令tomcat:run,然后就报org.apache.jasper.JasperException: Unable to compile class for JSP错误. 二.分析问题: (1)不能编译应该是没有导入servlet-api.jsp-api包的原因,然后就在pom文件中加上servlet-api.jsp-api包,为了防止包