Maven - deploy webapp to tomcat before Unit test -
im trying startup webapp using tomcat check if starts properly.
i have following plugin in pom.xml
<plugin> <groupid>org.apache.tomcat.maven</groupid> <artifactid>tomcat7-maven-plugin</artifactid> <executions> <execution> <id>tomcat-run</id> <goals> <goal>run</goal> </goals> <phase>pre-integration-test</phase> <configuration> <fork>true</fork> <path>/../pay-war/target/conf/server.xml</path> <port>8080</port> <addcontextwardependencies>true</addcontextwardependencies> <addwardependenciesinclassloader>true</addwardependenciesinclassloader> <warsourcedirectory>${project.build.directory}/../pay-war/target/${project.build.finalname}/</warsourcedirectory> </configuration> </execution> <execution> <id>tomcat-shutdown</id> <goals> <goal>shutdown</goal> </goals> <phase>post-integration-test</phase> </execution> </executions> </plugin>
when run mvn tomcat7:run, im getting:
[error] failed execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2-snapshot:run (default-cli) on project pay-war: not start tomcat: failed start component [standardserver[-1]]: failed start component [standardservice[tomcat]]: failed start component [standardengine[tomcat]]: child container failed during start -> [help 1] org.apache.maven.lifecycle.lifecycleexecutionexception: failed execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2-snapshot:run (default-cli) on project pay-war: not start tomcat
any pointers on how resolve ?
update:
here full log of mvn -x tomcat7:run
:
info: initializing protocolhandler ["http-bio-8080"] aug 8, 2013 9:42:05 org.apache.coyote.abstractprotocol init severe: failed initialize end point associated protocolhandler ["http-bio-8080"] java.net.bindexception: address in use: jvm_bind <null>:8080 @ org.apache.tomcat.util.net.jioendpoint.bind(jioendpoint.java:406) @ org.apache.tomcat.util.net.abstractendpoint.init(abstractendpoint.java:610) @ org.apache.coyote.abstractprotocol.init(abstractprotocol.java:429) @ org.apache.coyote.http11.abstracthttp11jsseprotocol.init(abstracthttp11jsseprotocol.java:119) @ org.apache.catalina.connector.connector.initinternal(connector.java:981) @ org.apache.catalina.util.lifecyclebase.init(lifecyclebase.java:102) @ org.apache.catalina.core.standardservice.initinternal(standardservice.java:559) @ org.apache.catalina.util.lifecyclebase.init(lifecyclebase.java:102) @ org.apache.catalina.core.standardserver.initinternal(standardserver.java:814) @ org.apache.catalina.util.lifecyclebase.init(lifecyclebase.java:102) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:139) @ org.apache.catalina.startup.tomcat.start(tomcat.java:335) @ org.apache.tomcat.maven.plugin.tomcat7.run.abstractrunmojo.startcontainer(abstractrunmojo.java:1093) @ org.apache.tomcat.maven.plugin.tomcat7.run.abstractrunmojo.execute(abstractrunmojo.java:514) @ org.apache.maven.plugin.defaultbuildpluginmanager.executemojo(defaultbuildpluginmanager.java:101) @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:209) @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:153) @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:145) @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproject(lifecyclemodulebuilder.java:84) @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproject(lifecyclemodulebuilder.java:59) @ org.apache.maven.lifecycle.internal.lifecyclestarter.singlethreadedbuild(lifecyclestarter.java:183) @ org.apache.maven.lifecycle.internal.lifecyclestarter.execute(lifecyclestarter.java:161) @ org.apache.maven.defaultmaven.doexecute(defaultmaven.java:320) @ org.apache.maven.defaultmaven.execute(defaultmaven.java:156) @ org.apache.maven.cli.mavencli.execute(mavencli.java:537) @ org.apache.maven.cli.mavencli.domain(mavencli.java:196) @ org.apache.maven.cli.mavencli.main(mavencli.java:141) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) @ java.lang.reflect.method.invoke(method.java:597) @ org.codehaus.plexus.classworlds.launcher.launcher.launchenhanced(launcher.java:290) @ org.codehaus.plexus.classworlds.launcher.launcher.launch(launcher.java:230) @ org.codehaus.plexus.classworlds.launcher.launcher.mainwithexitcode(launcher.java:409) @ org.codehaus.plexus.classworlds.launcher.launcher.main(launcher.java:352) caused by: java.net.bindexception: address in use: jvm_bind @ java.net.plainsocketimpl.socketbind(native method) @ java.net.plainsocketimpl.bind(plainsocketimpl.java:383) @ java.net.serversocket.bind(serversocket.java:328) @ java.net.serversocket.<init>(serversocket.java:194) @ java.net.serversocket.<init>(serversocket.java:150) @ org.apache.tomcat.util.net.defaultserversocketfactory.createsocket(defaultserversocketfactory.java:49) @ org.apache.tomcat.util.net.jioendpoint.bind(jioendpoint.java:393) ... 34 more aug 8, 2013 9:42:05 org.apache.catalina.core.standardservice initinternal severe: failed initialize connector [connector[http/1.1-8080]] org.apache.catalina.lifecycleexception: failed initialize component [connector[http/1.1-8080]] @ org.apache.catalina.util.lifecyclebase.init(lifecyclebase.java:106) @ org.apache.catalina.core.standardservice.initinternal(standardservice.java:559) @ org.apache.catalina.util.lifecyclebase.init(lifecyclebase.java:102) @ org.apache.catalina.core.standardserver.initinternal(standardserver.java:814) @ org.apache.catalina.util.lifecyclebase.init(lifecyclebase.java:102) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:139) @ org.apache.catalina.startup.tomcat.start(tomcat.java:335) @ org.apache.tomcat.maven.plugin.tomcat7.run.abstractrunmojo.startcontainer(abstractrunmojo.java:1093) @ org.apache.tomcat.maven.plugin.tomcat7.run.abstractrunmojo.execute(abstractrunmojo.java:514) @ org.apache.maven.plugin.defaultbuildpluginmanager.executemojo(defaultbuildpluginmanager.java:101) @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:209) @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproject(lifecyclemodulebuilder.java:84) @ org.apache.maven.lifecycle.internal.lifecyclestarter.singlethreadedbuild(lifecyclestarter.java:183) @ org.apache.maven.lifecycle.internal.lifecyclestarter.execute(lifecyclestarter.java:161) @ org.apache.maven.defaultmaven.doexecute(defaultmaven.java:320) @ org.apache.maven.defaultmaven.execute(defaultmaven.java:156) @ org.apache.maven.cli.mavencli.execute(mavencli.java:537) @ org.apache.maven.cli.mavencli.domain(mavencli.java:196) @ org.apache.maven.cli.mavencli.main(mavencli.java:141) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) @ java.lang.reflect.method.invoke(method.java:597) @ org.codehaus.plexus.classworlds.launcher.launcher.launchenhanced(launcher.java:290) @ org.codehaus.plexus.classworlds.launcher.launcher.launch(launcher.java:230) @ org.codehaus.plexus.classworlds.launcher.launcher.mainwithexitcode(launcher.java:409) @ org.codehaus.plexus.classworlds.launcher.launcher.main(launcher.java:352) caused by: org.apache.catalina.lifecycleexception: protocol handler initialization failed @ org.apache.catalina.connector.connector.initinternal(connector.java:983) @ org.apache.catalina.util.lifecyclebase.init(lifecyclebase.java:102) ... 29 more caused by: java.net.bindexception: address in use: jvm_bind <null>:8080 @ org.apache.tomcat.util.net.jioendpoint.bind(jioendpoint.java:406) @ org.apache.tomcat.util.net.abstractendpoint.init(abstractendpoint.java:610) @ org.apache.coyote.abstractprotocol.init(abstractprotocol.java:429) @ org.apache.coyote.http11.abstracthttp11jsseprotocol.init(abstracthttp11jsseprotocol.java:119) @ org.apache.catalina.connector.connector.initinternal(connector.java:981) ... 30 more caused by: java.net.bindexception: address in use: jvm_bind @ java.net.plainsocketimpl.socketbind(native method) @ java.net.plainsocketimpl.bind(plainsocketimpl.java:383) @ java.net.serversocket.bind(serversocket.java:328) @ java.net.serversocket.<init>(serversocket.java:194) @ java.net.serversocket.<init>(serversocket.java:150) @ org.apache.tomcat.util.net.defaultserversocketfactory.createsocket(defaultserversocketfactory.java:49) @ org.apache.tomcat.util.net.jioendpoint.bind(jioendpoint.java:393) ... 34 more aug 8, 2013 9:42:05 org.apache.catalina.core.standardservice startinternal info: starting service tomcat aug 8, 2013 9:42:05 org.apache.catalina.core.standardengine startinternal info: starting servlet engine: apache tomcat/7.0.42 aug 8, 2013 9:42:20 org.apache.catalina.core.containerbase startinternal severe: child container failed during start java.util.concurrent.executionexception: org.apache.catalina.lifecycleexception: failed start component [standardengine[tomcat].standardhost[localhost].standardcontext[/pay-war]] @ java.util.concurrent.futuretask$sync.innerget(futuretask.java:222) @ java.util.concurrent.futuretask.get(futuretask.java:83) @ org.apache.catalina.core.containerbase.startinternal(containerbase.java:1123) @ org.apache.catalina.core.standardhost.startinternal(standardhost.java:800) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1559) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1549) @ java.util.concurrent.futuretask$sync.innerrun(futuretask.java:303) @ java.util.concurrent.futuretask.run(futuretask.java:138) @ java.util.concurrent.threadpoolexecutor$worker.runtask(threadpoolexecutor.java:895) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:918) @ java.lang.thread.run(thread.java:662) caused by: org.apache.catalina.lifecycleexception: failed start component [standardengine[tomcat].standardhost[localhost].standardcontext[/pay-war]] @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:154) ... 7 more caused by: java.lang.linkageerror: loader constraint violation: loader (instance of org/apache/catalina/loader/webappclassloader) initiated loading different type name "javax/servlet/servletcontext" @ java.lang.classloader.defineclass1(native method) @ java.lang.classloader.defineclasscond(classloader.java:631) @ java.lang.classloader.defineclass(classloader.java:615) @ java.security.secureclassloader.defineclass(secureclassloader.java:141) @ java.net.urlclassloader.defineclass(urlclassloader.java:283) @ java.net.urlclassloader.access$000(urlclassloader.java:58) @ java.net.urlclassloader$1.run(urlclassloader.java:197) @ java.security.accesscontroller.doprivileged(native method) @ java.net.urlclassloader.findclass(urlclassloader.java:190) @ org.apache.catalina.loader.webappclassloader.findclass(webappclassloader.java:1190) @ org.apache.catalina.loader.webappclassloader.loadclass(webappclassloader.java:1681) @ org.apache.catalina.loader.webappclassloader.loadclass(webappclassloader.java:1559) @ org.springframework.web.springservletcontainerinitializer.onstartup(springservletcontainerinitializer.java:172) @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5423) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) ... 7 more aug 8, 2013 9:42:20 org.apache.catalina.core.containerbase startinternal severe: child container failed during start java.util.concurrent.executionexception: org.apache.catalina.lifecycleexception: failed start component [standardengine[tomcat].standardhost[localhost]] @ java.util.concurrent.futuretask$sync.innerget(futuretask.java:222) @ java.util.concurrent.futuretask.get(futuretask.java:83) @ org.apache.catalina.core.containerbase.startinternal(containerbase.java:1123) @ org.apache.catalina.core.standardengine.startinternal(standardengine.java:302) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) @ org.apache.catalina.core.standardservice.startinternal(standardservice.java:443) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) @ org.apache.catalina.core.standardserver.startinternal(standardserver.java:732) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) @ org.apache.catalina.startup.tomcat.start(tomcat.java:335) @ org.apache.tomcat.maven.plugin.tomcat7.run.abstractrunmojo.startcontainer(abstractrunmojo.java:1093) @ org.apache.tomcat.maven.plugin.tomcat7.run.abstractrunmojo.execute(abstractrunmojo.java:514) @ org.apache.maven.plugin.defaultbuildpluginmanager.executemojo(defaultbuildpluginmanager.java:101) @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:209) @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproject(lifecyclemodulebuilder.java:84) @ org.apache.maven.lifecycle.internal.lifecyclestarter.singlethreadedbuild(lifecyclestarter.java:183) @ org.apache.maven.lifecycle.internal.lifecyclestarter.execute(lifecyclestarter.java:161) @ org.apache.maven.defaultmaven.doexecute(defaultmaven.java:320) @ org.apache.maven.defaultmaven.execute(defaultmaven.java:156) @ org.apache.maven.cli.mavencli.execute(mavencli.java:537) @ org.apache.maven.cli.mavencli.domain(mavencli.java:196) @ org.apache.maven.cli.mavencli.main(mavencli.java:141) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) @ java.lang.reflect.method.invoke(method.java:597) @ org.codehaus.plexus.classworlds.launcher.launcher.launchenhanced(launcher.java:290) @ org.codehaus.plexus.classworlds.launcher.launcher.launch(launcher.java:230) @ org.codehaus.plexus.classworlds.launcher.launcher.mainwithexitcode(launcher.java:409) @ org.codehaus.plexus.classworlds.launcher.launcher.main(launcher.java:352) caused by: org.apache.catalina.lifecycleexception: failed start component [standardengine[tomcat].standardhost[localhost]] @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:154) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1559) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1549) @ java.util.concurrent.futuretask$sync.innerrun(futuretask.java:303) @ java.util.concurrent.futuretask.run(futuretask.java:138) @ java.util.concurrent.threadpoolexecutor$worker.runtask(threadpoolexecutor.java:895) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:918) @ java.lang.thread.run(thread.java:662) caused by: org.apache.catalina.lifecycleexception: child container failed during start @ org.apache.catalina.core.containerbase.startinternal(containerbase.java:1131) @ org.apache.catalina.core.standardhost.startinternal(standardhost.java:800) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) ... 7 more [info] ------------------------------------------------------------------------ [info] reactor summary: [info] [info] payservice base project ........................... success [5.389s] [info] payservice configuration .......................... success [0.908s] [info] payservice commons ................................ success [9.533s] [info] payservice core components ........................ success [1.969s] [info] payservice api .................................... success [1.198s] [info] payservice war builder ............................ failure [16.758s] [info] ------------------------------------------------------------------------ [info] build failure [info] ------------------------------------------------------------------------ [info] total time: 40.903s [info] finished at: thu aug 08 09:42:20 pdt 2013 [info] final memory: 35m/565m [info] ------------------------------------------------------------------------ [error] failed execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2-snapshot:run (default-cli) on project pay-war: not start tomcat: failed start component [standardserver[-1]]: failed start component [standardservice[tomcat]]: failed start component [standardengine[tomcat]]: child container failed during start -> [help 1] org.apache.maven.lifecycle.lifecycleexecutionexception: failed execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2-snapshot:run (default-cli) on project pay-war: not start tomcat @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:217) @ org.apache.maven.lifecycle.internal.lifecyclemodulebuilder.buildproject(lifecyclemodulebuilder.java:84) @ org.apache.maven.lifecycle.internal.lifecyclestarter.singlethreadedbuild(lifecyclestarter.java:183) @ org.apache.maven.lifecycle.internal.lifecyclestarter.execute(lifecyclestarter.java:161) @ org.apache.maven.defaultmaven.doexecute(defaultmaven.java:320) @ org.apache.maven.defaultmaven.execute(defaultmaven.java:156) @ org.apache.maven.cli.mavencli.execute(mavencli.java:537) @ org.apache.maven.cli.mavencli.domain(mavencli.java:196) @ org.apache.maven.cli.mavencli.main(mavencli.java:141) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) @ java.lang.reflect.method.invoke(method.java:597) @ org.codehaus.plexus.classworlds.launcher.launcher.launchenhanced(launcher.java:290) @ org.codehaus.plexus.classworlds.launcher.launcher.launch(launcher.java:230) @ org.codehaus.plexus.classworlds.launcher.launcher.mainwithexitcode(launcher.java:409) @ org.codehaus.plexus.classworlds.launcher.launcher.main(launcher.java:352) caused by: org.apache.maven.plugin.mojoexecutionexception: not start tomcat @ org.apache.tomcat.maven.plugin.tomcat7.run.abstractrunmojo.execute(abstractrunmojo.java:522) @ org.apache.maven.plugin.defaultbuildpluginmanager.executemojo(defaultbuildpluginmanager.java:101) @ org.apache.maven.lifecycle.internal.mojoexecutor.execute(mojoexecutor.java:209) ... 19 more caused by: org.apache.catalina.lifecycleexception: failed start component [standardserver[-1]] @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:154) @ org.apache.catalina.startup.tomcat.start(tomcat.java:335) @ org.apache.tomcat.maven.plugin.tomcat7.run.abstractrunmojo.startcontainer(abstractrunmojo.java:1093) @ org.apache.tomcat.maven.plugin.tomcat7.run.abstractrunmojo.execute(abstractrunmojo.java:514) ... 21 more caused by: org.apache.catalina.lifecycleexception: failed start component [standardservice[tomcat]] @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:154) @ org.apache.catalina.core.standardserver.startinternal(standardserver.java:732) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) ... 24 more caused by: org.apache.catalina.lifecycleexception: failed start component [standardengine[tomcat]] @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:154) @ org.apache.catalina.core.standardservice.startinternal(standardservice.java:443) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) ... 26 more caused by: org.apache.catalina.lifecycleexception: child container failed during start @ org.apache.catalina.core.containerbase.startinternal(containerbase.java:1131) @ org.apache.catalina.core.standardengine.startinternal(standardengine.java:302) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) ... 28 more [error] [error] [error] more information errors , possible solutions, please read following articles: [error] [help 1] http://cwiki.apache.org/confluence/display/maven/mojoexecutionexception [error] [error] after correcting problems, can resume build command [error] mvn <goals> -rf :pay-war
update 2:
i ran mvn verify
: got error
[info] <<< tomcat7-maven-plugin:2.2-snapshot:run (tomcat-run) @ pay-war <<< [info] [info] --- tomcat7-maven-plugin:2.2-snapshot:run (tomcat-run) @ pay-war --- [info] running war on http://localhost:8080c:\pay-service-master\pay-service\pay-root\pay-war\target\pay-war-105.1.0-snapshot.war [info] using existing tomcat server configuration @ c:\pay-service-master\pay-service\pay-root\pay-war\target\tomcat [info] create webapp contextpath: c:\pay-service-master\pay-service\pay-root\pay-war\target\pay-war-105.1.0-snapshot.war aug 8, 2013 8:45:31 pm org.apache.catalina.core.standardcontext setpath warning: context path must either empty string or start '/'. path [c:\pay-service-master\pay-service\pay-root\pay-war\target\pay-war-105.1.0-snapshot.war] not meet these criteria , has been changed [/c:\pay-service-master\pay-service\pay-root\pay-war\target\pay-war-105.1.0-snapshot.war] aug 8, 2013 8:45:31 pm org.apache.coyote.abstractprotocol init info: initializing protocolhandler ["http-bio-8080"] aug 8, 2013 8:45:31 pm org.apache.catalina.core.standardservice startinternal info: starting service tomcat aug 8, 2013 8:45:31 pm org.apache.catalina.core.standardengine startinternal info: starting servlet engine: apache tomcat/7.0.42 aug 8, 2013 8:45:31 pm org.apache.catalina.util.lifecyclembeanbase register warning: failed register object [standardengine[tomcat].standardhost[localhost].standardcontext[c:\pay-service-master\pay-service\pay-root\pay-war\target\pay-war-105.1.0-snapshot.war]] name [standardengine[tomcat].standardhost[localhost].standardcontext[c:\pay-service-master\pay-service\pay-root\pay-war\target\pay-war-105.1.0-snapshot.war]] during component initialisation javax.management.malformedobjectnameexception: invalid character ':' in value part of property @ javax.management.objectname.construct(objectname.java:602) @ javax.management.objectname.<init>(objectname.java:1403) @ org.apache.catalina.util.lifecyclembeanbase.register(lifecyclembeanbase.java:156) @ org.apache.catalina.util.lifecyclembeanbase.initinternal(lifecyclembeanbase.java:61) @ org.apache.catalina.core.containerbase.initinternal(containerbase.java:1084) @ org.apache.catalina.core.standardcontext.initinternal(standardcontext.java:6448) @ org.apache.catalina.util.lifecyclebase.init(lifecyclebase.java:102) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:139) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1559) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1549) @ java.util.concurrent.futuretask$sync.innerrun(futuretask.java:303) @ java.util.concurrent.futuretask.run(futuretask.java:138) @ java.util.concurrent.threadpoolexecutor$worker.runtask(threadpoolexecutor.java:895) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:918) @ java.lang.thread.run(thread.java:662) aug 8, 2013 8:45:31 pm org.apache.catalina.core.standardcontext resourcesstart severe: error starting static resources javax.management.malformedobjectnameexception: invalid character ':' in value part of property @ javax.management.objectname.construct(objectname.java:602) @ javax.management.objectname.<init>(objectname.java:1403) @ org.apache.catalina.core.standardcontext.resourcesstart(standardcontext.java:5085) @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5235) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1559) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1549) @ java.util.concurrent.futuretask$sync.innerrun(futuretask.java:303) @ java.util.concurrent.futuretask.run(futuretask.java:138) @ java.util.concurrent.threadpoolexecutor$worker.runtask(threadpoolexecutor.java:895) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:918) @ java.lang.thread.run(thread.java:662) aug 8, 2013 8:45:31 pm org.apache.catalina.core.standardcontext startinternal severe: error in resourcestart() aug 8, 2013 8:45:31 pm org.apache.catalina.core.standardcontext postworkdirectory warning: failed create work directory [c:\pay-service-master\pay-service\pay-root\pay-war\target\tomcat\work\tomcat\localhost\c:_pay-service-master_pay-service_pay-root_pay-war_target_pay-war-105.1.0-snapshot.war] context [c:\pay-service-master\pay-service\pay-root\pay-war\target\pay-war-105.1.0-snapshot.war] aug 8, 2013 8:45:31 pm org.apache.catalina.core.standardcontext startinternal severe: error getconfigured aug 8, 2013 8:45:31 pm org.apache.catalina.core.standardcontext startinternal severe: context [c:\pay-service-master\pay-service\pay-root\pay-war\target\pay-war-105.1.0-snapshot.war] startup failed due previous errors aug 8, 2013 8:45:31 pm org.apache.coyote.abstractprotocol start info: starting protocolhandler ["http-bio-8080"] [info] [info] --- tomcat7-maven-plugin:2.2-snapshot:shutdown (tomcat-shutdown) @ pay-war --- aug 8, 2013 8:45:31 pm org.apache.coyote.abstractprotocol pause info: pausing protocolhandler ["http-bio-8080"] aug 8, 2013 8:45:32 pm org.apache.catalina.core.standardservice stopinternal info: stopping service tomcat aug 8, 2013 8:45:32 pm org.apache.coyote.abstractprotocol stop info: stopping protocolhandler ["http-bio-8080"] [info] [info] --- maven-source-plugin:2.2.1:jar-no-fork (attach-sources) @ pay-war ---
if bind tomcat7:run phase pre-integration-test, don't need use mvn tomcat7:run. run: mvn verify. tomcat started in phase pre-integration-test tests run in integration-test phase. , voilĂ :-)
Comments
Post a Comment