重启服务器后,我无法启动应用程序。这是控制台日志
Mar 3, 2015 9:11:24 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files (x86)\Java\jre1.6.0_51\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files (x86)/Java/jre1.6.0_51/bin/client;C:/Program Files (x86)/Java/jre1.6.0_51/bin;C:/Program Files (x86)/Java/jre1.6.0_51/lib/i386;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Java\jdk1.7.0_40\bin;C:\Program Files (x86)\Git\git-cheetah\..\bin;C:\Program Files (x86)\nodejs\;C:\Program Files (x86)\nodejs\\bin;C:\Program Files (x86)\Common Files\ThinPrint\;C:\Users\ma51574\AppData\Roaming\npm;C:\dev\eclipse\eclipse3.7.2;;.
Mar 3, 2015 9:11:24 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:AssessmentUnit' did not find a matching property.
Mar 3, 2015 9:11:24 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:assessment' did not find a matching property.
Mar 3, 2015 9:11:24 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Mar 3, 2015 9:11:24 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Mar 3, 2015 9:11:24 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 467 ms
Mar 3, 2015 9:11:24 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Mar 3, 2015 9:11:24 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.34
Mar 3, 2015 9:11:24 AM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base C:\dev\workspaces\fbb\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\AssessmentUnit does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:138)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4906)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5086)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Mar 3, 2015 9:11:24 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error in resourceStart()
Mar 3, 2015 9:11:24 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error getConfigured
Mar 3, 2015 9:11:24 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/AssessmentUnit] startup failed due to previous errors
Mar 3, 2015 9:11:24 AM org.apache.catalina.deploy.NamingResources cleanUp
WARNING: Failed to retrieve JNDI naming context for container [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/AssessmentUnit]] so no cleanup was performed for that container
javax.naming.NameNotFoundException: Name [comp/env] is not bound in this Context. Unable to find [comp].
at org.apache.naming.NamingContext.lookup(NamingContext.java:820)
at org.apache.naming.NamingContext.lookup(NamingContext.java:168)
at org.apache.catalina.deploy.NamingResources.cleanUp(NamingResources.java:988)
at org.apache.catalina.deploy.NamingResources.stopInternal(NamingResources.java:970)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5495)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Mar 3, 2015 9:11:24 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Mar 3, 2015 9:11:24 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Mar 3, 2015 9:11:24 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 346 ms
我是eclipse的新手,而不是真正的后端/ java人。
所以任何想法都可以解决问题吗?
任何帮助表示赞赏。感谢。
答案 0 :(得分:0)
试试这个:
1-停止服务器
2-清理项目(项目 - >清洁),tomcat服务器(服务器 - >右键单击 - >清除)和Tomcat工作目录(服务器 - >右键单击 - >清理Tomcat工作目录)。
3-启动服务器并运行。