Tomcat under Integration Spring, CXF error Failed to start component [Standardengine[tomcat]. Standardhost[localhost]]

Source: Internet
Author: User
Tags stack trace

The following error occurred while executing tomcat7:run:

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:188)
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: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: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.springframework.web.SpringServletContainerInitializer cannot is 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

September 14, 2017 6:13:51 pm Org.apache.catalina.core.ContainerBase startinternal
Severity: 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:188)
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:57)
At Sun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodaccessorimpl.java:43)
At Java.lang.reflect.Method.invoke (method.java:606)
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)
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: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: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] BUILD Failure[info]-------- ----------------------------------------------------------------[INFO] Total time:2.095 s[info] finished at: 2017-09-14t18:13:51+08:00
[INFO] Final memory:12m/30m
[INFO]------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:run (DEFAULT-CLI) in Project Th09:could not star T tomcat:failed to start component [Standardserver[-1]: Failed to start component [Standardservice[tomcat]]: Failed to S Tart component [Standardengine[tomcat]: A child container failed during start--[Help 1]
[ERROR]
[ERROR] 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 on the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException|

Workaround:

Remove the following dependencies in Pom.xml:

<dependency>

<groupId>org.apache.cxf</groupId>

<artifactId>cxf-rt-transports-http-jetty</artifactId>

<version>3.0.1</version>

</dependency>

Tomcat under Integration Spring, CXF error Failed to start component [Standardengine[tomcat]. Standardhost[localhost]]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.