JBOSS 4.2.1和JRE1.8.1xx兼容? JBoss的4.2.1GA JSP问题
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了JBOSS 4.2.1和JRE1.8.1xx兼容? JBoss的4.2.1GA JSP问题相关的知识,希望对你有一定的参考价值。
我们有和产品是有1.6.xxx JRE 4.2.1 JBoss和的JasperServer,
我试图编译JRE 1.8.xxx和构建succesfull。首先,当我尝试登录页面,有一个404错误。
Not able to compile JSP files in JBoss 5.1 with Java 1.8
现在,我有一个不同的错误。登录页面来了白屏:(
其JBoss的日志,
2018-02-06 13:44:33,139 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/local-login].[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.ClassNotFoundException: org.apache.jsp.login_jsp
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:134)
at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)
at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:598)
at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:323)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:316)
at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:244)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:491)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at com.nortel.ems.mgmt.quantum.webagent.security.sso.tomcat.valve.SecureHttpRequestResponseValve.doSpecialHandling(SecureHttpRequestResponseValve.java:312)
at com.nortel.ems.mgmt.quantum.webagent.security.sso.tomcat.valve.AbstractValveBase.invoke(AbstractValveBase.java:130)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:393)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:748)
2018-02-06 13:44:33,139 WARN [org.apache.catalina.authenticator.FormAuthenticator] Unexpected error forwarding to login page
org.apache.jasper.JasperException: org.apache.jasper.JasperException: Unable to load class for JSP
at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:156)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:323)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:316)
at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:244)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:491)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at com.nortel.ems.mgmt.quantum.webagent.security.sso.tomcat.valve.SecureHttpRequestResponseValve.doSpecialHandling(SecureHttpRequestResponseValve.java:312)
at com.nortel.ems.mgmt.quantum.webagent.security.sso.tomcat.valve.AbstractValveBase.invoke(AbstractValveBase.java:130)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:393)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.jasper.JasperException: Unable to load class for JSP
at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:600)
at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:144)
... 26 more
Caused by: java.lang.ClassNotFoundException: org.apache.jsp.login_jsp
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:134)
at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)
at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:598)
... 27 more
在我看来,JSP编译器不能正常工作。你能解决这个问题?
谢谢
答案
花了几个小时今天要找到解决方案。这看起来相似,并且经过了this和that至少提供了一些想法。
然而,似乎没有那些似乎适用于我的情况。
面对完全相同的错误堆栈中使用Java 6古代RHEL4机器上运行JBoss 4.2.3的server.log
所以,决定在这里发布我的解决方案,因为它真的帮了我,并没有像在上述问题被提及。
最后,我意识到(与df -h
的帮助下),其/var
分区(用于JBoss的部署)为100%满了,可能什么东西不是最新的JBoss重启(或运行时),由于这个过程中正确链接。
我刚刚释放一些空间并重新启动服务器,仅此而已。
以上是关于JBOSS 4.2.1和JRE1.8.1xx兼容? JBoss的4.2.1GA JSP问题的主要内容,如果未能解决你的问题,请参考以下文章