CODEDRAGON ㆍDevelopment/JSP
Error-Server Tomcat v7.0 Server at localhost failed to start.
다른 해결방법
http://codedragon.tistory.com/1352
http://codedragon.tistory.com/4613
오류 메시지
Server Tomcat v7.0 Server at localhost failed to start. |
각: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ServletMain]] at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:192) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1122) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:819) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1574) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1564) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ServletMain]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) ... 6 more Caused by: java.lang.IllegalArgumentException: The servlets named [ServletInitParamEx01] and [com.ch05object.ServletInitParamEx01] are both mapped to the url-pattern [/ServletInitParamEx01] which is not permitted at org.apache.catalina.deploy.WebXml.addServletMapping(WebXml.java:293) at org.apache.catalina.startup.ContextConfig.processAnnotationWebServlet(ContextConfig.java:2428) at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2103) at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2064) at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2057) at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2057) at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1304) at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:889) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5405) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 6 more
12월 06, 2016 5:20:35 오전 org.apache.catalina.core.ContainerBase startInternal 심각: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]] at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:192) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1122) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300) 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:739) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.startup.Catalina.start(Catalina.java:689) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:428) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1574) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1564) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 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:1130) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:819) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 6 more
12월 06, 2016 5:20:35 오전 org.apache.catalina.startup.Catalina start 심각: The required Server component failed to start so Tomcat is unable to start. org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) at org.apache.catalina.startup.Catalina.start(Catalina.java:689) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:428) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:739) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 7 more Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 9 more Caused by: org.apache.catalina.LifecycleException: A child container failed during start at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1130) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:300) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 11 more
12월 06, 2016 5:20:35 오전 org.apache.coyote.AbstractProtocol pause 정보: Pausing ProtocolHandler ["http-bio-8080"] 12월 06, 2016 5:20:35 오전 org.apache.coyote.AbstractProtocol pause 정보: Pausing ProtocolHandler ["ajp-bio-8009"] 12월 06, 2016 5:20:35 오전 org.apache.catalina.core.StandardService stopInternal 정보: Stopping service Catalina 12월 06, 2016 5:20:35 오전 org.apache.coyote.AbstractProtocol destroy 정보: Destroying ProtocolHandler ["http-bio-8080"] 12월 06, 2016 5:20:35 오전 org.apache.coyote.AbstractProtocol destroy 정보: Destroying ProtocolHandler ["ajp-bio-8009"] |
오류원인
서블릿 매핑이 유일하지 않아 발생할 수 있습니다.
서블릿의 어노테이션 설정과 web.xml에서 서블릿 매핑 정보가 동일할 경우 발생할 수 있습니다.
@WebServlet("/ServletInitParamEx01") public class ServletInitParamEx01 extends HttpServlet {
|
<servlet> <servlet-name>ServletInitParamEx01</servlet-name> <servlet-class>com.ch05object.ServletInitParamEx01</servlet-class> </servlet> <servlet-mapping> <servlet-name>ServletInitParamEx01</servlet-name> <url-pattern>/ServletInitParamEx01</url-pattern> </servlet-mapping> |
해결방법
서블릿 매핑 정보를 유일한 값을 갖도록 수정
@WebServlet("/ServletInitParamEx01") public class ServletInitParamEx01 extends HttpServlet {
|
<servlet> <servlet-name>ServletInitParamEx01</servlet-name> <servlet-class>com.ch05object.ServletInitParamEx01</servlet-class> </servlet> <servlet-mapping> <servlet-name>ServletInitParamEx01</servlet-name> <url-pattern>/InitParamEx01</url-pattern> </servlet-mapping> |
'Development > JSP' 카테고리의 다른 글
include 디렉티브, include 디렉티브 구문, include 디렉티브 활용, 인크루트 파일의 확장자 .jspf (0) | 2017.12.13 |
---|---|
인코딩하는 방법 - Connector 엘리먼트에 URIEncoding 값, Connector 엘리먼트에 useBodyEncodingForURI 값 (0) | 2017.12.12 |
웹 애플리케이션 서버(Web Application Server; WAS), 웹서버 vs WAS (0) | 2017.12.12 |
HTTP 프로토콜, HTTP 메소드(method), Get방식과 Post방식의 전송 차이 도식도, Get 방식, Post 방식 (0) | 2017.12.11 |
서블릿(Servlet) (0) | 2017.12.11 |