원인 : JSP 작업 중 서버가 실행되지 않고 에러메세지가 떴다.
1. 원인을 알기 위해 Console창 확인
2. '자식 컨테이너를 시작 중 실패했습니다.' 라는 이유 확인
11월 29, 2021 3:16:07 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: 서버 버전 이름: Apache Tomcat/8.5.73
11월 29, 2021 3:16:07 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: Server 빌드 시각: Nov 11 2021 13:14:36 UTC
11월 29, 2021 3:16:07 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: Server 버전 번호: 8.5.73.0
11월 29, 2021 3:16:07 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: 운영체제 이름: Windows 10
11월 29, 2021 3:16:07 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: 운영체제 버전: 10.0
11월 29, 2021 3:16:07 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: 아키텍처: amd64
11월 29, 2021 3:16:07 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: 자바 홈: C:\tools\eclipse-jee-2021-06-R-win32-x86_64\eclipse\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_16.0.1.v20210528-1205\jre
11월 29, 2021 3:16:07 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM 버전: 16.0.1+9-24
11월 29, 2021 3:16:07 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM 벤더: Oracle Corporation
11월 29, 2021 3:16:07 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: C:\workspace\Servlet_JSP\.metadata\.plugins\org.eclipse.wst.server.core\tmp1
11월 29, 2021 3:16:07 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: C:\tools\server\apache-tomcat-8.5.73
11월 29, 2021 3:16:07 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: 명령 행 아규먼트: -Dcatalina.base=C:\workspace\Servlet_JSP\.metadata\.plugins\org.eclipse.wst.server.core\tmp1
11월 29, 2021 3:16:07 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: 명령 행 아규먼트: -Dcatalina.home=C:\tools\server\apache-tomcat-8.5.73
11월 29, 2021 3:16:07 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: 명령 행 아규먼트: -Dwtp.deploy=C:\workspace\Servlet_JSP\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps
11월 29, 2021 3:16:07 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: 명령 행 아규먼트: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
11월 29, 2021 3:16:07 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: 명령 행 아규먼트: --add-opens=java.base/java.io=ALL-UNNAMED
11월 29, 2021 3:16:07 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: 명령 행 아규먼트: --add-opens=java.base/java.util=ALL-UNNAMED
11월 29, 2021 3:16:07 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: 명령 행 아규먼트: --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
11월 29, 2021 3:16:07 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: 명령 행 아규먼트: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
11월 29, 2021 3:16:07 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: 명령 행 아규먼트: -Dfile.encoding=UTF-8
11월 29, 2021 3:16:07 오후 org.apache.catalina.startup.VersionLoggerListener log
INFO: 명령 행 아규먼트: -XX:+ShowCodeDetailsInExceptionMessages
11월 29, 2021 3:16:07 오후 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: 프로덕션 환경들에서 최적의 성능을 제공하는, APR 기반 Apache Tomcat Native 라이브러리가, 다음 java.library.path에서 발견되지 않습니다: [C:\tools\eclipse-jee-2021-06-R-win32-x86_64\eclipse\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_16.0.1.v20210528-1205\jre\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/tools/eclipse-jee-2021-06-R-win32-x86_64/eclipse//plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_16.0.1.v20210528-1205/jre/bin/server;C:/tools/eclipse-jee-2021-06-R-win32-x86_64/eclipse//plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_16.0.1.v20210528-1205/jre/bin;C:\oraclexe\app\oracle\product\11.2.0\server\bin;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\ojdkbuild\java-1.8.0-openjdk-1.8.0.302-1\bin;C:\Program Files (x86)\ojdkbuild\java-1.8.0-openjdk-1.8.0.302-1\jre\bin;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;C:\Program Files\PuTTY\;C:\Program Files (x86)\IncrediBuild;C:\Users\User\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Bandizip\;C:\Users\User\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\Azure Data Studio\bin;C:\tools\eclipse-jee-2021-06-R-win32-x86_64\eclipse;;.]
11월 29, 2021 3:16:07 오후 org.apache.coyote.AbstractProtocol init
INFO: 프로토콜 핸들러 ["http-nio-8080"]을(를) 초기화합니다.
11월 29, 2021 3:16:08 오후 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
INFO: Using a shared selector for servlet write/read
11월 29, 2021 3:16:08 오후 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 633 ms
11월 29, 2021 3:16:08 오후 org.apache.catalina.core.StandardService startInternal
INFO: 서비스 [Catalina]을(를) 시작합니다.
11월 29, 2021 3:16:08 오후 org.apache.catalina.core.StandardEngine startInternal
INFO: 서버 엔진을 시작합니다: [Apache Tomcat/8.5.73]
11월 29, 2021 3:16:08 오후 org.apache.catalina.core.ContainerBase startInternal
SEVERE: 자식 컨테이너를 시작 중 실패했습니다.
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: 구성요소 [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/JSPProject]]을(를) 시작하지 못했습니다.
at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:942)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:833)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
at java.base/java.lang.Thread.run(Thread.java:831)
Caused by: org.apache.catalina.LifecycleException: 구성요소 [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/JSPProject]]을(를) 시작하지 못했습니다.
at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
... 6 more
Caused by: java.lang.IllegalArgumentException: 서블릿 매핑에서 유효하지 않은 <url-pattern> [EL/result]
at org.apache.catalina.core.StandardContext.addServletMappingDecoded(StandardContext.java:3210)
at org.apache.catalina.core.StandardContext.addServletMappingDecoded(StandardContext.java:3196)
at org.apache.catalina.startup.ContextConfig.configureContext(ContextConfig.java:1338)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1115)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:779)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5130)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
... 6 more
11월 29, 2021 3:16:08 오후 org.apache.catalina.core.ContainerBase startInternal
SEVERE: 자식 컨테이너를 시작 중 실패했습니다.
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: 자식 컨테이너를 시작 중 실패했습니다.
at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:942)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:263)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:763)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.startup.Catalina.start(Catalina.java:688)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:476)
Caused by: org.apache.catalina.LifecycleException: 자식 컨테이너를 시작 중 실패했습니다.
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:953)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:833)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
at java.base/java.lang.Thread.run(Thread.java:831)
Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: 구성요소 [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/JSPProject]]을(를) 시작하지 못했습니다.
at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:942)
... 8 more
Caused by: org.apache.catalina.LifecycleException: 구성요소 [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/JSPProject]]을(를) 시작하지 못했습니다.
at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
... 6 more
Caused by: java.lang.IllegalArgumentException: 서블릿 매핑에서 유효하지 않은 <url-pattern> [EL/result]
at org.apache.catalina.core.StandardContext.addServletMappingDecoded(StandardContext.java:3210)
at org.apache.catalina.core.StandardContext.addServletMappingDecoded(StandardContext.java:3196)
at org.apache.catalina.startup.ContextConfig.configureContext(ContextConfig.java:1338)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1115)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:779)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5130)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
... 6 more
11월 29, 2021 3:16:08 오후 org.apache.catalina.startup.Catalina start
SEVERE: 필수 항목인 서버 구성요소가 제대로 시작되지 못하여, Tomcat이 시작될 수 없습니다.
org.apache.catalina.LifecycleException: 자식 컨테이너를 시작 중 실패했습니다.
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:953)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:263)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:763)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.startup.Catalina.start(Catalina.java:688)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:567)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:476)
Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: 자식 컨테이너를 시작 중 실패했습니다.
at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:942)
... 13 more
Caused by: org.apache.catalina.LifecycleException: 자식 컨테이너를 시작 중 실패했습니다.
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:953)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:833)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
at java.base/java.lang.Thread.run(Thread.java:831)
Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: 구성요소 [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/JSPProject]]을(를) 시작하지 못했습니다.
at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:942)
... 8 more
Caused by: org.apache.catalina.LifecycleException: 구성요소 [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/JSPProject]]을(를) 시작하지 못했습니다.
at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
... 6 more
Caused by: java.lang.IllegalArgumentException: 서블릿 매핑에서 유효하지 않은 <url-pattern> [EL/result]
at org.apache.catalina.core.StandardContext.addServletMappingDecoded(StandardContext.java:3210)
at org.apache.catalina.core.StandardContext.addServletMappingDecoded(StandardContext.java:3196)
at org.apache.catalina.startup.ContextConfig.configureContext(ContextConfig.java:1338)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1115)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:779)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5130)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
... 6 more
11월 29, 2021 3:16:08 오후 org.apache.coyote.AbstractProtocol pause
INFO: 프로토콜 핸들러 ["http-nio-8080"]을(를) 일시 정지 중
11월 29, 2021 3:16:08 오후 org.apache.catalina.core.StandardService stopInternal
INFO: 서비스 [Catalina]을(를) 중지시킵니다.
11월 29, 2021 3:16:08 오후 org.apache.coyote.AbstractProtocol destroy
INFO: 프로토콜 핸들러 ["http-nio-8080"]을(를) 소멸시킵니다.
11월 29, 2021 3:16:08 오후 org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalsForLeaks
WARNING: Java 9 환경에서 실행할 때에는, ThreadLocal 메모리 누수 탐지를 위하여, "--add-opens=java.base/java.lang=ALL-UNNAMED"를 JVM 명령 행 아규먼트들에 추가해야 합니다. 또는, ThreadLocal 메모리 누수 탐지를 사용불능 상태로 설정함으로써, 이 경고 메시지를 없앨 수도 있습니다.
11월 29, 2021 3:16:08 오후 org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalsForLeaks
WARNING: Java 9 환경에서 실행할 때에는, ThreadLocal 메모리 누수 탐지를 위하여, "--add-opens=java.base/java.lang=ALL-UNNAMED"를 JVM 명령 행 아규먼트들에 추가해야 합니다. 또는, ThreadLocal 메모리 누수 탐지를 사용불능 상태로 설정함으로써, 이 경고 메시지를 없앨 수도 있습니다.
해결법
: 이클립스 src/main/java의 java 파일에서 annotation한 주소에서 '/' 누락
코드 변경
@WebServlet("EL/result") -> @WebServlet("/EL/result")
반응형
'Backend > Error' 카테고리의 다른 글
[Oracle] 계정 비밀번호 변경하기 (0) | 2022.01.03 |
---|---|
[Spring] Spring Legacy Project할 때 MVC Project 추가하는 법 (0) | 2022.01.02 |
[eclipse ::xml 에러] web-app에서 에러 (0) | 2021.11.29 |
[에러] HTTP 상태 500 - 내부 서버 오류(Internal Server Error) (0) | 2021.11.29 |
ORA-01034 : Oracle not available ) 에러 해결하기 (0) | 2021.11.28 |