# tomcatRunWar child container failed during start error comes when i give command "gradle tomcatRunWar"

**URL:** <https://discuss.gradle.org/t/tomcatrunwar-child-container-failed-during-start-error-comes-when-i-give-command-gradle-tomcatrunwar/1940>\
**Category:** Old Forum Archive\
**Created:** [May 25, 2014, 6:33pm UTC](https://discuss.gradle.org/t/tomcatrunwar-child-container-failed-during-start-error-comes-when-i-give-command-gradle-tomcatrunwar/1940 "2014-05-25T18:33:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![saket\_kumar](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@saket\_kumar](https://discuss.gradle.org/u/saket_kumar)\
**Post date:** [May 25, 2014, 6:33pm UTC](https://discuss.gradle.org/t/tomcatrunwar-child-container-failed-during-start-error-comes-when-i-give-command-gradle-tomcatrunwar/1940/1 "2014-05-25T18:33:00Z")

</div>

While starting the tomcat server on build gradle tomcatRunWar i get:

tomcatRunWar

child container failed during start ava.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]]

---

<div class="post-metadata">

**Author:** ![saket\_kumar](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@saket\_kumar](https://discuss.gradle.org/u/saket_kumar)\
**Post date:** [May 25, 2014, 6:33pm UTC](https://discuss.gradle.org/t/tomcatrunwar-child-container-failed-during-start-error-comes-when-i-give-command-gradle-tomcatrunwar/1940/2 "2014-05-25T18:33:00Z")

</div>

i am using the below build file and i had tried few things like using the local tomcat to avoid downloading jar files every time. When i reverted back the changes i have started facing the issue.

I tried to few thing like deleting the .gradle folder under the users, That also did not work.

apply plugin: ‘war’ apply plugin: ‘tomcat’ apply plugin: ‘java’ apply plugin: ‘propdeps’ apply plugin: ‘propdeps-maven’ apply plugin: ‘propdeps-idea’ apply plugin: ‘propdeps-eclipse’ apply plugin: ‘eclipse-wtp’ //apply plugin: ‘cargo’

//tomcat\_home=‘D:/apache-tomcat/apache-tomcat-7.0.53’ //tomcat\_bin=tomcat\_home + ‘/bin’ //tomcat\_start=tomcat\_bin + ‘/startup.bat’ //tomcat\_stop=tomcat\_bin + ‘/shutdown.bat’ //tomcat\_webapps = tomcat\_home + ‘/webapps’

println “PROJECT=” + [project.name](http://project.name)

buildscript {

repositories {

maven {

url “D:/maven\_repository\_jars”

}

}

dependencies {

classpath ‘org.gradle.api.plugins:gradle-tomcat-plugin:0.9.8’

classpath ‘org.springframework.build.gradle:propdeps-plugin:0.0.1’

} }

//{!begin repos} repositories {

mavenCentral()

maven {

url “D:/maven\_repository\_jars”

}

//maven { url ‘[http://repo.spring.io/milestone/](http://repo.spring.io/milestone/)’} } //{!end repos}

dependencies {

def tomcatVersion = ‘7.0.42’ tomcat “org.apache.tomcat.embed:tomcat-embed-core:${tomcatVersion}”,

“org.apache.tomcat.embed:tomcat-embed-logging-juli:${tomcatVersion}” tomcat(“org.apache.tomcat.embed:tomcat-embed-jasper:${tomcatVersion}”) {

exclude group: ‘org.eclipse.jdt.core.compiler’, module: ‘ecj’ }

compile files(‘D:/maven\_repository\_jars/validation-api-1.1.0.Final.jar’)

compile files (‘D:/maven\_repository\_jars/hibernate-validator-5.0.1.Final.jar’)

compile files (‘D:/maven\_repository\_jars/spring-core-3.2.3.RELEASE.jar’)

compile files(‘D:/maven\_repository\_jars/spring-webmvc-3.2.3.RELEASE.jar’)

//{!begin deps}

compile files(‘D:/maven\_repository\_jars/spring-security-web-3.2.0.M2.jar’)

compile files(‘D:/maven\_repository\_jars/spring-security-core-3.2.0.M2.jar’)

compile files(‘D:/maven\_repository\_jars/spring-security-config-3.2.0.M2.jar’)

//{!end deps}

compile files(‘D:/maven\_repository\_jars/slf4j-api-1.7.5.jar’)

runtime files(‘D:/maven\_repository\_jars/slf4j-log4j12-1.7.5.jar’)

compile files(‘D:/maven\_repository\_jars/thymeleaf-spring3-2.0.18.jar’)

compile fileTree(‘D:/maven\_repository\_jars’)

testCompile ‘org.springframework:spring-test:3.2.3.RELEASE’

testCompile ‘junit:junit:4.11’

testCompile “org.mockito:mockito-core:1.9.5”

testCompile “org.hamcrest:hamcrest-library:1.3”

provided files(‘D:/maven\_repository\_jars/javax.servlet-api-3.0.1.jar’) }

test {

testLogging {

// Show that tests are run in the command-line output

events ‘started’, ‘passed’

} }

task wrapper(type: Wrapper) { gradleVersion = ‘1.6’ }

tomcatRunWar.contextPath = ‘’

---

<div class="post-metadata">

**Author:** ![saket\_kumar](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@saket\_kumar](https://discuss.gradle.org/u/saket_kumar)\
**Post date:** [May 25, 2014, 6:43pm UTC](https://discuss.gradle.org/t/tomcatrunwar-child-container-failed-during-start-error-comes-when-i-give-command-gradle-tomcatrunwar/1940/3 "2014-05-25T18:43:00Z")

</div>

tomcatRunWar

child container failed during start ava.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:744) aused 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 aused by: java.lang.NoSuchMethodError: org.springframework.web.filter.DelegatingFilterProxy.(Ljava/lang/String;)V

at org.springframework.security.web.context.AbstractSecurityWebApplicationInitializer.insertSpringSecurityFilterChain(AbstractSecurityWebApplicationInitializer.java:104)

at org.springframework.security.web.context.AbstractSecurityWebApplicationInitializer.onStartup(AbstractSecurityWebApplicationInitializer.java:83)

at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:180)

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

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

… 6 more

---

<div class="post-metadata">

**Author:** ![bmuschko](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/bmuschko/32/5458_2.png) [@bmuschko](https://discuss.gradle.org/u/bmuschko)\
**Post date:** [May 25, 2014, 8:33pm UTC](https://discuss.gradle.org/t/tomcatrunwar-child-container-failed-during-start-error-comes-when-i-give-command-gradle-tomcatrunwar/1940/4 "2014-05-25T20:33:00Z")

</div>

I am pretty sure you have a version conflict on the ‘spring-web’ JAR. The version that was selected does not provide the specific method mentioned in the stack trace above. You will need to analyze your dependencies and figure out the version you need.

---

<div class="post-metadata">

**Author:** ![saket\_kumar](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@saket\_kumar](https://discuss.gradle.org/u/saket_kumar)\
**Post date:** [May 26, 2014, 4:14pm UTC](https://discuss.gradle.org/t/tomcatrunwar-child-container-failed-during-start-error-comes-when-i-give-command-gradle-tomcatrunwar/1940/5 "2014-05-26T16:14:00Z")

</div>

I looked under my local repository, and there i could see older version of Spring-web.jar present which was not part of my build file.I removed that jar and kept the spring-web-3.2.3.RELEASE.jar file. I am now able to SUCCESSFULLY start the tomact.

Thanks for your accurate analysis!!
