启动tomcat 7.0.52时出错

时间:2014-03-06 06:04:02

标签: java apache tomcat

我在启动tomcat zip文件时遇到问题。我是jsp和servlets的新手。我已经安装了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 个答案:

答案 0 :(得分:0)

尝试从native删除bin目录。或者尝试下载与架构无关的软件包,而不是x86