A child container failed during start 到底是什么错误?

AliceLiJie 发布于 2018/10/03 14:32
阅读 700
收藏 1

错误信息:

H:\Jdk1.8\bin\java -Dmaven.multiModuleProjectDirectory=C:\Users\Administrator.000\Desktop\taotao\taotao-manager "-Dmaven.home=H:\IntelliJ IDEA\IntelliJ IDEA 2017.3.5\plugins\maven\lib\maven3" "-Dclassworlds.conf=H:\IntelliJ IDEA\IntelliJ IDEA 2017.3.5\plugins\maven\lib\maven3\bin\m2.conf" "-javaagent:H:\IntelliJ IDEA\IntelliJ IDEA 2017.3.5\lib\idea_rt.jar=52038:H:\IntelliJ IDEA\IntelliJ IDEA 2017.3.5\bin" -Dfile.encoding=UTF-8 -classpath "H:\IntelliJ IDEA\IntelliJ IDEA 2017.3.5\plugins\maven\lib\maven3\boot\plexus-classworlds-2.5.2.jar" org.codehaus.classworlds.Launcher -Didea.version=2017.3.5 --update-snapshots clean tomcat7:run

[WARNING] 

[WARNING] Some problems were encountered while building the effective settings

[WARNING] expected START_TAG or END_TAG not TEXT (position: TEXT seen ...</mirror>\n     -->\n\t \n\t<mirror>        \ua0\n\t\t<i... @161 :5)  @ C:\Users\Administrator.000\.m2\settings.xml, line 161, column 5

[WARNING] 

[INFO] Scanning for projects...

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Build Order:

[INFO] 

[INFO] taotao-manager

[INFO] taotao-manager-pojo

[INFO] taotao-manager-mapper

[INFO] taotao-manager-service

[INFO] taotao-manager-web

[INFO]                                                                         

[INFO] ------------------------------------------------------------------------

[INFO] Building taotao-manager 0.0.1-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[INFO] 

[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager ---

[INFO] 

[INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ taotao-manager >>>

[INFO] 

[INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ taotao-manager <<<

[INFO] 

[INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ taotao-manager ---

[INFO] Skipping non-war project

[INFO]                                                                         

[INFO] ------------------------------------------------------------------------

[INFO] Building taotao-manager-pojo 0.0.1-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[INFO] 

[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager-pojo ---

[INFO] Deleting C:\Users\Administrator.000\Desktop\taotao\taotao-manager\taotao-manager-pojo\target

[INFO] 

[INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ taotao-manager-pojo >>>

[INFO] 

[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ taotao-manager-pojo ---

[INFO] Using 'UTF-8' encoding to copy filtered resources.

[INFO] skip non existing resourceDirectory C:\Users\Administrator.000\Desktop\taotao\taotao-manager\taotao-manager-pojo\src\main\resources

[INFO] 

[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ taotao-manager-pojo ---

[INFO] Changes detected - recompiling the module!

[INFO] Compiling 22 source files to C:\Users\Administrator.000\Desktop\taotao\taotao-manager\taotao-manager-pojo\target\classes

[INFO] 

[INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ taotao-manager-pojo <<<

[INFO] 

[INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ taotao-manager-pojo ---

[INFO] Skipping non-war project

[INFO]                                                                         

[INFO] ------------------------------------------------------------------------

[INFO] Building taotao-manager-mapper 0.0.1-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[INFO] 

[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager-mapper ---

[INFO] Deleting C:\Users\Administrator.000\Desktop\taotao\taotao-manager\taotao-manager-mapper\target

[INFO] 

[INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ taotao-manager-mapper >>>

[INFO] 

[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ taotao-manager-mapper ---

[INFO] Using 'UTF-8' encoding to copy filtered resources.

[INFO] Copying 11 resources

[INFO] 

[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ taotao-manager-mapper ---

[INFO] Changes detected - recompiling the module!

[INFO] Compiling 11 source files to C:\Users\Administrator.000\Desktop\taotao\taotao-manager\taotao-manager-mapper\target\classes

[INFO] 

[INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ taotao-manager-mapper <<<

[INFO] 

[INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ taotao-manager-mapper ---

[INFO] Skipping non-war project

[INFO]                                                                         

[INFO] ------------------------------------------------------------------------

[INFO] Building taotao-manager-service 0.0.1-SNAPSHOT

[INFO] ------------------------------------------------------------------------

Downloading: http://maven.aliyun.com/nexus/content/groups/public/com/github/pagehelper/pagehelper/3.4.2-fix/pagehelper-3.4.2-fix.pom

[WARNING] The POM for com.github.pagehelper:pagehelper🏺3.4.2-fix is missing, no dependency information available

[INFO] 

[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager-service ---

[INFO] Deleting C:\Users\Administrator.000\Desktop\taotao\taotao-manager\taotao-manager-service\target

[INFO] 

[INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ taotao-manager-service >>>

[INFO] 

[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ taotao-manager-service ---

[INFO] Using 'UTF-8' encoding to copy filtered resources.

[INFO] skip non existing resourceDirectory C:\Users\Administrator.000\Desktop\taotao\taotao-manager\taotao-manager-service\src\main\resources

[INFO] 

[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ taotao-manager-service ---

[INFO] Changes detected - recompiling the module!

[INFO] Compiling 2 source files to C:\Users\Administrator.000\Desktop\taotao\taotao-manager\taotao-manager-service\target\classes

[INFO] 

[INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ taotao-manager-service <<<

[INFO] 

[INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ taotao-manager-service ---

[INFO] Skipping non-war project

[INFO]                                                                         

[INFO] ------------------------------------------------------------------------

[INFO] Building taotao-manager-web 0.0.1-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[INFO] 

[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ taotao-manager-web ---

[INFO] Deleting C:\Users\Administrator.000\Desktop\taotao\taotao-manager\taotao-manager-web\target

[INFO] 

[INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ taotao-manager-web >>>

[INFO] 

[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ taotao-manager-web ---

[INFO] Using 'UTF-8' encoding to copy filtered resources.

[INFO] Copying 6 resources

[INFO] 

[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ taotao-manager-web ---

[INFO] Changes detected - recompiling the module!

[INFO] Compiling 1 source file to C:\Users\Administrator.000\Desktop\taotao\taotao-manager\taotao-manager-web\target\classes

[INFO] 

[INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ taotao-manager-web <<<

[INFO] 

[INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ taotao-manager-web ---

[INFO] Running war on http://localhost:8080/

[INFO] Creating Tomcat server configuration at C:\Users\Administrator.000\Desktop\taotao\taotao-manager\taotao-manager-web\target\tomcat

[INFO] create webapp with contextPath: 

十月 03, 2018 11:23:57 上午 org.apache.coyote.AbstractProtocol init

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

十月 03, 2018 11:23:57 上午 org.apache.catalina.core.StandardService startInternal

信息: Starting service Tomcat

十月 03, 2018 11:23:57 上午 org.apache.catalina.core.StandardEngine startInternal

信息: Starting Servlet Engine: Apache Tomcat/7.0.47

十月 03, 2018 11:23:57 上午 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[Tomcat].StandardHost[localhost].StandardContext[]]

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

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

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)

Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]]

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

... 6 more

Caused by: java.lang.ClassCastException: org.apache.jasper.servlet.JasperInitializer cannot be cast to javax.servlet.ServletContainerInitializer

at org.apache.catalina.startup.ContextConfig.getServletContainerInitializer(ContextConfig.java:1670)

at org.apache.catalina.startup.ContextConfig.getServletContainerInitializers(ContextConfig.java:1652)

at org.apache.catalina.startup.ContextConfig.processServletContainerInitializers(ContextConfig.java:1562)

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

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

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

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

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

... 6 more

 

十月 03, 2018 11:23:57 上午 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[Tomcat].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.Tomcat.start(Tomcat.java:341)

at org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.startContainer(AbstractRunMojo.java:1238)

at org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.execute(AbstractRunMojo.java:592)

at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)

at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)

at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)

at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)

at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)

at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)

at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)

at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)

at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)

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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)

at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)

at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)

at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

at org.codehaus.classworlds.Launcher.main(Launcher.java:47)

Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].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:1149)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

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

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

... 6 more

 

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Summary:

[INFO] 

[INFO] taotao-manager ..................................... SUCCESS [  1.221 s]

[INFO] taotao-manager-pojo ................................ SUCCESS [  3.290 s]

[INFO] taotao-manager-mapper .............................. SUCCESS [  0.686 s]

[INFO] taotao-manager-service ............................. SUCCESS [  2.067 s]

[INFO] taotao-manager-web ................................. FAILURE [  1.597 s]

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 9.210 s

[INFO] Finished at: 2018-10-03T11:23:57+08:00

[INFO] Final Memory: 35M/269M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:run (default-cli) on project taotao-manager-web: Could not start Tomcat: Failed to start component [StandardServer[-1]]: Failed to start component [StandardService[Tomcat]]: Failed to start component [StandardEngine[Tomcat]]: A child container failed during start -> [Help 1]

[ERROR] 

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR] 

[ERROR] For more information about the errors and possible solutions, please read the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

[ERROR] 

[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <goals> -rf :taotao-manager-web

 

Process finished with exit code 1

 

taotao-manager-web:

pom.xml

<project xmlns="http://maven.apache.org/POM/4.0.0" 
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
         http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>com.taotao</groupId>
        <artifactId>taotao-manager</artifactId>
        <version>0.0.1-SNAPSHOT</version>
    </parent>
    <artifactId>taotao-manager-web</artifactId>
    <packaging>war</packaging>
    <!-- 依赖管理 -->
    <dependencies>
        <dependency>
            <groupId>com.taotao</groupId>
            <artifactId>taotao-manager-service</artifactId>
            <version>0.0.1-SNAPSHOT</version>
            <scope>provided</scope>
        </dependency>
        <!-- JSP相关 -->
        <dependency>
            <groupId>jstl</groupId>
            <artifactId>jstl</artifactId>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>com.github.pagehelper</groupId>
            <artifactId>pagehelper</artifactId>
            <version>5.0.0</version>
        </dependency>

        <dependency>
            <groupId>org.apache.tomcat</groupId>
            <artifactId>tomcat-jasper</artifactId>
            <version>9.0.8</version>
        </dependency>

        <!-- 文件上传组件 -->
        <dependency>
            <groupId>commons-fileupload</groupId>
            <artifactId>commons-fileupload</artifactId>
        </dependency>
    </dependencies>
</project>

 

 

加载中
返回顶部
顶部