728x90
반응형
Tomcat8에서 war 배포시 에러가 났고, 검색해도 원인을 찾지 못했다.
에러코드는 아래.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
25-May-2020 11:03:42.666 ?ш컖 [PROJECT_NAME-startStop-1] 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[PROJECT_NAME].StandardHost[localhost].StandardContext[/PROJECT_NAME]]
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:942)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:882)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1423)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1413)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[PROJECT_NAME].StandardHost[localhost].StandardContext[/PROJECT_NAME]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
... 6 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.webresources.StandardRoot@73b10462]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4885)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5020)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 6 more
Caused by: java.lang.IllegalArgumentException: The main resource set specified [D:\webapp_tomcat\PROJECT_NAME-0.0.1-SNAPSHOT] is not valid
at org.apache.catalina.webresources.StandardRoot.createMainResourceSet(StandardRoot.java:748)
at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:706)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 9 more
|
cs |
원인은 war 파일명 문제.
tomcat설치폴더\conf\server.xml 에 프로젝트의 docBase에서 지정한 war 파일명을 찾을 수 없다라는 것.
정확히는 아래 부분의 이 에러
java.lang.IllegalArgumentException: The main resource set specified [D:\webapp_tomcat\PROJECT_NAME-0.0.1-SNAPSHOT] is not valid
반성하자면.. 난 참 쓸데없는 짓을 했는데. 먼저 tomcat이 돌아가는지 확인했어야 했어....
* 관련글
[tomcat] memory leak 에러 : https://deonggi.tistory.com/26
[Tomcat] java.lang.IllegalArgumentException: The main resource set specified [FOLDER_NAME] ... : https://deonggi.tistory.com/77
[tomcat] war 배포하기, 가상 디렉토리 : https://deonggi.tistory.com/126
728x90
반응형
'코딩 삽질' 카테고리의 다른 글
[weblogic, mysql] weblogic에서 배포시 net.sf.log4jdbc.sql.jdbcapi.DriverSpy 에러 (0) | 2020.07.21 |
---|---|
[Tomcat] java.lang.IllegalArgumentException: The main resource set specified [FOLDER_NAME] is not valid (0) | 2020.05.25 |
[mssql, mybatis] PersistenceException, NullPointerException (0) | 2020.04.28 |
[android] ListView에서 OnItemClickListener가 작동하지 않을때 (0) | 2020.04.06 |
[android] checkbox 박스를 오른쪽으로 (0) | 2020.04.05 |