4 Replies Latest reply on Feb 19, 2011 6:09 AM by samwun9988

    EAR file - error in opening zip file.

    samwun9988

      Hello,

       

      I got another problem when deploy an EAR file in jboss 6.0 Final.

       

      The EAR project has a war client and ejb3 project. The WAR project is included primefaces 2.2.1 libraries.

       

      Here is the exception error when I drop the .ear file to the deploy/ directory:

       

      2011-02-19 18:33:22,789 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (HDScanner) deploy, ctxPath=/HousewareEnterpriseApplicationClient-war

      2011-02-19 18:33:22,965 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (HDScanner) Initializing Mojarra 2.0.2 (FCS b10) for context '/HousewareEnterpriseApplicationClient-war'

      2011-02-19 18:33:34,419 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (HDScanner) Unable to process annotations for url, vfs:/C:/jboss-6.0.0.Final/server/default/deploy/HousewareEnterpriseApplicationClient.ear/lib/primefaces-2.2.1.jar/META-INF/faces-config.xml.  Reason: java.util.zip.ZipException: error in opening zip file

      2011-02-19 18:33:34,420 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (HDScanner) : java.util.zip.ZipException: error in opening zip file

              at java.util.zip.ZipFile.open(Native Method) [:1.6.0_11]

              at java.util.zip.ZipFile.<init>(ZipFile.java:114) [:1.6.0_11]

              at java.util.jar.JarFile.<init>(JarFile.java:133) [:1.6.0_11]

              at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:67) [:1.6.0_11]

              at sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:214) [:1.6.0_11]

              at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_11]

              at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:198) [:1.6.0_11]

              at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:50) [:1.6.0_11]

              at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:78) [:1.6.0_11]

              at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:104) [:1.6.0_11]

              at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:71) [:1.6.0_11]

      ....

       

       

      What stops jboss unzip the file?

       

      Thanks

      Sam

        • 1. EAR file - error in opening zip file.
          samwun9988

          After removed the jsf and primefaces jar flies from my project package, it deployed successfuly:

           

          2011-02-19 19:07:42,067 WARN  [org.jboss.ejb3.TimerServiceContainer] (HDScanner) EJBTHREE-2193: using deprecated TimerServiceFactory for restoring timers

          2011-02-19 19:07:42,073 INFO  [org.jboss.ejb3.nointerface.impl.jndi.AbstractNoInterfaceViewBinder] (HDScanner) Binding the following entry in Global JNDI for bean:RoleManager

           

           

                  HousewareEnterpriseApplicationClient/RoleManager/no-interface -> EJB3.1 no-interface view

           

          Sam

          • 2. EAR file - error in opening zip file.
            nickarls

            It might have been under writing when the deployment started. Check unzip it with another program to verify.

            • 3. EAR file - error in opening zip file.
              samwun9988

              Hi Nicklas,

               

              Thank you for your response.

               

              Does JBOSS 6.0 support Primeface 2.2?

              I don't see there is primefaces jar file in the jboss directory.

              And why jboss does not allow me unzip primeface jar file? I can open it with winzip/winrar and jar -tf commands.

               

              Thanks

              Sam

              • 4. EAR file - error in opening zip file.
                samwun9988

                OK., after get rid of the jsf 2.0 jar file from my war file, I have the primefaces 2.2.1 deployed successfully .

                 

                Sam