gpt4 book ai didi

java - JDK1.8.0_92无法编译JSP文件

转载 作者:搜寻专家 更新时间:2023-10-30 21:12:52 25 4
gpt4 key购买 nike

我们有一个在 JBoss 6.1 上运行的遗留 JavaEE 应用程序。当使用 Java 1.8.0_92 运行 JBoss6 时,我们收到以下错误。请帮我解决这个错误或给出一些提示。

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) 之前都可以正常工作

最佳答案

如你所见red hat web site jdk 1.8 仅支持jboss 6.3.3及以上版本。

关于java - JDK1.8.0_92无法编译JSP文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36981733/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com