无法运行tomcat7

时间:2015-10-12 10:46:12

标签: angularjs tomcat intellij-idea

我正在使用AngularJS。我在Windows上工作,但我将我的项目转移到了Ubuntu 14.04。在ubuntu计算机上有tomcat7。 这是错误:

 /usr/share/tomcat7/bin/catalina.sh run   
 Connected to the target VM,  address: '127.0.0.1:33493', transport: 'socket'
 Oct 12, 2015 3:27:21PM org.apache.catalina.startup.ClassLoaderFactory validateFile
 WARNING: Problem with directory [/var/lib/tomcat7/lib], exists: [false], isDirectory: [false], canRead: [false]
 Oct 12, 2015 3:27:21 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
 WARNING: Problem with directory [/var/lib/tomcat7/lib], exists: [false], isDirectory: [false], canRead: [false]
 Oct 12, 2015 3:27:21 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
 WARNING: Problem with directory [/usr/share/tomcat7/common/classes], exists: [false], isDirectory: [false], canRead: [false]
 Oct 12, 2015 3:27:21 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
 WARNING: Problem with directory [/usr/share/tomcat7/common], exists: [false], isDirectory: [false], canRead: [false]
 Oct 12, 2015 3:27:21 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
 WARNING: Problem with directory [/usr/share/tomcat7/server/classes], exists: [false], isDirectory: [false], canRead: [false]
 Oct 12, 2015 3:27:21 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
 WARNING: Problem with directory [/usr/share/tomcat7/server], exists: [false], isDirectory: [false], canRead: [false]
 Oct 12, 2015 3:27:21 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
 WARNING: Problem with directory [/usr/share/tomcat7/shared/classes], exists: [false], isDirectory: [false], canRead: [false]
 Oct 12, 2015 3:27:21 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
 WARNING: Problem with directory [/usr/share/tomcat7/shared], exists: [false], isDirectory: [false], canRead: [false]
 Oct 12, 2015 3:27:23 PM org.apache.coyote.AbstractProtocol init
 INFO: Initializing ProtocolHandler ["http-bio-8080"]
 Oct 12, 2015 3:27:23 PM org.apache.catalina.startup.Catalina load
 INFO: Initialization processed in 2065 ms
 Oct 12, 2015 3:27:23 PM org.apache.catalina.core.StandardService startInternal
 INFO: Starting service Catalina
 Oct 12, 2015 3:27:23 PM org.apache.catalina.core.StandardEngine startInternal
 INFO: Starting Servlet Engine: Apache Tomcat/7.0.52 (Ubuntu)
 Oct 12, 2015 3:27:23 PM org.apache.coyote.AbstractProtocol start
 INFO: Starting ProtocolHandler ["http-bio-8080"]
 Oct 12, 2015 3:27:23 PM org.apache.catalina.startup.Catalina start
 INFO: Server startup in 179 ms Connected to server

1 个答案:

答案 0 :(得分:0)

这些不一定是错误。 Server startup in 179 ms Connected to server表示您的服务器已启动。您似乎更有可能无法将应用程序部署到/var/lib/tomcat7/webapps。它还需要tomcat7用户可读。