gpt4 book ai didi

linux - CentOS - Tomcat 7 - 错误 500

转载 作者:太空宇宙 更新时间:2023-11-04 12:54:05 24 4
gpt4 key购买 nike

我在 CentoOS 上安装了 apache tomcat 7。当我进入 apache 起始页时,出现错误 500:

type Exception report

message Unable to compile class for JSP:

description The server encountered an internal error that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: [1] in the generated java file: [/usr/share/tomcat/work/Catalina/localhost/_/org/apache/jsp/index_jsp.java]
The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files

Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:366)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:466)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:379)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:341)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:662)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:364)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

note The full stack trace of the root cause is available in the Apache Tomcat/7.0.65 logs.

我尝试重新安装几次,但这无济于事。我红色关于错误 500,但用户添加了您的页面。我在 apache 起始页找不到任何关于错误 500 的信息。

这是我第一次使用apache tomcat。

已解决:我安装了 java-1.7.0-openjdk-devel 并开始工作。谢谢!

最佳答案

我的猜测是较旧的 JDK 是安装的一部分。
centos版本?

关于linux - CentOS - Tomcat 7 - 错误 500,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36283239/

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