tomcat例外

时间:2009-06-23 22:07:28

标签: java tomcat

我最近部署了一个war文件。

我收到了以下错误

  

[http-8080-Processor24] ERROR异常发送上下文已初始化   event app.util.ApplicationEventsListener类的监听器实例   [在org.apache。   atalina.core.StandardContext.listenerStart(StandardContext.java:3768)]   ava.lang.NoClassDefFoundError:org / apache / xmlbeans / XmlObject          在app.util.ApplicationEventsListener.contextInitialized(ApplicationEven   sListener.java:31)          在org.apache.catalina.core.StandardContext.listenerStart(StandardContex   的.java:3764)          在org.apache.catalina.core.StandardContext.start(StandardContext.java:4   16)          在org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:   173)          在org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServl   t.java:549)          在org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServl)   t.java:105)          在javax.servlet.http.HttpServlet.service(HttpServlet.java:627)          在javax.servlet.http.HttpServlet.service(HttpServlet.java:729)          在org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl   cationFilterChain.java:269)          在org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF   lterChain.java:188)          在org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV)   lve.java:213)          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV)   lve.java:172)          在org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica)   orBase.java:525)          在org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j   VA:127)          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j   VA:117)          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal)   e.java:108)          在org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav)   :174)          在org.apache.coyote.http11.Http11Processor.process(Http11Processor.java)   875)          在org.apache.coyote.http11.Http11BaseProtocol $ Http11ConnectionHandler.p   ocessConnection(Http11BaseProtocol.java:665)          在org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo)   nt.java:528)          在org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol)   owerWorkerThread.java:81)          在org.apache.tomcat.util.threads.ThreadPool $ ControlRunnable.run(ThreadP)   ol.java:689)          at java.lang.Thread.run(Thread.java:619)aused by:java.lang.ClassNotFoundException:org.apache.xmlbeans.XmlObject          在org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa   er.java:1386)          在org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa   er.java:1232)          at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)          ... 23更多un 23,2009 2:19:46 PM org.apache.catalina.core.StandardContext start EVERE:Error   listenerStart un 23,2009 2:19:46 PM   org.apache.catalina.core.StandardContext start EVERE:Context   [/omb-itbrs-web-1.5.3]由于之前的错误而启动失败

如果有人能提供帮助就会很棒。

1 个答案:

答案 0 :(得分:3)

我认为这是原因:

java.lang.NoClassDefFoundError: org/apache/xmlbeans/XmlObject

您缺少包含org.apache.xmlbeans.XmlObject.class文件的JAR。

these sites之一下载并将其放在服务器/ lib目录中,以便安装Tomcat。

您使用的是哪种版本的Tomcat?哪个JDK版本?