当尝试从服务启动时,Tomcat 服务自动停止并在日志文件中给出以下错误
在 Catalina 文件中 org.apache.commons.digester.Digester startElement 严重:开始事件引发异常 java.lang.ClassNotFoundException:org.apache.catalina.core.AprLifecycleListener 在 java.net.URLClassLoader$1.run(来源未知) 在 java.security.AccessController.doPrivileged(本机方法) 在 java.net.URLClassLoader.findClass(来源未知) 在 sun.misc.Launcher$ExtClassLoader.findClass(来源未知) 在 java.lang.ClassLoader.loadClass(来源未知) 在 java.lang.ClassLoader.loadClass(来源未知) 在 org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:204) 在 org.apache.commons.digester.Rule.begin(Rule.java:152) 在 org.apache.commons.digester.Digester.startElement(Digester.java:1286) 在 com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(来源未知) 在 com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(来源未知) 在 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(来源未知) 在 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(来源未知) 在 com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(来源未知) 在 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(来源未知) 在 com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(来源未知) 在 com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(来源未知) 在 com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(来源未知) 在 com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(来源未知) 在 com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(来源未知) 在 org.apache.commons.digester.Digester.parse(Digester.java:1572) 在 org.apache.catalina.startup.Catalina.start(Catalina.java:451) 在 org.apache.catalina.startup.Catalina.execute(Catalina.java:402) 在 org.apache.catalina.startup.Catalina.process(Catalina.java:180) 在 sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法) 在 sun.reflect.NativeMethodAccessorImpl.invoke(来源未知) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(来源未知) 在 java.lang.reflect.Method.invoke(来源未知) 在 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:202)
在 Stderr 文件中 org.apache.commons.digester.Digester startElement 严重:开始事件引发异常 java.lang.ClassNotFoundException:org.apache.catalina.core.AprLifecycleListener 在 java.net.URLClassLoader$1.run(来源未知) 在 java.security.AccessController.doPrivileged(本机方法) 在 java.net.URLClassLoader.findClass(来源未知) 在 sun.misc.Launcher$ExtClassLoader.findClass(来源未知) 在 java.lang.ClassLoader.loadClass(来源未知) 在 java.lang.ClassLoader.loadClass(来源未知) 在 org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:204) 在 org.apache.commons.digester.Rule.begin(Rule.java:152) 在 org.apache.commons.digester.Digester.startElement(Digester.java:1286) 在 com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(来源未知) 在 com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(来源未知) 在 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(来源未知) 在 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(来源未知) 在 com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(来源未知) 在 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(来源未知) 在 com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(来源未知) 在 com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(来源未知) 在 com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(来源未知) 在 com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(来源未知) 在 com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(来源未知) 在 org.apache.commons.digester.Digester.parse(Digester.java:1572) 在 org.apache.catalina.startup.Catalina.start(Catalina.java:451) 在 org.apache.catalina.startup.Catalina.execute(Catalina.java:402) 在 org.apache.catalina.startup.Catalina.process(Catalina.java:180) 在 sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法) 在 sun.reflect.NativeMethodAccessorImpl.invoke(来源未知) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(来源未知) 在 java.lang.reflect.Method.invoke(来源未知) 在 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:202)
在标准输出文件中 公共守护进程 procrun 标准输出初始化Catalina.start:java.lang.ClassNotFoundException:org.apache.catalina.core.AprLifecycleListener java.lang.ClassNotFoundException:org.apache.catalina.core.AprLifecycleListener 在 org.apache.commons.digester.Digester.createSAXException(Digester.java:2792) 在 org.apache.commons.digester.Digester.createSAXException(Digester.java:2818) 在 org.apache.commons.digester.Digester.startElement(Digester.java:1289) 在 com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(来源未知) 在 com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(来源未知) 在 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(来源未知) 在 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(来源未知) 在 com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(来源未知) 在 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(来源未知) 在 com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(来源未知) 在 com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(来源未知) 在 com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(来源未知) 在 com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(来源未知) 在 com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(来源未知) 在 org.apache.commons.digester.Digester.parse(Digester.java:1572) 在 org.apache.catalina.startup.Catalina.start(Catalina.java:451) 在 org.apache.catalina.startup.Catalina.execute(Catalina.java:402) 在 org.apache.catalina.startup.Catalina.process(Catalina.java:180) 在 sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法) 在 sun.reflect.NativeMethodAccessorImpl.invoke(来源未知) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(来源未知) 在 java.lang.reflect.Method.invoke(来源未知) 在 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:202) 引起原因:java.lang.ClassNotFoundException:org.apache.catalina.core.AprLifecycleListener 在 java.net.URLClassLoader$1.run(来源未知) 在 java.security.AccessController.doPrivileged(本机方法) 在 java.net.URLClassLoader.findClass(来源未知) 在 sun.misc.Launcher$ExtClassLoader.findClass(来源未知) 在 java.lang.ClassLoader.loadClass(来源未知) 在 java.lang.ClassLoader.loadClass(来源未知) 在 org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:204) 在 org.apache.commons.digester.Rule.begin(Rule.java:152) 在 org.apache.commons.digester.Digester.startElement(Digester.java:1286) ... 20 更多
请给我解决方案,我尝试了很多方法但没有得到解决方案。
提前致谢
In Catalina File
org.apache.commons.digester.Digester startElement
SEVERE: Begin event threw exception
java.lang.ClassNotFoundException: org.apache.catalina.core.AprLifecycleListener
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:204)
at org.apache.commons.digester.Rule.begin(Rule.java:152)
at org.apache.commons.digester.Digester.startElement(Digester.java:1286)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1572)
at org.apache.catalina.startup.Catalina.start(Catalina.java:451)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:202)
In Stderr File
org.apache.commons.digester.Digester startElement
SEVERE: Begin event threw exception
java.lang.ClassNotFoundException: org.apache.catalina.core.AprLifecycleListener
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:204)
at org.apache.commons.digester.Rule.begin(Rule.java:152)
at org.apache.commons.digester.Digester.startElement(Digester.java:1286)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1572)
at org.apache.catalina.startup.Catalina.start(Catalina.java:451)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:202)
In Stdout File
Commons Daemon procrun stdout initializedCatalina.start: java.lang.ClassNotFoundException: org.apache.catalina.core.AprLifecycleListener
java.lang.ClassNotFoundException: org.apache.catalina.core.AprLifecycleListener
at org.apache.commons.digester.Digester.createSAXException(Digester.java:2792)
at org.apache.commons.digester.Digester.createSAXException(Digester.java:2818)
at org.apache.commons.digester.Digester.startElement(Digester.java:1289)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1572)
at org.apache.catalina.startup.Catalina.start(Catalina.java:451)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:202)
Caused by: java.lang.ClassNotFoundException: org.apache.catalina.core.AprLifecycleListener
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at sun.misc.Launcher$ExtClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:204)
at org.apache.commons.digester.Rule.begin(Rule.java:152)
at org.apache.commons.digester.Digester.startElement(Digester.java:1286)
... 20 more
Please give me the solution for this, I had tried many thing but not get the solution.
Thanks in avdance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这绝对是一个安装问题,Tomcat 不想加载它没有的类,至少不是它自己的类(自 Tomcat 5.5 以来,“org.apache.catalina.core.AprLifecycleListener”位于 catalina.jar 中) 。看到你的上一个问题和这个问题,我想你已经安装了全新且完整的 Tomcat,否则你就是在浪费时间。并且您在 Windows 上(“启动服务”、“安装在 C 盘上”)。现在检查您的搜索路径 - 在您当前的 Tomcat 之前是否有任何其他 Tomcat 或旧的 catalina.jar 版本?
This is definitely an installation problem, Tomcat wouldn't want to load a class that it doesn't have, at least not its own class ("org.apache.catalina.core.AprLifecycleListener" sits in catalina.jar since Tomcat 5.5). Seeing your previous question and this one I suppose you have a fresh and complete Tomcat installation, otherwise you're wasting the time. And you are on Windows ("starting the service", "installed on c drive"). So now check your search PATH - any other Tomcat or an older catalina.jar version out there coming before your current Tomcat's one?