Technical NOTE
JEUS 8.0 에서 deploy시 IllegalArgumentException 발생 본문
JEUS 8.0 버전을 사용하면서 deploy시에 JEUS 엔진단에서 IllegalArgumentException 이 발생함
그런데 로그를 보면 에러는 났지만 deploy는 그대로 진행하겠다고 하는데 실제로 deploy는 성공해서 page test는 성공
아래는 JeusServer.log 파일에서 Exception이 발생한 Stack Trace임
[2018.08.08 12:00:21][2] [www-31] [WEB-3911] Processing @HanlesTypes of ServletContainerInitializers failed for the class [module-info.class] but the deployment process will continue.
<<__Exception__>>
java.lang.IllegalArgumentException
at jeus.thirdparty.asm504.ClassReader.<init>(ClassReader.java:170)
at jeus.thirdparty.asm504.ClassReader.<init>(ClassReader.java:153)
at jeus.thirdparty.asm504.ClassReader.<init>(ClassReader.java:424)
at jeus.servlet.listener.HandlesTypesNavigator.getMatchedHandlesTypes(HandlesTypesNavigator.java:105)
at jeus.servlet.listener.HandlesTypesNavigator.navigateClass(HandlesTypesNavigator.java:73)
at jeus.servlet.engine.Context.searchAnnotationsForHandlesTypes(Context.java:1585)
at jeus.servlet.engine.Context.init0(Context.java:772)
at jeus.servlet.engine.Context.init(Context.java:521)
at jeus.servlet.engine.VirtualHost.deployContext(VirtualHost.java:110)
at jeus.servlet.common.WebContainerManager.createAndAddContext(WebContainerManager.java:790)
at jeus.servlet.common.WebContainerManager.deployContext(WebContainerManager.java:765)
at jeus.servlet.deployment.WebModuleDeployer.distribute1(WebModuleDeployer.java:164)
at jeus.deploy.deployer.AbstractDeployer.distribute(AbstractDeployer.java:239)
at jeus.deploy.deployer.DeploymentAdministrator.distribute(DeploymentAdministrator.java:245)
at jeus.server.Server.innerSingleDistribute(Server.java:2580)
at jeus.server.Server.access$1700(Server.java:128)
at jeus.server.Server$InnerDistributeAppTask.run(Server.java:2458)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at jeus.util.pool.ManagedThreadPoolImpl$1.run(ManagedThreadPoolImpl.java:81)
at jeus.util.pool.ManagedThreadPoolImpl$WorkWrapper.run(ManagedThreadPoolImpl.java:279)
at jeus.util.pool.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:1299)
at jeus.util.pool.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:1343)
at java.lang.Thread.run(Thread.java:748)
<<__!Exception__>>
[2018.08.08 12:00:21][2] [www-31] [Deploy-0232] Processing annotations of the class [module-info.class] failed but the deployment process will continue.
<<__Exception__>>
java.lang.IllegalArgumentException
at jeus.thirdparty.asm504.ClassReader.<init>(ClassReader.java:170)
at jeus.thirdparty.asm504.ClassReader.<init>(ClassReader.java:153)
at jeus.thirdparty.asm504.ClassReader.<init>(ClassReader.java:424)
at jeus.deploy.util.CDIClassAnnotationChecker.hasAnnotation(CDIClassAnnotationChecker.java:98)
at jeus.cdi.util.BeanArchiveSniffer.processClassesForImplicitArchive(BeanArchiveSniffer.java:164)
at jeus.cdi.util.BeanArchiveSniffer.processBeanClasses(BeanArchiveSniffer.java:73)
at jeus.cdi.util.CDIScanner.scanJar(CDIScanner.java:204)
at jeus.cdi.util.CDIScanner.scanWar(CDIScanner.java:93)
at jeus.servlet.engine.Context.searchAnnotationsForCDIArchive(Context.java:1759)
at jeus.servlet.engine.Context.init0(Context.java:775)
at jeus.servlet.engine.Context.init(Context.java:521)
at jeus.servlet.engine.VirtualHost.deployContext(VirtualHost.java:110)
at jeus.servlet.common.WebContainerManager.createAndAddContext(WebContainerManager.java:790)
at jeus.servlet.common.WebContainerManager.deployContext(WebContainerManager.java:765)
at jeus.servlet.deployment.WebModuleDeployer.distribute1(WebModuleDeployer.java:164)
at jeus.deploy.deployer.AbstractDeployer.distribute(AbstractDeployer.java:239)
at jeus.deploy.deployer.DeploymentAdministrator.distribute(DeploymentAdministrator.java:245)
at jeus.server.Server.innerSingleDistribute(Server.java:2580)
at jeus.server.Server.access$1700(Server.java:128)
at jeus.server.Server$InnerDistributeAppTask.run(Server.java:2458)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at jeus.util.pool.ManagedThreadPoolImpl$1.run(ManagedThreadPoolImpl.java:81)
at jeus.util.pool.ManagedThreadPoolImpl$WorkWrapper.run(ManagedThreadPoolImpl.java:279)
at jeus.util.pool.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:1299)
at jeus.util.pool.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:1343)
at java.lang.Thread.run(Thread.java:748)
<<__!Exception__>>
위 Stack Trace를 보면 Exception에 대한 자세한 설명이 부족한 부분이 있어 어떻게 해결해야 될지 막막한 부분이 있음
해결책은 의외로 간단핟.
현재 JEUS 8.0 버전은 JDK 1.8 버전을 사용하고 있는데, AP에서 JDK 1.9 로 컴파일된 class파일이나 jar 파일이 있을 경우 위 에러가 발생한다
작성일 : 2018년 8월 14일
'미들웨어 > JEUS' 카테고리의 다른 글
SpringFramework 버전별 JavaEE(JakartaEE) 버전 정리 (0) | 2024.09.24 |
---|---|
전자정부 표준프레임워크 4.2 - JEUS 호환성 (0) | 2024.09.05 |
JEUS 버전별 JDK 호환 버전 목록 (0) | 2024.09.04 |
JEUS 8.5 webadmin 접속을 위한 context-path 수정 방법 (0) | 2024.09.04 |
[JEUS] WAS에서 smap 파일 생성하지 않도록 설정하기 (0) | 2018.08.02 |