spring - Unable to deploy to server running Tomcat -
i trying deploy spring application server running apache tomcat. however, error:
severe: containerbase.addchild: start: … org.apache.catalina.lifecycleexception: failed start component [standardengine[catalina].standardhost[localhost].standardcontext[/ruralivrs]] @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:154) @ org.apache.catalina.core.containerbase.addchildinternal(containerbase.java:901) … @ org.apache.catalina.core.containerbase.addchild(containerbase.java:877) @ org.apache.catalina.core.standardhost.addchild(standardhost.java:633) @ org.apache.catalina.startup.hostconfig.deploywar(hostconfig.java:976) @ org.apache.catalina.startup.hostconfig$deploywar.run(hostconfig.java:1653) @ java.util.concurrent.executors$runnableadapter.call(executors.java:511) @ java.util.concurrent.futuretask.run(futuretask.java:266) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) @ java.lang.thread.run(thread.java:745) caused by: java.lang.nosuchmethoderror: javax.servlet.servletcontext.getvirtualservername()ljava/lang/string; @ org.apache.tomcat.websocket.server.wsservercontainer.(wsservercontainer.java:147) @ org.apache.tomcat.websocket.server.wssci.init(wssci.java:131) @ org.apache.tomcat.websocket.server.wssci.onstartup(wssci.java:47) @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5423) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) ... 10 more
jan 21, 2016 12:16:42 pm org.apache.catalina.startup.hostconfig deploywar … severe: error deploying web application archive /home/ruralivrs/ruralict/apache-tomcat-7.0.42/webapps/ruralivrs.war java.lang.illegalstateexception: containerbase.addchild: start: org.apache.catalina.lifecycleexception: failed start component [standardengine[catalina].standardhost[localhost].standardcontext[/ruralivrs]] @ org.apache.catalina.core.containerbase.addchildinternal(containerbase.java:904) @ org.apache.catalina.core.containerbase.addchild(containerbase.java:877) @ org.apache.catalina.core.standardhost.addchild(standardhost.java:633) @ org.apache.catalina.startup.hostconfig.deploywar(hostconfig.java:976) @ org.apache.catalina.startup.hostconfig$deploywar.run(hostconfig.java:1653) @ java.util.concurrent.executors$runnableadapter.call(executors.java:511) @ java.util.concurrent.futuretask.run(futuretask.java:266) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) @ java.lang.thread.run(thread.java:745)
i unable find solution after searching several hours. since quite new this, appreciated. thank you!
you can find similar problem in this blog post.
the solution simple adding tomcat.version
property maven project’s pom.xml file
<properties> <tomcat.version>7.0.67</tomcat.version> </properties>
the reason explained inside spring boot documentation embedded-servlet-containers.
spring boot defaults tomcat 8
, need tell spring boot target tomcat 7
.
Comments
Post a Comment