• ContainerBase.addChild: start: 错误


      新进一家公司,项目拉下来怎么都跑步起来,用的tomcat7.0.93从官网上下载,接着看,就报错了,一脸懵逼有没有,简直了,mvn isntall成功,但是build的时候就报错,缺包,项目中的包,然后就重新添加jar,还是无效,怎么也没想到会是tomcat的问题,

    然后,换了windows电脑,同样的流程再来一趟,然后还是一样的报错,最后使用windows7原来存在的tomcat去跑,结果成功了了,真是坑爹,无语了。。。。。。。。

    报错如下

    ==================================================================

    四月 04, 2019 12:57:28 上午 org.apache.catalina.startup.VersionLoggerListener log

    信息: Server version:        Apache Tomcat/7.0.93

    四月 04, 2019 12:57:28 上午 org.apache.catalina.startup.VersionLoggerListener log

    信息: Server built:          Feb 16 2019 17:13:17 UTC

    四月 04, 2019 12:57:28 上午 org.apache.catalina.startup.VersionLoggerListener log

    信息: Server number:         7.0.93.0

    四月 04, 2019 12:57:28 上午 org.apache.catalina.startup.VersionLoggerListener log

    信息: OS Name:               Mac OS X

    四月 04, 2019 12:57:28 上午 org.apache.catalina.startup.VersionLoggerListener log

    信息: OS Version:            10.14.3

    四月 04, 2019 12:57:28 上午 org.apache.catalina.startup.VersionLoggerListener log

    信息: Architecture:          x86_64

    四月 04, 2019 12:57:28 上午 org.apache.catalina.startup.VersionLoggerListener log

    信息: Java Home:             /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jre

    四月 04, 2019 12:57:28 上午 org.apache.catalina.startup.VersionLoggerListener log

    信息: JVM Version:           1.7.0_80-b15

    四月 04, 2019 12:57:28 上午 org.apache.catalina.startup.VersionLoggerListener log

    信息: JVM Vendor:            Oracle Corporation

    四月 04, 2019 12:57:28 上午 org.apache.catalina.startup.VersionLoggerListener log

    信息: CATALINA_BASE:         /Users/zl/softWare/apache-tomcat-7.0.93

    四月 04, 2019 12:57:28 上午 org.apache.catalina.startup.VersionLoggerListener log

    信息: CATALINA_HOME:         /Users/zl/softWare/apache-tomcat-7.0.93

    四月 04, 2019 12:57:28 上午 org.apache.catalina.startup.VersionLoggerListener log

    信息: Command line argument: -Dcatalina.base=/Users/zl/softWare/apache-tomcat-7.0.93

    四月 04, 2019 12:57:28 上午 org.apache.catalina.startup.VersionLoggerListener log

    信息: Command line argument: -Dcatalina.home=/Users/zl/softWare/apache-tomcat-7.0.93

    四月 04, 2019 12:57:28 上午 org.apache.catalina.startup.VersionLoggerListener log

    信息: Command line argument: -Dwtp.deploy=/Users/zl/softWare/apache-tomcat-7.0.93/webapps

    四月 04, 2019 12:57:28 上午 org.apache.catalina.startup.VersionLoggerListener log

    信息: Command line argument: -Djava.endorsed.dirs=/Users/zl/softWare/apache-tomcat-7.0.93/endorsed

    四月 04, 2019 12:57:28 上午 org.apache.catalina.startup.VersionLoggerListener log

    信息: Command line argument: -Dfile.encoding=UTF-8

    四月 04, 2019 12:57:28 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent

    信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /Users/zl/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.

    四月 04, 2019 12:57:28 上午 org.apache.coyote.AbstractProtocol init

    信息: Initializing ProtocolHandler ["http-bio-8080"]

    四月 04, 2019 12:57:29 上午 org.apache.coyote.AbstractProtocol init

    信息: Initializing ProtocolHandler ["ajp-bio-8009"]

    四月 04, 2019 12:57:29 上午 org.apache.catalina.startup.Catalina load

    信息: Initialization processed in 585 ms

    四月 04, 2019 12:57:29 上午 org.apache.catalina.core.StandardService startInternal

    信息: Starting service Catalina

    四月 04, 2019 12:57:29 上午 org.apache.catalina.core.StandardEngine startInternal

    信息: Starting Servlet Engine: Apache Tomcat/7.0.93

    四月 04, 2019 12:57:29 上午 org.apache.catalina.startup.HostConfig deployDescriptor

    信息: Deploying configuration descriptor /Users/zl/softWare/apache-tomcat-7.0.93/conf/Catalina/localhost/gomeetpc.xml

    四月 04, 2019 12:57:29 上午 org.apache.catalina.startup.HostConfig deployDescriptor

    警告: A docBase /Users/zl/softWare/apache-tomcat-7.0.93/webapps/gomeetpc inside the host appBase has been specified, and will be ignored

    四月 04, 2019 12:57:29 上午 org.apache.catalina.loader.WebappClassLoaderBase validateJarFile

    信息: validateJarFile(/Users/zl/softWare/apache-tomcat-7.0.93/webapps/gomeetpc/WEB-INF/lib/javax.servlet-api-3.1.0.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class

    四月 04, 2019 12:57:29 上午 org.apache.catalina.loader.WebappClassLoaderBase validateJarFile

    信息: validateJarFile(/Users/zl/softWare/apache-tomcat-7.0.93/webapps/gomeetpc/WEB-INF/lib/servlet-api-2.5.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class

    四月 04, 2019 12:57:29 上午 org.apache.catalina.core.ContainerBase addChildInternal

    严重: ContainerBase.addChild: start: 

    org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/gomeetpc]]

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)

    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1018)

    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:994)

    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)

    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:712)

    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:2003)

    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:745)

    Caused by: java.lang.IllegalArgumentException: More than one fragment with the name [org_apache_tomcat_websocket] was found. This is not legal with relative ordering. See section 8.2.2 2c of the Servlet specification for details. Consider using absolute ordering.

    at org.apache.catalina.deploy.WebXml.orderWebFragments(WebXml.java:2338)

    at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1268)

    at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:881)

    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:388)

    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)

    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)

    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5590)

    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)

    ... 10 more

     

    四月 04, 2019 12:57:29 上午 org.apache.catalina.startup.HostConfig deployDescriptor

    严重: Error deploying configuration descriptor /Users/zl/softWare/apache-tomcat-7.0.93/conf/Catalina/localhost/gomeetpc.xml

    java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/gomeetpc]]

    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1022)

    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:994)

    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)

    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:712)

    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:2003)

    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:745)

     

    四月 04, 2019 12:57:29 上午 org.apache.catalina.startup.HostConfig deployDescriptor

    信息: Deployment of configuration descriptor /Users/zl/softWare/apache-tomcat-7.0.93/conf/Catalina/localhost/gomeetpc.xml has finished in 404 ms

    四月 04, 2019 12:57:29 上午 org.apache.catalina.startup.HostConfig deployDirectory

    信息: Deploying web application directory /Users/zl/softWare/apache-tomcat-7.0.93/webapps/docs

    四月 04, 2019 12:57:29 上午 org.apache.catalina.startup.HostConfig deployDirectory

    信息: Deployment of web application directory /Users/zl/softWare/apache-tomcat-7.0.93/webapps/docs has finished in 191 ms

    四月 04, 2019 12:57:29 上午 org.apache.catalina.startup.HostConfig deployDirectory

    信息: Deploying web application directory /Users/zl/softWare/apache-tomcat-7.0.93/webapps/manager

    四月 04, 2019 12:57:29 上午 org.apache.catalina.startup.HostConfig deployDirectory

    信息: Deployment of web application directory /Users/zl/softWare/apache-tomcat-7.0.93/webapps/manager has finished in 54 ms

    四月 04, 2019 12:57:29 上午 org.apache.catalina.startup.HostConfig deployDirectory

    信息: Deploying web application directory /Users/zl/softWare/apache-tomcat-7.0.93/webapps/examples

    四月 04, 2019 12:57:29 上午 org.apache.catalina.core.ApplicationContext log

    信息: ContextListener: contextInitialized()

    四月 04, 2019 12:57:29 上午 org.apache.catalina.core.ApplicationContext log

    信息: SessionListener: contextInitialized()

    四月 04, 2019 12:57:29 上午 org.apache.catalina.core.ApplicationContext log

    信息: ContextListener: attributeAdded('StockTicker', 'async.Stockticker@1e59a7ba')

    四月 04, 2019 12:57:29 上午 org.apache.catalina.core.ApplicationContext log

    信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@4b93c2e5')

    四月 04, 2019 12:57:29 上午 org.apache.catalina.startup.HostConfig deployDirectory

    信息: Deployment of web application directory /Users/zl/softWare/apache-tomcat-7.0.93/webapps/examples has finished in 237 ms

    四月 04, 2019 12:57:29 上午 org.apache.catalina.startup.HostConfig deployDirectory

    信息: Deploying web application directory /Users/zl/softWare/apache-tomcat-7.0.93/webapps/ROOT

    四月 04, 2019 12:57:29 上午 org.apache.catalina.startup.HostConfig deployDirectory

    信息: Deployment of web application directory /Users/zl/softWare/apache-tomcat-7.0.93/webapps/ROOT has finished in 39 ms

    四月 04, 2019 12:57:29 上午 org.apache.catalina.startup.HostConfig deployDirectory

    信息: Deploying web application directory /Users/zl/softWare/apache-tomcat-7.0.93/webapps/host-manager

    四月 04, 2019 12:57:30 上午 org.apache.catalina.startup.HostConfig deployDirectory

    信息: Deployment of web application directory /Users/zl/softWare/apache-tomcat-7.0.93/webapps/host-manager has finished in 42 ms

    四月 04, 2019 12:57:30 上午 org.apache.coyote.AbstractProtocol start

    信息: Starting ProtocolHandler ["http-bio-8080"]

    四月 04, 2019 12:57:30 上午 org.apache.coyote.AbstractProtocol start

    信息: Starting ProtocolHandler ["ajp-bio-8009"]

    四月 04, 2019 12:57:30 上午 org.apache.catalina.startup.Catalina start

    信息: Server startup in 1023 ms

     

    问题解决如下

    ==================================================

    浪费两天时间,结果竟然是换了一个tomcat的版本就可以了

    真是无语了,报错无从下手,记录一下,希望可以帮到别人

     

    附上有效7版本汤姆猫

    https://pan.baidu.com/s/1uMwEPGi3EM-asCcQijSG6A

    如有错误,请邮件zs253499660@sina.com,如有更好的方法,可以推荐
  • 相关阅读:
    maven打包不执行测试用例
    maven不打包子模块资源文件
    mvn打包时添加version和profile
    eclipse控制台中文乱码解决方法
    eclipse常用插件
    Spring Boot系列之-logging
    Spring Boot系列之-profile
    Spring Boot系列之-helloword入门
    sqlite入门
    解决eclipse spring配置报错:cvc-elt.1: Cannot find the declaration of element
  • 原文地址:https://www.cnblogs.com/senjiang/p/10652652.html
Copyright © 2020-2023  润新知