问题描述
HTTP Status 500 - --------------------------------------------------------------------------------type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception org.apache.jasper.JasperException: Unable to compile class for JSPorg.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:597)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)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.springframework.security.ui.AccessDeniedHandlerImpl.handle(AccessDeniedHandlerImpl.java:65)org.springframework.security.ui.ExceptionTranslationFilter.handleException(ExceptionTranslationFilter.java:171)org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:117)org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105)org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)org.springframework.security.ui.rememberme.RememberMeProcessingFilter.doFilterHttp(RememberMeProcessingFilter.java:116)org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91)org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)org.springframework.security.ui.basicauth.BasicProcessingFilter.doFilterHttp(BasicProcessingFilter.java:174)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:277)org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)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)org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)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.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236)org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)com.htsoft.core.web.filter.ResponseHeaderFilter.doFilter(ResponseHeaderFilter.java:29)root cause java.io.FileNotFoundException: D:Program FilesApache Software FoundationTomcat 6.0workCatalinalocalhost_orgapachejspcommons_403_jsp.java (拒绝访问。)java.io.FileOutputStream.open(Native Method)java.io.FileOutputStream.<init>(FileOutputStream.java:179)java.io.FileOutputStream.<init>(FileOutputStream.java:70)org.apache.jasper.compiler.Compiler.setupContextWriter(Compiler.java:291)org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:230)org.apache.jasper.compiler.Compiler.compile(Compiler.java:347)org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:589)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)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.springframework.security.ui.AccessDeniedHandlerImpl.handle(AccessDeniedHandlerImpl.java:65)org.springframework.security.ui.ExceptionTranslationFilter.handleException(ExceptionTranslationFilter.java:171)org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:117)org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105)org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)org.springframework.security.ui.rememberme.RememberMeProcessingFilter.doFilterHttp(RememberMeProcessingFilter.java:116)org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91)org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:390)org.springframework.security.ui.basicauth.BasicProcessingFilter.doFilterHttp(BasicProcessingFilter.java:174)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:277)org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)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)org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235)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.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236)org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)com.htsoft.core.web.filter.ResponseHeaderFilter.doFilter(ResponseHeaderFilter.java:29)note The full stack trace of the root cause is available in the Apache Tomcat/6.0.26 logs. 问题补充:lerous 写道
解决方案
引用如果是缓存导致的 那按照7454103的删除缓存 那以后再出现 不还得 删除 缓存?有没有什么好的办法或者建议 一般服务器 部署新东西的时候!都是需要删除缓存的!表现为:commons_403_jsp.java 形式!重启就OK了!当然如果你们的管理员 够 牛! 可以在服务器 设置下重启自动请缓存!
解决方案二:
引用呵呵 点击登入时报的错,不过现在没报错了。我也重启了tomcat 也重新分配了内存 看是不是资源不足导致的 缓存 操作的! 重启或者删除缓存都行
解决方案三:
D:Program FilesApache Software FoundationTomcat 6.0workCatalinalocalhost把这个目录下的东西全删掉,这个是缓存。
解决方案四:
tomcat 问题也是有可能的~ 我有个疑问,你登录有时候成功有时候失败对把,失败跳转到哪个页面,上面这个异常是失败时报的还是?~
解决方案五:
把 tomcat 的缓存删一下!
解决方案六:
建议你把要登入的页面用最简单的内容,其他的暂时都删掉,看是否还报错,确定是哪个地方,哪一步出的错?~
解决方案七:
估计是commons403.jsp页面有问题~ 贴下代码看看