qq_33845481
qq_33845481
2018-01-19 06:58
采纳率: 100%
浏览 1.6k
已采纳

请教:Tomcat启动报错(急)!!!!!!!!!报错信息如下,工程有Maven

严重: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/csm]]
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:801)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/csm]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
... 6 more
Caused by: java.lang.NoClassDefFoundError: org/springframework/web/context/WebApplicationContext
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
at java.lang.Class.getDeclaredFields(Class.java:1916)
at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:106)
at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:263)
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationListenerAnnotations(WebAnnotationSet.java:92)
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:65)
at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:407)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:883)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:378)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5343)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 6 more
Caused by: java.lang.ClassNotFoundException: org.springframework.web.context.WebApplicationContext
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1702)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547)
... 20 more

一月 19, 2018 2:58:22 下午 org.apache.catalina.core.ContainerBase startInternal
严重: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.startup.Catalina.start(Catalina.java:690)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:456)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:801)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 6 more

一月 19, 2018 2:58:22 下午 org.apache.catalina.startup.Catalina start
严重: The required Server component failed to start so Tomcat is unable to start.
org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.startup.Catalina.start(Catalina.java:690)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:456)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 7 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 9 more
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 11 more

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

13条回答 默认 最新

  • whb3299065
    whb3299065 2018-01-19 07:20
    已采纳

    说一下我遇到的几种问题吧我才用的是IDEA+maven的环境,首先就是看一下最近有没有更好jdk版本,如果有,就看一下maven里的配置文件是不是指定了jdk版本
    然后看一下你的jar有没有丢失,然后,执行一下clear+install命令,看看是不是jar没有下载上,如果是eclipse的话,可能需要clear一下项目,idea的话右侧有个Reimport All Maven Projects按钮(第一个),点一下。
    有时候Mapper呀,测试类,等一些并不是很相关的配置文件出错也会报莫名其妙的问题

    点赞 评论
  • u011664188
    金大爷 2018-01-19 06:59

    先试一下,重新解压一个tomcat,再把工程丢进去,再启动试试。

    点赞 评论
  • qq_35358816
    键盘街舞Sirdar-Yang 2018-01-19 07:03

    环境变量配置的有问题

    点赞 评论
  • qq_37990424
    qq_37990424 2018-01-19 07:08
     一般情况下,通过Caused by后面的描述可知,导致出错的原因,但是实际有些错误并不是这样。这个错误通过“Caused by: java.lang.NoClassDefFoundError: org/springframework/web/context/WebApplicationContext”,以为是缺少spring中的lib包,但是并不缺少包。(1)重新部署项目,可以消除这个错误;(2)clean一下项目   ,重新启动服务器。望采纳  急需C币谢谢
    
    点赞 评论
  • qq_33845481
    qq_33845481 2018-01-19 07:15

    import net.sf.json.JSONArray;
    在这种引用的地方有错

    点赞 评论
  • qq_40393093
    吴举人 2018-01-19 07:16

    如果你是第一次配置过后遇到这样的问题,说明你的tomcat本身或者是配置有问题,如果是别的项目没哟问题,说明是项目问题,具体问题具体分析!

    点赞 评论
  • qq_33845481
    qq_33845481 2018-01-19 07:27

    一月 19, 2018 3:24:23 下午 org.apache.catalina.core.ApplicationContext log
    信息: Initializing Spring root WebApplicationContext
    2018-01-19 15:24:45 [ERROR] com.dhcc.framework.web.context.DhccContextLoader.isMicrokernelStart(DhccContextLoader.java:439) : Io 异常: The Network Adapter could not establish the connection
    java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
    at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:441)
    at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:165)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
    at java.sql.DriverManager.getConnection(DriverManager.java:664)
    at java.sql.DriverManager.getConnection(DriverManager.java:247)
    at com.dhcc.framework.web.context.DhccContextLoader.isMicrokernelStart(DhccContextLoader.java:432)
    at com.dhcc.framework.web.context.DhccContextLoader.configureAndRefreshWebApplicationContext(DhccContextLoader.java:396)
    at com.dhcc.framework.web.context.DhccContextLoader.initWebApplicationContext(DhccContextLoader.java:304)
    at com.dhcc.framework.web.context.DhccContextLoaderListener.contextInitialized(DhccContextLoaderListener.java:100)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4961)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5455)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:748)

    点赞 评论
  • qq_33845481
    qq_33845481 2018-01-19 07:37

    现在问题是install一个pom.xml全部失败

    点赞 评论
  • ycsdn10
    ycsdn10 2018-01-19 08:11

    2 漏了一张 图片说明

    点赞 评论
  • ycsdn10
    ycsdn10 2018-01-19 08:12

    1.web.xml 里面 有关 配置不正确 ,比如 监听相关, 过滤相关 如果 有spring 则对应的配置不对图片说明
    2.还有就是 pom.xml 里面的 jar 或插件缺少 tomcat 相关插件 ,如果是spring 那么就是相关必备jar 缺少![图片说明](https://img-ask.csdn.net/upload/201801/19/1516349303_84518.png)图片说明
    3.或者 dynamic web module 版本不对 图片说明

    点赞 评论
  • ycsdn10
    ycsdn10 2018-01-19 08:15

    现在问题是install一个pom.xml全部失败

    1.clean
    2.可能 jar 都没有下载完就关了 ,查看本地仓库有没有Jar没有下载的删了重新下。
    3.重新搭建项目 ,代码复制到新项目中,不要复制文件

    点赞 评论
  • tengjinwei
    tengjinwei 2018-01-19 09:11

    classNotfound 我遇到最多的情况,就是项目之间的包相互冲突,项目依赖配置不正确没有排除低版本或者高版本

    点赞 评论
  • qq_16510189
    Aurora妍 2018-01-19 09:57

    Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/csm]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
    \webapps\project_name\WEB-INF\lib找不到jar

    其他的错都在caused的后面针对去搜就可以了

    点赞 评论

相关推荐