当前位置:   article > 正文

java 1.8.0 92,无法使用JDK1.8.0_92编译JSP文件

jdk1.8对jsp的影响

We have a legacy JavaEE application running on JBoss 6.1. When running JBoss6 with Java 1.8.0_92 we are getting the following error. Please help me resolve or give some hints on this error.

16:49:32,888 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/webSSO].[jsp]] Servlet.service() for servlet jsp threw exception: org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 1 in the generated java file

The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files

Stacktrace:

at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92) [:6.1.0.Final]

at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330) [:6.1.0.Final]

at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:446) [:6.1.0.Final]

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:362) [:6.1.0.Final]

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:340) [:6.1.0.Final]

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:327) [:6.1.0.Final]

at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:607) [:6.1.0.Final]

at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312) [:6.1.0.Final]

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326) [:6.1.0.Final]

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253) [:6.1.0.Final]

at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.1.0.Final]

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.1.0.Final]

Note: It works fine upto (Java 1.8.0_77)

解决方案

As you can see red hat web site jdk 1.8 supports only jboss 6.3.3 and above.

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/凡人多烦事01/article/detail/187479
推荐阅读
相关标签
  

闽ICP备14008679号