Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
707 views
in Technique[技术] by (71.8m points)

windows 7 - tomcat installation exception

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 Filesapache-tomcat-7.0.27logscatalina.2012-05-14.log (Access is denied)

Can anyone please tell me what is going wrong here?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...