JBOSS 4.2.1和JRE1.8.1xx兼容吗? JBoss-4.2.1GA jsp问题

时间:2018-02-06 11:01:12

标签: java jsp jboss

我们有和产品有1.6.xxx jre,4.2.1 jboss和jasperserver,

我尝试编译jre 1.8.xxx并构建成功。首先,当我尝试登录页面时,出现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编译器无法正常工作。你能解决这个问题吗?

由于

1 个答案:

答案 0 :(得分:0)

花了几个小时试图找到解决方案。签出了thisthat,它们看起来很相似,至少提供了一些想法。

但是,似乎这些都不适合我的情况。

在运行有Java 6的古老RHEL4机器上运行的Jboss 4.2.3的server.log中遇到了完全相同的错误堆栈,因此决定在这里发布我的解决方案,因为它确实对我有帮助,但没有提到类似的东西在上述问题中。

最后,我意识到(在df -h的帮助下,/var分区(用于JBoss部署)已100%充满,并且在最新的JBoss重新启动期间可能未正确链接某些内容(或在运行时)。

我刚刚释放了一些空间并重新启动了服务器,就是这样。