tomcat安装异常

标签 tomcat windows-7 installation

我正在尝试在 Windows 7 上安装 tomcat-7.0.27。 然后我单击 bin/startup.bat,出现一个窗口,我在最后一行看到“信息:服务器在 761 毫秒内启动”。 然后我尝试检查“http”//localhost:8080,但下面的信息显示:

HTTP Status 500 -

type Exception report

message

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

exception

org.apache.jasper.JasperException: java.lang.IllegalStateException: No output folder
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:585)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:391)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
root cause

java.lang.IllegalStateException: No output folder
    org.apache.jasper.JspCompilationContext.createOutputDir(JspCompilationContext.java:738)
    org.apache.jasper.JspCompilationContext.getOutputDir(JspCompilationContext.java:196)
    org.apache.jasper.JspCompilationContext.getClassFileName(JspCompilationContext.java:581)
    org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:461)
    org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:425)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:639)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.27 logs.

Apache Tomcat/7.0.27

然后我在窗口的每个开头都找到了这个信息:

java.util.logging.ErrorManager: 4
java.io.FileNotFoundException: C:\Program Files\apache-tomcat-7.0.27\logs\catalina.2012-05-14.log (Access is denied)

谁能告诉我这里出了什么问题?

最佳答案

Windows 7 很容易在您安装时不够小心时遇到此类麻烦。您必须确保 SYSTEM 用户具有对 Tomcat 文件夹的完全访问权限,以便在 Tomcat 运行时,它可以在自己的目录中自由创建文件夹和文件。

关于tomcat安装异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10577494/

相关文章:

java - 在 Ubuntu 18.04 上安装 Tomcat 9.0.16

delphi - Win-7下列出服务及服务状态

hadoop - 如何在windows上安装hadoop

windows - 卸载以前的版本安装新版本的安装项目

sql-server-2008 - 从使用 Windows 身份验证的网络共享批量插入 SQL Server 需要什么权限?

python - Anaconda Theano - 安装错误

tomcat - 在同一端口上运行多个 Tomcat 实例

java - tomcat 的 accept() 方法会创建什么样的套接字

java - Hibernate抛出org.hibernate.service.spi.ServiceException

windows-7 - Win7和多显示器: switch focus when moving mouse to different monitor?