Correção para Bug no Oracle I/PM

Fiz a instalação do Oracle ECM no Linux e um dos seus componentes o Oracle I/PM estava com defeito. O arquivo imaging-ui.war dentro do imaging.ear estava corrompido e com CRC inválido por algum motivo que eu desconheço. O erro no console foi o seguinte:

weblogic.management.DeploymentException: invalid entry CRC (expected 0x4aecad02 but got 0xf805ccae)
 at weblogic.application.internal.EarDeploymentFactory.findOrCreateComponentMBeans(EarDeploymentFactory.java:193)
 at weblogic.application.internal.MBeanFactoryImpl.findOrCreateComponentMBeans(MBeanFactoryImpl.java:48)
 at weblogic.application.internal.MBeanFactoryImpl.createComponentMBeans(MBeanFactoryImpl.java:110)
 at weblogic.application.internal.MBeanFactoryImpl.initializeMBeans(MBeanFactoryImpl.java:76)
 at weblogic.management.deploy.internal.MBeanConverter.createApplicationMBean(MBeanConverter.java:89)
 Truncated. see log file for complete stacktrace
Caused By: java.util.zip.ZipException: invalid entry CRC (expected 0x4aecad02 but got 0xf805ccae)
 at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:396)
 at java.util.zip.ZipInputStream.read(ZipInputStream.java:156)
 at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:100)
 at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:78)
 at weblogic.application.internal.WebServiceUtils.isWebService(WebServiceUtils.java:273)
 Truncated. see log file for complete stacktrace
>
<Apr 6, 2011 7:05:51 PM BRT> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'imaging' due to error weblogic.management.DeploymentException: invalid entry CRC (expected 0x4aecad02 but got 0xf805ccae).
weblogic.management.DeploymentException: invalid entry CRC (expected 0x4aecad02 but got 0xf805ccae)
 at weblogic.application.internal.EarDeploymentFactory.findOrCreateComponentMBeans(EarDeploymentFactory.java:193)
 at weblogic.application.internal.MBeanFactoryImpl.findOrCreateComponentMBeans(MBeanFactoryImpl.java:48)
 at weblogic.application.internal.MBeanFactoryImpl.createComponentMBeans(MBeanFactoryImpl.java:110)
 at weblogic.application.internal.MBeanFactoryImpl.initializeMBeans(MBeanFactoryImpl.java:76)
 at weblogic.management.deploy.internal.MBeanConverter.createApplicationMBean(MBeanConverter.java:89)
 Truncated. see log file for complete stacktrace
Caused By: java.util.zip.ZipException: invalid entry CRC (expected 0x4aecad02 but got 0xf805ccae)
 at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:396)
 at java.util.zip.ZipInputStream.read(ZipInputStream.java:156)
 at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:100)
 at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:78)
 at weblogic.application.internal.WebServiceUtils.isWebService(WebServiceUtils.java:273)
 Truncated. see log file for complete stacktrace
>

Recuperei o arquivo, descompactei e regerei o respectivo WAR. Por sorte nenhum arquivo perdido. Substitui adequadamente no EAR. Fiz um update no imaging.ear e iniciei a aplicação novamente. Acessei a aplicação e tudo funcionando adequadamente. Não sei se tive azar ou se é um bug próprio da Oracle. Caso alguém tenha o mesmo problema que eu, estou disponibilizando a versão corrigida que gerei.

Sobre: Thiago Galbiatti Vespa

Thiago Galbiatti Vespa é mestre em Ciências da Computação e Matemática Computacional pela USP e bacharel em Ciências da Computação pela UNESP. Coordenador de projetos do JavaNoroeste, membro do JCP (Java Community Process), consultor Oracle, arquiteto de software de empresas de médio e grande porte, palestrante de vários eventos e colaborador de projetos open source. Possui as certificações: Oracle Certified Master, Java EE 5 Enterprise Architect – Step 1, 2 and 3; Oracle WebCenter Portal 11g Certified Implementation Specialist; Oracle Service Oriented Architecture Infrastructure Implementation Certified Expert; Oracle Certified Professional, Java EE 5 Web Services Developer; Oracle Certified Expert, NetBeans Integrated Development Environment 6.1 Programmer; Oracle Certified Professional, Java Programmer; Oracle Certified Associate, Java SE 5/SE 6