0 Replies Latest reply on May 22, 2012 10:40 AM by Nikhil Patil

    error in opening zip file on JBoss 7.2.0 Alpha 1 with richfaces 4.2.1 jars

    Nikhil Patil Newbie

      I'm trying to deploy richfaces web application on Jboss 7.2.0 Alpha1. On deployment, the console shows following stacktrace

       

      19:54:35,566 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-3) Unable to process annotations for url, vfs:/content/myapp.war/WEB-INF/lib/richfaces-core-impl-4.2.1.Final.jar/META-INF/faces-config.xml.  Reason: java.util.zip.ZipException: error in opening zip file
      19:54:35,566 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-3) : java.util.zip.ZipException: error in opening zip file
                at java.util.zip.ZipFile.open(Native Method) [rt.jar:1.6.0_24]
                at java.util.zip.ZipFile.<init>(ZipFile.java:127) [rt.jar:1.6.0_24]
                at java.util.jar.JarFile.<init>(JarFile.java:135) [rt.jar:1.6.0_24]
                at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:67) [rt.jar:1.6.0_24]
                at sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:214) [rt.jar:1.6.0_24]
                at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.6.0_24]
                at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:198) [rt.jar:1.6.0_24]
                at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:50) [rt.jar:1.6.0_24]
                at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:70) [rt.jar:1.6.0_24]
                at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:104) [rt.jar:1.6.0_24]
                at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:71) [rt.jar:1.6.0_24]
                at com.sun.faces.config.AnnotationScanner.processClasspath(AnnotationScanner.java:302) [jsf-impl.jar:2.0.4-b09]
                at com.sun.faces.config.AnnotationScanner.getAnnotatedClasses(AnnotationScanner.java:221) [jsf-impl.jar:2.0.4-b09]
                at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:768) [jsf-impl.jar:2.0.4-b09]
                at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:739) [jsf-impl.jar:2.0.4-b09]
                at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_24]
      

       

       

      and

       

      19:54:35,603 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-3) Unable to process annotations for url, vfs:/content/myapp.war/WEB-INF/lib/richfaces-components-ui-4.2.1.Final.jar/META-INF/faces-config.xml.  Reason: java.util.zip.ZipException: error in opening zip file
      19:54:35,604 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-3) : java.util.zip.ZipException: error in opening zip file
                at java.util.zip.ZipFile.open(Native Method) [rt.jar:1.6.0_24]
                at java.util.zip.ZipFile.<init>(ZipFile.java:127) [rt.jar:1.6.0_24]
                at java.util.jar.JarFile.<init>(JarFile.java:135) [rt.jar:1.6.0_24]
                at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:67) [rt.jar:1.6.0_24]
                at sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:214) [rt.jar:1.6.0_24]
                at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.6.0_24]
                at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:198) [rt.jar:1.6.0_24]
                at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:50) [rt.jar:1.6.0_24]
                at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:70) [rt.jar:1.6.0_24]
                at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:104) [rt.jar:1.6.0_24]
                at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:71) [rt.jar:1.6.0_24]
                at com.sun.faces.config.AnnotationScanner.processClasspath(AnnotationScanner.java:302) [jsf-impl.jar:2.0.4-b09]
                at com.sun.faces.config.AnnotationScanner.getAnnotatedClasses(AnnotationScanner.java:221) [jsf-impl.jar:2.0.4-b09]
                at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:768) [jsf-impl.jar:2.0.4-b09]
                at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:739) [jsf-impl.jar:2.0.4-b09]
                at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_24]
                at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_24]
                at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:332) [jsf-impl.jar:2.0.4-b09]
                at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:226) [jsf-impl.jar:2.0.4-b09]
                at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.16.Final.jar:]
                at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.16.Final.jar:]
                at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]
                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_24]
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_24]
                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_24]
      

       

      Please note that I'm using Mojarra 2.0.4 with slots.

      I have referred to this

      https://issues.jboss.org/browse/AS7-278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#issue-tabs

      which suggests that this has been fixed long back!