tomcat7启动出错

tomcat7启动出错

我在启动 tomcat zip 文件时遇到问题。我对 jsp 和 servlet 完全陌生。我已经安装了 tomcat 7.0.52 并设置了路径和 java_home。在我的一个系统中,它运行良好,但在另一个具有相同配置的系统中,它会产生问题,我不知道为什么。我之前安装了 tomcat 的安装程序,但现在我必须卸载它并下载 tomcat 的 zip。所以现在我面临以下异常,我猜问题是 tomcat 无法部署其现有项目。我在网上搜索过,但我无法弄清楚。

Mar 06, 2014 11:04:47 AM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.29 using APR version 1.4
.8.
Mar 06, 2014 11:04:47 AM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], ra
ndom [true].
Mar 06, 2014 11:04:48 AM org.apache.catalina.core.AprLifecycleListener initializ
eSSL
INFO: OpenSSL successfully initialized (OpenSSL 1.0.1e 11 Feb 2013)
Mar 06, 2014 11:04:49 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-apr-8080"]
Mar 06, 2014 11:04:49 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-apr-8009"]
Mar 06, 2014 11:04:49 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2525 ms
Mar 06, 2014 11:04:49 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Mar 06, 2014 11:04:49 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.52
Mar 06, 2014 11:04:49 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\apache-tomcat-7.0.52-windows-x86\ap
ache-tomcat-7.0.52\webapps\docs
Mar 06, 2014 11:04:49 AM org.apache.catalina.startup.HostConfig deployDirectory
SEVERE: Error deploying web application directory C:\apache-tomcat-7.0.52-window
s-x86\apache-tomcat-7.0.52\webapps\docs
java.lang.ExceptionInInitializerError
        at org.apache.catalina.startup.ContextConfig.createWebXmlDigester(Contex
tConfig.java:515)
        at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:836
)
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:382)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:117)
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBa
se.java:90)
    at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase
.java:402)
    at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:901)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:87
7)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)

    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:1229)
    at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig
.java:1875)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:47
1)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615)
    at java.lang.Thread.run(Thread.java:724)
Caused by: java.lang.NullPointerException
    at org.apache.tomcat.util.descriptor.DigesterFactory.idFor(DigesterFacto
ry.java:107)
    at org.apache.tomcat.util.descriptor.DigesterFactory.<clinit>(DigesterFa
ctory.java:59)
    ... 18 more

Mar 06, 2014 11:04:49 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\apache-tomcat-7.0.52-windows-x86\ap
ache-tomcat-7.0.52\webapps\examples
Mar 06, 2014 11:04:49 AM org.apache.catalina.startup.HostConfig deployDirectory
SEVERE: Error deploying web application directory C:\apache-tomcat-7.0.52-window
s-x86\apache-tomcat-7.0.52\webapps\examples
java.lang.NoClassDefFoundError: Could not initialize class org.apache.tomcat.uti
l.descriptor.DigesterFactory
        at org.apache.catalina.startup.ContextConfig.createWebXmlDigester(Contex
tConfig.java:515)
        at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:836
)
        at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:382)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:117)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBa
se.java:90)
        at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase
.java:402)
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:901)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:87
7)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)

        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:1229)
        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig
.java:1875)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:47
1)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615)
        at java.lang.Thread.run(Thread.java:724)

Mar 06, 2014 11:04:49 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\apache-tomcat-7.0.52-windows-x86\ap
ache-tomcat-7.0.52\webapps\host-manager
Mar 06, 2014 11:04:49 AM org.apache.catalina.startup.HostConfig deployDirectory
SEVERE: Error deploying web application directory C:\apache-tomcat-7.0.52-window
s-x86\apache-tomcat-7.0.52\webapps\host-manager
java.lang.NoClassDefFoundError: Could not initialize class org.apache.tomcat.uti
l.descriptor.DigesterFactory
        at org.apache.catalina.startup.ContextConfig.createWebXmlDigester(Contex
tConfig.java:515)
        at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:836
)
        at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:382)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:117)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBa
se.java:90)
        at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase
.java:402)
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:901)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:87
7)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)

        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:1229)
        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig
.java:1875)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:47
1)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615)
        at java.lang.Thread.run(Thread.java:724)

Mar 06, 2014 11:04:49 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\apache-tomcat-7.0.52-windows-x86\ap
ache-tomcat-7.0.52\webapps\manager
Mar 06, 2014 11:04:49 AM org.apache.catalina.startup.HostConfig deployDirectory
SEVERE: Error deploying web application directory C:\apache-tomcat-7.0.52-window
s-x86\apache-tomcat-7.0.52\webapps\manager
java.lang.NoClassDefFoundError: Could not initialize class org.apache.tomcat.uti
l.descriptor.DigesterFactory
        at org.apache.catalina.startup.ContextConfig.createWebXmlDigester(Contex
tConfig.java:515)
        at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:836
)
        at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:382)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:117)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBa
se.java:90)
        at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase
.java:402)
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:901)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:87
7)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)

        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:1229)
        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig
.java:1875)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:47
1)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615)
        at java.lang.Thread.run(Thread.java:724)

Mar 06, 2014 11:04:49 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\apache-tomcat-7.0.52-windows-x86\ap
ache-tomcat-7.0.52\webapps\ROOT
Mar 06, 2014 11:04:49 AM org.apache.catalina.startup.HostConfig deployDirectory
SEVERE: Error deploying web application directory C:\apache-tomcat-7.0.52-window
s-x86\apache-tomcat-7.0.52\webapps\ROOT
java.lang.NoClassDefFoundError: Could not initialize class org.apache.tomcat.uti
l.descriptor.DigesterFactory
        at org.apache.catalina.startup.ContextConfig.createWebXmlDigester(Contex
tConfig.java:515)
        at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:836
)
        at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:382)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:117)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBa
se.java:90)
        at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase
.java:402)
        at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:901)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:87
7)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)

        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:1229)
        at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig
.java:1875)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:47
1)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615)
        at java.lang.Thread.run(Thread.java:724)

Mar 06, 2014 11:04:49 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-apr-8080"]
Mar 06, 2014 11:04:49 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-apr-8009"]
Mar 06, 2014 11:04:49 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 227 ms

答案1

您的 7.0.52 安装不干净。从受影响的系统中删除 Tomcat 的所有痕迹,然后进行全新安装。

相关内容