tomcat安装异常 [英] tomcat installation exception

查看:123
本文介绍了tomcat安装异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm trying to install tomcat-7.0.27 on windows 7. I then clicked bin/startup.bat, a window shows up and I see "INFO: Server startup in 761 ms" at the last line. I then try to check "http"//localhost:8080" but the infomation belowe shows:

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

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

I then found this information at the every beginning of the window:

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)

有人可以告诉我这里出了什么问题吗?

Can anyone please tell me what is going wrong here?

推荐答案

当您不十分小心地安装东西时,Windows 7使其很容易遇到此类问题.您必须确保SYSTEM用户具有对Tomcat文件夹的完全访问权限,以便Tomcat运行时,可以在其自己的目录中自由创建文件夹和文件.

Windows 7 makes it easy to run into such trouble when you are not careful enough installing things. You will have to make sure that the SYSTEM user has full access to the Tomcat folder, so that when Tomcat runs, it can freely create folders and files within its own directory.

这篇关于tomcat安装异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆