好的。有一次我让Tomcat(7)运行良好。现在不是。我不知道我可能搞砸了。(但是我认为这是在我在NetBeans中设置一个Web项目以与Tomcat一起使用时发生的。)
我在OS X 1.8.5上,使用Java 1.7.0_51。
我的catalina.out看起来像这样:
Feb 23, 2014 5:42:57 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.29 using APR version 1.5.0.
Feb 23, 2014 5:42:57 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
Feb 23, 2014 5:42:57 PM org.apache.catalina.core.AprLifecycleListener initializeSSL
INFO: OpenSSL successfully initialized (OpenSSL 1.0.1e 11 Feb 2013)
Feb 23, 2014 5:42:58 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-apr-8089"]
Feb 23, 2014 5:42:58 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-apr-8009"]
Feb 23, 2014 5:42:58 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1761 ms
Feb 23, 2014 5:42:58 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Feb 23, 2014 5:42:58 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.52
Feb 23, 2014 5:42:58 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /Users/Edvard/Downloads/apache-tomcat-7.0.52/webapps/docs
Feb 23, 2014 5:42:58 PM org.apache.catalina.startup.HostConfig deployDirectory
SEVERE: Error deploying web application directory /Users/Edvard/Downloads/apache-tomcat-7.0.52/webapps/docs
java.lang.ExceptionInInitializerError
at org.apache.catalina.startup.ContextConfig.createWebXmlDigester(ContextConfig.java:515)
at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:836)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:382)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.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:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1229)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
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:744)
Caused by: java.lang.NullPointerException
at org.apache.tomcat.util.descriptor.DigesterFactory.idFor(DigesterFactory.java:107)
at org.apache.tomcat.util.descriptor.DigesterFactory.<clinit>(DigesterFactory.java:59)
... 18 more
Feb 23, 2014 5:42:58 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /Users/Edvard/Downloads/apache-tomcat-7.0.52/webapps/examples
Feb 23, 2014 5:42:58 PM org.apache.catalina.startup.HostConfig deployDirectory
SEVERE: Error deploying web application directory /Users/Edvard/Downloads/apache-tomcat-7.0.52/webapps/examples
java.lang.NoClassDefFoundError: Could not initialize class org.apache.tomcat.util.descriptor.DigesterFactory
at org.apache.catalina.startup.ContextConfig.createWebXmlDigester(ContextConfig.java:515)
at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:836)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:382)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.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:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1229)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
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:744)
Feb 23, 2014 5:42:58 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /Users/Edvard/Downloads/apache-tomcat-7.0.52/webapps/host-manager
Feb 23, 2014 5:42:58 PM org.apache.catalina.startup.HostConfig deployDirectory
SEVERE: Error deploying web application directory /Users/Edvard/Downloads/apache-tomcat-7.0.52/webapps/host-manager
java.lang.NoClassDefFoundError: Could not initialize class org.apache.tomcat.util.descriptor.DigesterFactory
at org.apache.catalina.startup.ContextConfig.createWebXmlDigester(ContextConfig.java:515)
at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:836)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:382)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.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:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1229)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
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:744)
Feb 23, 2014 5:42:58 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /Users/Edvard/Downloads/apache-tomcat-7.0.52/webapps/manager
Feb 23, 2014 5:42:58 PM org.apache.catalina.startup.HostConfig deployDirectory
SEVERE: Error deploying web application directory /Users/Edvard/Downloads/apache-tomcat-7.0.52/webapps/manager
java.lang.NoClassDefFoundError: Could not initialize class org.apache.tomcat.util.descriptor.DigesterFactory
at org.apache.catalina.startup.ContextConfig.createWebXmlDigester(ContextConfig.java:515)
at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:836)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:382)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.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:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1229)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
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:744)
Feb 23, 2014 5:42:58 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /Users/Edvard/Downloads/apache-tomcat-7.0.52/webapps/ROOT
Feb 23, 2014 5:42:58 PM org.apache.catalina.startup.HostConfig deployDirectory
SEVERE: Error deploying web application directory /Users/Edvard/Downloads/apache-tomcat-7.0.52/webapps/ROOT
java.lang.NoClassDefFoundError: Could not initialize class org.apache.tomcat.util.descriptor.DigesterFactory
at org.apache.catalina.startup.ContextConfig.createWebXmlDigester(ContextConfig.java:515)
at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:836)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:382)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.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:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1229)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1875)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
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:744)
Feb 23, 2014 5:42:58 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-apr-8089"]
Feb 23, 2014 5:42:58 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-apr-8009"]
Feb 23, 2014 5:42:58 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 409 ms
我尝试重新安装Tomcat,但问题仍然存在。我将非常感谢我能得到的任何指导。
我也遇到了同样的问题。您可能已经下载了自己的servlet.jar文件,而不是使用tomcat的文件。检出/ Library / Java /
Extensions /文件夹(或放置jar文件的任何文件夹),然后删除servlet.jar文件。卡塔琳娜跑了,现在应该可以工作了
我试图在karaf 4.0.3中创建一个Kafka Producer。 我的包含, 在部署代码时,我收到以下错误, 我也在下面的链接中尝试了解决方法, 卡拉夫 - Kafka OSGI 捆绑包 - 制片人问题 但仍然得到同样的错误。
当我在iReport 5.1.0中预览JasperReports的报告时,它执行得很好。它包含一个饼图,当我需要从jsp文件运行它时,问题就来了。 烧烤-1.5-beta1.jar commons-beanutils-1.8.2.jar Commons-Collections-3.2.1.jar commons-digester-2.1.jar commons-javaflow-20060411.
问题内容: 是我自己的一类。该类与主类位于同一JAR文件中。因此,这不应该是因为classpath中缺少任何JAR。 当我通过查阅JAR文件时,可以看到其中列出的内容。 顺便说一句:代码在我的本地计算机上运行良好。但是当我将其与某些脚本一起部署到Linux服务器上时无法工作。所以我认为这不是代码的问题。但是出于某种原因。部署过程很难跟踪。 可能是什么问题呢? 问题答案: 我最好的选择是这里有一个问
问题内容: 我是EJB的新手。我的经理告诉我在测试服务器中部署ejb应用程序进行一些修改。该应用程序已经在我们的生产服务器中运行。但是,当我部署应用程序时,我遇到了异常。 我们正在使用Glassfish应用服务器 堆栈异常跟踪: 当我重新启动服务器时,我得到了这些: 在这里您也可以看到相同的问题 任何人都可以 请 帮我,为什么这个错误即将到来。 这是非常需要的。 谢谢 问题答案: 问题解决了。 实
问题内容: 我在此添加了web.xml的源代码 Hibernate.cfg.xml。我的Web服务项目与Jersey + Hibernate一起使用。 这是HibernateUtil类 这是我添加了Hibernate最新的jar文件的错误。[ hibernate-core-4.3.7.Final.jar ] 请帮我解决这个问题谢谢 问题答案: 初始化失败时可能会发生这种错误。您已经提到您正在使用。
在Spring启动应用程序中使用jjwt在REST API中进行基于令牌的身份验证。它在我的本地环境中工作得很好,但是当我在Tomcat中部署war时,它会给出异常-无法初始化类io.jsonwebtoken.Signature的算法。Signature的算法类在jar中,但它的给出java.lang.NoClassDefFoundError错误。 努力在Tomcat中部署它并开始工作。需要帮助来
我怎么才能修好这个? 谢了。 pom.xml 更新:通过使用较新版本的Hibernate修复了它。