问题描述
十一月21,20141:37:47下午org.apache.catalina.core.ContainerBasestartInternal严重:Achildcontainerfailedduringstartjava.util.concurrent.ExecutionException:org.apache.catalina.LifecycleException:Failedtostartcomponent[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/reg]]atjava.util.concurrent.FutureTask.report(UnknownSource)atjava.util.concurrent.FutureTask.get(UnknownSource)atorg.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)atorg.apache.catalina.core.StandardHost.startInternal(StandardHost.java:799)atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)atorg.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)atorg.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)atjava.util.concurrent.FutureTask.run(UnknownSource)atjava.util.concurrent.ThreadPoolExecutor.runWorker(UnknownSource)atjava.util.concurrent.ThreadPoolExecutor$Worker.run(UnknownSource)atjava.lang.Thread.run(UnknownSource)Causedby:org.apache.catalina.LifecycleException:Failedtostartcomponent[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/reg]]atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)...6moreCausedby:java.lang.IllegalArgumentException:Theservletsnamed[HSApexWebCore]and[HSApexWebCore]arebothmappedtotheurl-pattern[/HSApexWebCore]whichisnotpermittedatorg.apache.catalina.deploy.WebXml.addServletMapping(WebXml.java:292)atorg.apache.catalina.deploy.WebXml.merge(WebXml.java:1686)atorg.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1326)atorg.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:873)atorg.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:371)atorg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)atorg.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)atorg.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5355)atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)...6more十一月21,20141:37:47下午org.apache.catalina.core.ContainerBasestartInternal严重:Achildcontainerfailedduringstartjava.util.concurrent.ExecutionException:org.apache.catalina.LifecycleException:Failedtostartcomponent[StandardEngine[Catalina].StandardHost[localhost]]atjava.util.concurrent.FutureTask.report(UnknownSource)atjava.util.concurrent.FutureTask.get(UnknownSource)atorg.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)atorg.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300)atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)atorg.apache.catalina.core.StandardService.startInternal(StandardService.java:443)atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)atorg.apache.catalina.core.StandardServer.startInternal(StandardServer.java:731)atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)atorg.apache.catalina.startup.Catalina.start(Catalina.java:689)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(UnknownSource)atsun.reflect.DelegatingMethodAccessorImpl.invoke(UnknownSource)atjava.lang.reflect.Method.invoke(UnknownSource)atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:321)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)Causedby:org.apache.catalina.LifecycleException:Failedtostartcomponent[StandardEngine[Catalina].StandardHost[localhost]]atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)atorg.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)atorg.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)atjava.util.concurrent.FutureTask.run(UnknownSource)atjava.util.concurrent.ThreadPoolExecutor.runWorker(UnknownSource)atjava.util.concurrent.ThreadPoolExecutor$Worker.run(UnknownSource)atjava.lang.Thread.run(UnknownSource)Causedby:org.apache.catalina.LifecycleException:Achildcontainerfailedduringstartatorg.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)atorg.apache.catalina.core.StandardHost.startInternal(StandardHost.java:799)atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)...6more
解决方案
解决方案二:
Theservletsnamed[HSApexWebCore]and[HSApexWebCore]arebothmappedtotheurl-pattern[/HSApexWebCore]whichisnotpermittedweb.xml中的url-pattern配置中出现了多处HSApexWebCore,楼主检查一下
解决方案三:
我的web.xml中不存在这个名字我这个是一个portal依赖的都是jar包只有jsp页面<?xmlversion="1.0"encoding="UTF-8"?><web-appxmlns:xsi="http://www.w3.org/2001/xmlSchema-instance"xmlns="http://JAVA.sun.com/xml/ns/j2ee"xmlns:jsp="http://java.sun.com/xml/ns/javaee/jsp"xmlns:web="http://xmlns.jcp.org/xml/ns/javaee"xsi:schemaLocation="http://JAVA.sun.com/xml/ns/j2eehttp://JAVA.sun.com/xml/ns/j2ee/web-app_2_4.xsd"version="2.4"><display-name>ArchetypeCreatedWebApplication</display-name><listener><listener-class>org.springframework.web.context.ContextLoaderListener</listener-class></listener><listener><listener-class>org.springframework.web.context.request.RequestContextListener</listener-class></listener><servlet><servlet-name>apex</servlet-name><servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class></servlet><context-param><param-name>contextConfigLocation</param-name><param-value>classpath*:/applicationContext.xml</param-value></context-param><filter><filter-name>encodingFilter</filter-name><filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class><init-param><param-name>encoding</param-name><param-value>UTF-8</param-value></init-param><init-param><param-name>forceEncoding</param-name><param-value>true</param-value></init-param></filter><filter-mapping><filter-name>encodingFilter</filter-name><url-pattern>/*</url-pattern></filter-mapping><servlet-mapping><servlet-name>apex</servlet-name><url-pattern>*.do</url-pattern></servlet-mapping><servlet-mapping><servlet-name>apex</servlet-name><url-pattern>*.ax</url-pattern></servlet-mapping><servlet-mapping><servlet-name>apex</servlet-name><url-pattern>/</url-pattern></servlet-mapping><servlet><servlet-name>CXFServlet</servlet-name><servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class></servlet><servlet-mapping><servlet-name>CXFServlet</servlet-name><url-pattern>/services/*</url-pattern></servlet-mapping><filter><filter-name>shiroFilter</filter-name><filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class><async-supported>true</async-supported><init-param><param-name>targetFilterLifecycle</param-name><param-value>true</param-value></init-param></filter><filter-mapping><filter-name>shiroFilter</filter-name><url-pattern>/*</url-pattern><dispatcher>REQUEST</dispatcher></filter-mapping><jsp-config><taglib><taglib-uri>/apexestaglib</taglib-uri><taglib-location>/WEB-INF/tag/apex/form/apexeslib.tld</taglib-location></taglib></jsp-config></web-app>
解决方案四:
这么说还真看不出来错误在哪里。你的tomcatwebapps下面放了几个工程呢?将tomcat停掉,删除logs,temp和work这三个目录下面的文件重启tomcat,看看是否还报这个错误
解决方案五:
直接重新解压一个小猫吧