本文介绍了无法使用JDK1.8.0_92编译JSP文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们有一个运行在JBoss 6.1上的旧版JavaEE应用程序.在Java 1.8.0_92上运行JBoss6时,出现以下错误.请帮助我解决该错误或提供一些提示.
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]
注意:在(Java 1.8.0_77)之前,它都可以正常工作
Note: It works fine upto (Java 1.8.0_77)
推荐答案
您可以看到红色帽子网站 jdk 1.8仅支持jboss 6.3.3及更高版本.
As you can see red hat web site jdk 1.8 supports only jboss 6.3.3 and above.
这篇关于无法使用JDK1.8.0_92编译JSP文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!