解决问题:Unable to compile class for JSP

java web相关的项目总是会有许多问题出现,不管是在运行期间还是运行成功之后,总是会有许多问题困扰着我们,幸好现在网络发达,许多学习爱好者会分享各自的研究成果或者解决问题的方法,我们要不怕遇到问题,遇到问题解决问题,这样才会有较大的提高。

以下是问题的所有报错信息:

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.JasperException: Unable to compile class for JSP: 

An error occurred at line: [211] in the generated java file: [D:\Workspaces\work Place\workspace_B\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\WFWL\org\apache\jsp\application\modules\core\leftMenu_jsp.java]
The method releaseTag(IfTag, InstanceManager, boolean) is undefined for the type JspRuntimeLibrary

An error occurred at line: [280] in the generated java file: [D:\Workspaces\work Place\workspace_B\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\WFWL\org\apache\jsp\application\modules\core\leftMenu_jsp.java]
The method releaseTag(ForEachTag, InstanceManager, boolean) is undefined for the type JspRuntimeLibrary

An error occurred at line: [296] in the generated java file: [D:\Workspaces\work Place\workspace_B\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\WFWL\org\apache\jsp\application\modules\core\leftMenu_jsp.java]
The method releaseTag(IfTag, InstanceManager, boolean) is undefined for the type JspRuntimeLibrary

An error occurred at line: [318] in the generated java file: [D:\Workspaces\work Place\workspace_B\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\WFWL\org\apache\jsp\application\modules\core\leftMenu_jsp.java]
The method releaseTag(ForEachTag, InstanceManager, boolean) is undefined for the type JspRuntimeLibrary

An error occurred at line: [334] in the generated java file: [D:\Workspaces\work Place\workspace_B\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\WFWL\org\apache\jsp\application\modules\core\leftMenu_jsp.java]
The method releaseTag(IfTag, InstanceManager, boolean) is undefined for the type JspRuntimeLibrary

An error occurred at line: [356] in the generated java file: [D:\Workspaces\work Place\workspace_B\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\WFWL\org\apache\jsp\application\modules\core\leftMenu_jsp.java]
The method releaseTag(ForEachTag, InstanceManager, boolean) is undefined for the type JspRuntimeLibrary

An error occurred at line: [452] in the generated java file: [D:\Workspaces\work Place\workspace_B\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\WFWL\org\apache\jsp\application\modules\core\leftMenu_jsp.java]
The method releaseTag(OutTag, InstanceManager, boolean) is undefined for the type JspRuntimeLibrary

An error occurred at line: [476] in the generated java file: [D:\Workspaces\work Place\workspace_B\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\WFWL\org\apache\jsp\application\modules\core\leftMenu_jsp.java]
The method releaseTag(OutTag, InstanceManager, boolean) is undefined for the type JspRuntimeLibrary

An error occurred at line: [500] in the generated java file: [D:\Workspaces\work Place\workspace_B\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\WFWL\org\apache\jsp\application\modules\core\leftMenu_jsp.java]
The method releaseTag(OutTag, InstanceManager, boolean) is undefined for the type JspRuntimeLibrary

An error occurred at line: [524] in the generated java file: [D:\Workspaces\work Place\workspace_B\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\WFWL\org\apache\jsp\application\modules\core\leftMenu_jsp.java]
The method releaseTag(OutTag, InstanceManager, boolean) is undefined for the type JspRuntimeLibrary

An error occurred at line: [548] in the generated java file: [D:\Workspaces\work Place\workspace_B\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\WFWL\org\apache\jsp\application\modules\core\leftMenu_jsp.java]
The method releaseTag(OutTag, InstanceManager, boolean) is undefined for the type JspRuntimeLibrary

Stacktrace:
	org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
	org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:366)
	org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:490)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:379)
	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:364)
	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.bupt.core.system.action.ChangePasswordFilter.doFilter(ChangePasswordFilter.java:78)
	org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
	org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
	com.bupt.core.system.action.PrivilegeChangeFilter.doFilter(PrivilegeChangeFilter.java:95)
	org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
	org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
	com.bupt.core.system.action.LogFilter.doFilter(LogFilter.java:321)
	org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
	org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
	org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
	com.bupt.core.security.filter.MySessionHandleFilter.doFilter(MySessionHandleFilter.java:141)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
	org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	com.bupt.core.security.filter.MyFilterSecurityInterceptor.invoke(MyFilterSecurityInterceptor.java:57)
	com.bupt.core.security.filter.MyFilterSecurityInterceptor.doFilter(MyFilterSecurityInterceptor.java:36)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:146)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:183)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.session.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:125)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
	org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
	org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
	org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)


note The full stack trace of the root cause is available in the Apache Tomcat/7.0.82 logs.

解决方法:报错时用的tomcat版本是7.0.82,错误的原因是tomcat版本过低,使用tomcat8.x即可。


over!


你可能感兴趣的:(后台开发,解决问题)