需要幫助。
我正在使用JDK 1.7
& Tomcat 7
我想啓動tomcat服務器,但不能看到apache tomcat的主頁。
我都過來看了日誌文件&得到這個日誌:Servlet-Apache Tomcat
Jul 21, 2015 4:24:30 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/7.0.63
Jul 21, 2015 4:24:30 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Jun 30 2015 08:08:33 UTC
Jul 21, 2015 4:24:30 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 7.0.63.0
Jul 21, 2015 4:24:30 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Windows 7
Jul 21, 2015 4:24:30 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 6.1
Jul 21, 2015 4:24:30 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: amd64
Jul 21, 2015 4:24:30 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: C:\Program Files\Java\jdk1.7.0_79\jre
Jul 21, 2015 4:24:30 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.7.0_79-b15
Jul 21, 2015 4:24:30 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
Jul 21, 2015 4:24:30 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: C:\apache-tomcat-7.0.63\apache-tomcat-7.0.63
Jul 21, 2015 4:24:30 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: C:\apache-tomcat-7.0.63\apache-tomcat-7.0.63
SEVERE: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/docs]]
Jul 21, 2015 4:24:31 PM org.apache.catalina.startup.HostConfig deployDirectory
SEVERE: Error deploying web application directory C:\apache-tomcat-7.0.63\apache-tomcat-7.0.63\webapps\docs
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/docs]]
這可能是許可問題。授予對tomcat文件夾的完全訪問權限或權限。 – Darshan
您的JAVA_HOME指向JRE。我想知道它是否應該指向JDK?全是我的。 – duffymo
您使用的是Linux嗎?如果是的話可以使用linux命令ls -l來檢查權限。 – Anjali