728x90
반응형
728x90
반응형
728x90
반응형

문제가 된 에러 부분은

java.lang.IllegalArgumentException: The main resource set specified [FOLDER_NAME] is not valid

 

Tomcat8에서 새로운 프로젝트의 war를 배포하려고 했으나 어떤 이유에서인지 창이 껴져 버립니다.

원인은 server.xml에 설정된 가상 디렉토리(virtual directory) 폴더가 존재하지 않았기 때문이더군요.

 

에러로그는 아래와 같습니다.

 

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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
25-May-2020 14:15:36.431 ?ш컖 [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[/uploads]]
                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[/uploads]]
                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@72ac4866]
                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 [C:\uploads\dym\PROJECT_NAME] 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
25-May-2020 14:15:36.435 ?ш컖 [main] 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]]
                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.StandardEngine.startInternal(StandardEngine.java:262)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
                at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
                at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:793)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
                at org.apache.catalina.startup.Catalina.start(Catalina.java:688)
                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:498)
                at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:353)
                at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:493)
        Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[PROJECT_NAME].StandardHost[localhost]]
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
                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: A child container failed during start
                at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:953)
                at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:882)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
                ... 6 more
        Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[PROJECT_NAME].StandardHost[localhost].StandardContext[/uploads]]
                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)
                ... 8 more
        Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[PROJECT_NAME].StandardHost[localhost].StandardContext[/uploads]]
                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@72ac4866]
                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 [C:\uploads\dym\PROJECT_NAME] 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
25-May-2020 14:15:36.437 ?ш컖 [main] 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:167)
                at org.apache.catalina.startup.Catalina.start(Catalina.java:688)
                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:498)
                at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:353)
                at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:493)
        Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[PROJECT_NAME]]
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
                at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:793)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
                ... 7 more
        Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[PROJECT_NAME]]
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
                at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
                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:953)
                at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
                ... 11 more
        Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[PROJECT_NAME].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:942)
                ... 13 more
        Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[PROJECT_NAME].StandardHost[localhost]]
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
                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: A child container failed during start
                at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:953)
                at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:882)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
                ... 6 more
        Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[PROJECT_NAME].StandardHost[localhost].StandardContext[/uploads]]
                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)
                ... 8 more
        Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[PROJECT_NAME].StandardHost[localhost].StandardContext[/uploads]]
                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@72ac4866]
                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 [C:\uploads\FOLDER_NAME] 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

 

 

* 관련글

[tomcat] memory leak 에러 : https://deonggi.tistory.com/26
[Tomcat] 실행에러 : https://deonggi.tistory.com/76
[tomcat] war 배포하기, 가상 디렉토리 : https://deonggi.tistory.com/126

 

 

 

728x90
반응형

+ Recent posts