ERROR: java.lang.IllegalStateException , 2022-04-06

sunj - Nov 16 '22 - - Dev Community

1. 에러사항
페이지를 띄우기 위해 서버를 가동하자 404 에러가 발생

java.lang.IllegalStateException: 자식 컨테이너를 시작하는 중 오류 발생

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:729)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:698)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:696)

at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:690)

at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1889)

at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)

at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)

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

at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)

at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:583)

at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:473)

at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1618)

at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)

at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)

at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)

at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)

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

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

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

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

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

at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)

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

at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)

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

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

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

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

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

at org.apache.catalina.startup.Catalina.start(Catalina.java:772)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.base/java.lang.reflect.Method.invoke(Method.java:566)

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: 구성요소 [org.apache.catalina.webresources.JarResourceSet@68ead359]을(를) 초기화하지 못했습니다.

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

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:139)

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

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

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

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

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

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

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)

... 37 more

Caused by: java.lang.IllegalArgumentException: java.util.zip.ZipException: ZipFile invalid LOC header (bad signature)

at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:143)

at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:136)

... 44 more

Caused by: java.util.zip.ZipException: ZipFile invalid LOC header (bad signature)

at java.base/java.util.zip.ZipFile$ZipFileInputStream.initDataOffset(ZipFile.java:1000)

at java.base/java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:1010)

at java.base/java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:468)

at java.base/java.util.zip.InflaterInputStream.read(InflaterInputStream.java:159)

at java.base/java.io.InputStream.readNBytes(InputStream.java:490)

at java.base/java.util.jar.JarFile.getBytes(JarFile.java:807)

at java.base/java.util.jar.JarFile.getManifestFromReference(JarFile.java:421)

at java.base/java.util.jar.Jar
Enter fullscreen mode Exit fullscreen mode

2. 시도방안

2-1. 프로젝트 Clean

상단 메뉴 - 'Project' - 'Clean' - All projects 또는 해당 프로젝트 선택

2-2. Tomcat Server Clean

서버 선택 후 우클릭 – Clean

2-3. Maven update

Project Explorer > 프로젝트 우클릭 > Maven > Update Project

3. 해결방안

3-1. Maven 저장소 초기화

정부전자프레임워크 - Window - Properties - Maven - User settings-Local Repository에서 위치 확인

C:\Users\username.m2\repository 아래에 있는 폴더 삭제

삭제 후 자동으로 다시 다운로드 진행

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player