인프런 커뮤니티 질문&답변

제트브레인님의 프로필 이미지
제트브레인

작성한 질문수

스프링 부트 개념과 활용

내장 웹 서버 이해

음. .. .

작성

·

210

0

tomcat.start(); // 로그는 이부분에서 잡았는데 LifecycleException 으로 던져줬는데...

"C:Program FilesJavajdk1.8.0_191binjava.exe" "-javaagent:C:1DevelopKitIntelliJ IDEA 2018.2.5libidea_rt.jar=59261:C:1DevelopKitIntelliJ IDEA 2018.2.5bin" -Dfile.encoding=UTF-8 -classpath "C:Program FilesJavajdk1.8.0_191jrelibcharsets.jar;C:Program FilesJavajdk1.8.0_191jrelibdeploy.jar;C:Program FilesJavajdk1.8.0_191jrelibextaccess-bridge-64.jar;C:Program FilesJavajdk1.8.0_191jrelibextcldrdata.jar;C:Program FilesJavajdk1.8.0_191jrelibextdnsns.jar;C:Program FilesJavajdk1.8.0_191jrelibextjaccess.jar;C:Program FilesJavajdk1.8.0_191jrelibextjfxrt.jar;C:Program FilesJavajdk1.8.0_191jrelibextlocaledata.jar;C:Program FilesJavajdk1.8.0_191jrelibextnashorn.jar;C:Program FilesJavajdk1.8.0_191jrelibextsunec.jar;C:Program FilesJavajdk1.8.0_191jrelibextsunjce_provider.jar;C:Program FilesJavajdk1.8.0_191jrelibextsunmscapi.jar;C:Program FilesJavajdk1.8.0_191jrelibextsunpkcs11.jar;C:Program FilesJavajdk1.8.0_191jrelibextzipfs.jar;C:Program FilesJavajdk1.8.0_191jrelibjavaws.jar;C:Program FilesJavajdk1.8.0_191jrelibjce.jar;C:Program FilesJavajdk1.8.0_191jrelibjfr.jar;C:Program FilesJavajdk1.8.0_191jrelibjfxswt.jar;C:Program FilesJavajdk1.8.0_191jrelibjsse.jar;C:Program FilesJavajdk1.8.0_191jrelibmanagement-agent.jar;C:Program FilesJavajdk1.8.0_191jrelibplugin.jar;C:Program FilesJavajdk1.8.0_191jrelibresources.jar;C:Program FilesJavajdk1.8.0_191jrelibrt.jar;C:2WorkSpacespringbootinflernSpringbootYeahtargetclasses;C:Userstkaqk.m2repositoryorgspringframeworkbootspring-boot-starter-web2.1.0.RELEASEspring-boot-starter-web-2.1.0.RELEASE.jar;C:Userstkaqk.m2repositoryorgspringframeworkbootspring-boot-starter2.1.0.RELEASEspring-boot-starter-2.1.0.RELEASE.jar;C:Userstkaqk.m2repositoryorgspringframeworkbootspring-boot2.1.0.RELEASEspring-boot-2.1.0.RELEASE.jar;C:Userstkaqk.m2repositoryorgspringframeworkbootspring-boot-autoconfigure2.1.0.RELEASEspring-boot-autoconfigure-2.1.0.RELEASE.jar;C:Userstkaqk.m2repositoryorgspringframeworkbootspring-boot-starter-logging2.1.0.RELEASEspring-boot-starter-logging-2.1.0.RELEASE.jar;C:Userstkaqk.m2repositorychqoslogbacklogback-classic1.2.3logback-classic-1.2.3.jar;C:Userstkaqk.m2repositorychqoslogbacklogback-core1.2.3logback-core-1.2.3.jar;C:Userstkaqk.m2repositoryorgslf4jslf4j-api1.7.25slf4j-api-1.7.25.jar;C:Userstkaqk.m2repositoryorgapachelogginglog4jlog4j-to-slf4j2.11.1log4j-to-slf4j-2.11.1.jar;C:Userstkaqk.m2repositoryorgapachelogginglog4jlog4j-api2.11.1log4j-api-2.11.1.jar;C:Userstkaqk.m2repositoryorgslf4jjul-to-slf4j1.7.25jul-to-slf4j-1.7.25.jar;C:Userstkaqk.m2repositoryjavaxannotationjavax.annotation-api1.3.2javax.annotation-api-1.3.2.jar;C:Userstkaqk.m2repositoryorgspringframeworkspring-core5.1.2.RELEASEspring-core-5.1.2.RELEASE.jar;C:Userstkaqk.m2repositoryorgspringframeworkspring-jcl5.1.2.RELEASEspring-jcl-5.1.2.RELEASE.jar;C:Userstkaqk.m2repositoryorgyamlsnakeyaml1.23snakeyaml-1.23.jar;C:Userstkaqk.m2repositoryorgspringframeworkbootspring-boot-starter-json2.1.0.RELEASEspring-boot-starter-json-2.1.0.RELEASE.jar;C:Userstkaqk.m2repositorycomfasterxmljacksoncorejackson-databind2.9.7jackson-databind-2.9.7.jar;C:Userstkaqk.m2repositorycomfasterxmljacksoncorejackson-annotations2.9.0jackson-annotations-2.9.0.jar;C:Userstkaqk.m2repositorycomfasterxmljacksoncorejackson-core2.9.7jackson-core-2.9.7.jar;C:Userstkaqk.m2repositorycomfasterxmljacksondatatypejackson-datatype-jdk82.9.7jackson-datatype-jdk8-2.9.7.jar;C:Userstkaqk.m2repositorycomfasterxmljacksondatatypejackson-datatype-jsr3102.9.7jackson-datatype-jsr310-2.9.7.jar;C:Userstkaqk.m2repositorycomfasterxmljacksonmodulejackson-module-parameter-names2.9.7jackson-module-parameter-names-2.9.7.jar;C:Userstkaqk.m2repositoryorgspringframeworkbootspring-boot-starter-tomcat2.1.0.RELEASEspring-boot-starter-tomcat-2.1.0.RELEASE.jar;C:Userstkaqk.m2repositoryorgapachetomcatembedtomcat-embed-core9.0.12tomcat-embed-core-9.0.12.jar;C:Userstkaqk.m2repositoryorgapachetomcatembedtomcat-embed-el9.0.12tomcat-embed-el-9.0.12.jar;C:Userstkaqk.m2repositoryorgapachetomcatembedtomcat-embed-websocket9.0.12tomcat-embed-websocket-9.0.12.jar;C:Userstkaqk.m2repositoryorghibernatevalidatorhibernate-validator6.0.13.Finalhibernate-validator-6.0.13.Final.jar;C:Userstkaqk.m2repositoryjavaxvalidationvalidation-api2.0.1.Finalvalidation-api-2.0.1.Final.jar;C:Userstkaqk.m2repositoryorgjbossloggingjboss-logging3.3.2.Finaljboss-logging-3.3.2.Final.jar;C:Userstkaqk.m2repositorycomfasterxmlclassmate1.4.0classmate-1.4.0.jar;C:Userstkaqk.m2repositoryorgspringframeworkspring-web5.1.2.RELEASEspring-web-5.1.2.RELEASE.jar;C:Userstkaqk.m2repositoryorgspringframeworkspring-beans5.1.2.RELEASEspring-beans-5.1.2.RELEASE.jar;C:Userstkaqk.m2repositoryorgspringframeworkspring-webmvc5.1.2.RELEASEspring-webmvc-5.1.2.RELEASE.jar;C:Userstkaqk.m2repositoryorgspringframeworkspring-aop5.1.2.RELEASEspring-aop-5.1.2.RELEASE.jar;C:Userstkaqk.m2repositoryorgspringframeworkspring-context5.1.2.RELEASEspring-context-5.1.2.RELEASE.jar;C:Userstkaqk.m2repositoryorgspringframeworkspring-expression5.1.2.RELEASEspring-expression-5.1.2.RELEASE.jar" com.proj.Application

11월 04, 2018 3:21:37 오후 org.apache.catalina.core.StandardContext setPath

경고: A context path must either be an empty string or start with a '/' and do not end with a '/'. The path [/] does not meet these criteria and has been changed to []

11월 04, 2018 3:21:37 오후 org.apache.catalina.core.StandardService startInternal

정보: Starting service [Tomcat]

11월 04, 2018 3:21:37 오후 org.apache.catalina.core.StandardEngine startInternal

정보: Starting Servlet Engine: Apache Tomcat/9.0.12

11월 04, 2018 3:21:37 오후 org.apache.catalina.core.ContainerBase startInternal

심각: A child container failed during start

java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.webresources.StandardRoot@3d24753a]

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:951)

at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:839)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1429)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)

at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:944)

at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:261)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.startup.Tomcat.start(Tomcat.java:370)

at com.proj.Application.main(Application.java:15)

Caused by: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.webresources.StandardRoot@3d24753a]

at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:441)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)

at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4758)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4893)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1429)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)

at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:944)

... 16 more

Caused by: java.lang.IllegalArgumentException: The main resource set specified [C:2WorkSpacespringbootinflernSpringbootYeahtomcat.8080webapps] is not valid

at org.apache.catalina.webresources.StandardRoot.createMainResourceSet(StandardRoot.java:749)

at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:706)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

... 25 more

11월 04, 2018 3:21:37 오후 org.apache.catalina.core.ContainerBase startInternal

심각: A child container failed during start

java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: A child container failed during start

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:951)

at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:261)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.startup.Tomcat.start(Tomcat.java:370)

at com.proj.Application.main(Application.java:15)

Caused by: org.apache.catalina.LifecycleException: A child container failed during start

at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:960)

at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:839)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1429)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)

at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:944)

... 8 more

Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.webresources.StandardRoot@3d24753a]

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:951)

... 16 more

Caused by: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.webresources.StandardRoot@3d24753a]

at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:441)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)

at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4758)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4893)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1429)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)

at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:944)

... 16 more

Caused by: java.lang.IllegalArgumentException: The main resource set specified [C:2WorkSpacespringbootinflernSpringbootYeahtomcat.8080webapps] is not valid

at org.apache.catalina.webresources.StandardRoot.createMainResourceSet(StandardRoot.java:749)

at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:706)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

... 25 more

Exception in thread "main" org.apache.catalina.LifecycleException: A child container failed during start

at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:960)

at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:261)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.startup.Tomcat.start(Tomcat.java:370)

at com.proj.Application.main(Application.java:15)

Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: A child container failed during start

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:951)

... 8 more

Caused by: org.apache.catalina.LifecycleException: A child container failed during start

at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:960)

at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:839)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1429)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)

at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:944)

... 8 more

Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.webresources.StandardRoot@3d24753a]

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:951)

... 16 more

Caused by: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.webresources.StandardRoot@3d24753a]

at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:441)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)

at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4758)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4893)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1429)

at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)

at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)

at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:944)

... 16 more

Caused by: java.lang.IllegalArgumentException: The main resource set specified [C:2WorkSpacespringbootinflernSpringbootYeahtomcat.8080webapps] is not valid

at org.apache.catalina.webresources.StandardRoot.createMainResourceSet(StandardRoot.java:749)

at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:706)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)

... 25 more

Process finished with exit code 1

어찌된 영문일까요 ... 저는 window 환경이라

netstat -ano | findstr 80 으로 pid 잡아서 죽여보기도 하고 ... ㅠㅠ

답변 2

0

test로 변경해도 에러 발생합니다....

0

백기선님의 프로필 이미지
백기선
지식공유자

context path를 "/" 대신 "test"로 바꿔서 해보세요.

제트브레인님의 프로필 이미지
제트브레인

작성한 질문수

질문하기