1 2 Previous Next 21 Replies Latest reply on Oct 22, 2012 10:51 AM by Wolf-Dieter Fink

    new to jboss - error determining structure

    Jim Snedeker Newbie

      I'm running Netbeans 7 and Jboss 5.0.1.

       

      How can I solve these errors?

       

      org.jboss.deployers.spi.DeploymentException: Error determining structure: CCAP.war

       

      run.sh: Could not set maximum file descriptor limit: unlimited

       

      /Applications/NetBeans/jboss-5.0.1.GA/bin/run.sh: line 89: ulimit: open files: cannot modify limit: Invalid argument

       

      Caused by: java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file

       

      java.util.zip.ZipException: error in opening zip file

       

      Thanks for your help.

      =========================================================================

       

        JBoss Bootstrap Environment

       

        JBOSS_HOME: /Applications/NetBeans/jboss-5.0.1.GA

       

        JAVA: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java

       

        JAVA_OPTS: -Dprogram.name=run.sh -Xms128m -Xmx512m

       

        CLASSPATH: /Applications/NetBeans/jboss-5.0.1.GA/bin/run.jar

       

      =========================================================================

       

      19:39:23,408 INFO  [ServerImpl] Starting JBoss (Microcontainer)...

      19:39:23,409 INFO  [ServerImpl] Release ID: JBoss [Morpheus] 5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902232048)

      19:39:23,409 INFO  [ServerImpl] Bootstrap URL: null

      19:39:23,409 INFO  [ServerImpl] Home Dir: /Applications/NetBeans/jboss-5.0.1.GA

      19:39:23,410 INFO  [ServerImpl] Home URL: file:/Applications/NetBeans/jboss-5.0.1.GA/

      19:39:23,410 INFO  [ServerImpl] Library URL: file:/Applications/NetBeans/jboss-5.0.1.GA/lib/

      19:39:23,410 INFO  [ServerImpl] Patch URL: null

      19:39:23,411 INFO  [ServerImpl] Common Base URL: file:/Applications/NetBeans/jboss-5.0.1.GA/common/

      19:39:23,411 INFO  [ServerImpl] Common Library URL: file:/Applications/NetBeans/jboss-5.0.1.GA/common/lib/

      19:39:23,411 INFO  [ServerImpl] Server Name: default

      19:39:23,411 INFO  [ServerImpl] Server Base Dir: /Applications/NetBeans/jboss-5.0.1.GA/server

      19:39:23,411 INFO  [ServerImpl] Server Base URL: file:/Applications/NetBeans/jboss-5.0.1.GA/server/

      19:39:23,411 INFO  [ServerImpl] Server Config URL: file:/Applications/NetBeans/jboss-5.0.1.GA/server/default/conf/

      19:39:23,412 INFO  [ServerImpl] Server Home Dir: /Applications/NetBeans/jboss-5.0.1.GA/server/default

      19:39:23,412 INFO  [ServerImpl] Server Home URL: file:/Applications/NetBeans/jboss-5.0.1.GA/server/default/

      19:39:23,412 INFO  [ServerImpl] Server Data Dir: /Applications/NetBeans/jboss-5.0.1.GA/server/default/data

      19:39:23,412 INFO  [ServerImpl] Server Library URL: file:/Applications/NetBeans/jboss-5.0.1.GA/server/default/lib/

      19:39:23,412 INFO  [ServerImpl] Server Log Dir: /Applications/NetBeans/jboss-5.0.1.GA/server/default/log

      19:39:23,412 INFO  [ServerImpl] Server Native Dir: /Applications/NetBeans/jboss-5.0.1.GA/server/default/tmp/native

      19:39:23,413 INFO  [ServerImpl] Server Temp Dir: /Applications/NetBeans/jboss-5.0.1.GA/server/default/tmp

      19:39:23,413 INFO  [ServerImpl] Server Temp Deploy Dir: /Applications/NetBeans/jboss-5.0.1.GA/server/default/tmp/deploy

      19:39:27,893 INFO  [ServerImpl] Starting Microcontainer, bootstrapURL=file:/Applications/NetBeans/jboss-5.0.1.GA/server/default/conf/bootstrap.xml

      19:39:30,357 INFO  [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache]

      19:39:30,360 INFO  [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]]

      19:39:31,194 INFO  [CopyMechanism] VFS temp dir: /Applications/NetBeans/jboss-5.0.1.GA/server/default/tmp

      19:39:31,195 INFO  [ZipEntryContext] VFS force nested jars copy-mode is enabled.

      19:39:34,873 INFO  [ServerInfo] Java version: 1.6.0_26,Apple Inc.

      19:39:34,873 INFO  [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_26-b03-384-10M3425)

      19:39:34,873 INFO  [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 20.1-b02-384,Apple Inc.

      19:39:34,873 INFO  [ServerInfo] OS-System: Mac OS X 10.6.8,x86_64

      19:39:35,070 INFO  [JMXKernel] Legacy JMX core initialized

      19:39:40,144 INFO  [ProfileServiceImpl] Loading profile: default from: org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@758c3b7(root=/Applications/NetBeans/jboss-5.0.1.GA/server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])

      19:39:40,146 INFO  [ProfileImpl] Using repository:org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@758c3b7(root=/Applications/NetBeans/jboss-5.0.1.GA/server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])

      19:39:40,146 INFO  [ProfileServiceImpl] Loaded profile: ProfileImpl@377e4cec{key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default]}

      19:39:44,451 INFO  [WebService] Using RMI server codebase: http://127.0.0.1:8083/

      19:39:55,683 INFO  [NativeServerConfig] JBoss Web Services - Stack Native Core

      19:39:55,684 INFO  [NativeServerConfig] 3.0.5.GA

      19:40:00,467 ERROR [ProfileServiceBootstrap] Failed to load profile:

      org.jboss.deployers.spi.DeploymentException: Error determining structure: CCAP.war

          at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)

          at org.jboss.web.deployers.WARStructure.determineStructure(WARStructure.java:248)

          at org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper.determineStructure(StructureDeployerWrapper.java:73)

          at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.doDetermineStructure(VFSStructuralDeployersImpl.java:196)

          at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.determineStructure(VFSStructuralDeployersImpl.java:221)

          at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:77)

          at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:1000)

          at org.jboss.deployers.plugins.main.MainDeployerImpl.determineDeploymentContext(MainDeployerImpl.java:440)

          at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:390)

          at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:300)

          at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:303)

          at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)

          at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)

          at org.jboss.Main.boot(Main.java:209)

          at org.jboss.Main$1.run(Main.java:547)

          at java.lang.Thread.run(Thread.java:680)

      Caused by: java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file

          at org.jboss.virtual.plugins.context.AbstractExceptionHandler.handleZipEntriesInitException(AbstractExceptionHandler.java:39)

          at org.jboss.virtual.plugins.context.helpers.NamesExceptionHandler.handleZipEntriesInitException(NamesExceptionHandler.java:63)

          at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:610)

          at org.jboss.virtual.plugins.context.zip.ZipEntryContext.checkIfModified(ZipEntryContext.java:757)

          at org.jboss.virtual.plugins.context.zip.ZipEntryContext.getChild(ZipEntryContext.java:801)

          at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.createChildHandler(ZipEntryHandler.java:191)

          at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:681)

          at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.getChild(ZipEntryHandler.java:165)

          at org.jboss.virtual.plugins.context.DelegatingHandler.getChild(DelegatingHandler.java:107)

          at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:686)

          at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.getChild(ZipEntryHandler.java:165)

          at org.jboss.virtual.plugins.context.DelegatingHandler.getChild(DelegatingHandler.java:107)

          at org.jboss.virtual.VirtualFile.getChild(VirtualFile.java:481)

          at org.jboss.deployers.vfs.spi.structure.helpers.AbstractStructureDeployer.applyMetadataPaths(AbstractStructureDeployer.java:481)

          at org.jboss.deployers.vfs.spi.structure.helpers.AbstractStructureDeployer.createContext(AbstractStructureDeployer.java:455)

          at org.jboss.web.deployers.WARStructure.determineStructure(WARStructure.java:204)

          ... 14 more

      Caused by: java.util.zip.ZipException: error in opening zip file

          at java.util.zip.ZipFile.open(Native Method)

          at java.util.zip.ZipFile.<init>(ZipFile.java:127)

          at java.util.zip.ZipFile.<init>(ZipFile.java:144)

          at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.ensureZipFile(ZipFileWrapper.java:175)

          at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.acquire(ZipFileWrapper.java:245)

          at org.jboss.virtual.plugins.context.zip.ZipEntryContext.initEntries(ZipEntryContext.java:470)

          at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:603)

          ... 27 more

      19:40:00,469 INFO  [ServerImpl] JBoss (Microcontainer) [5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902232048)] Started in 37s:36ms

        • 1. Re: new to jboss - error determining structure
          Peter Johnson Master

          Exactly how did you create the CCAP.war file? Try opening it using:

           

          jar -tf CCAP.war

           

          If that doesn't work, then either the file was not properly created, or was created using a zip tool whose compression mechanism is not compatible with Java (it has happened before).

           

          The other common situation is that the CCAP.war file is in the middle of being copied to the deploy directory and thus the deployer sees only a partial file. The typical solution for that is to copy the file to a temporary directory elsewhere on the disk and then move the file to the deploy directory.

          1 of 1 people found this helpful
          • 2. Re: new to jboss - error determining structure
            Jim Snedeker Newbie

            Here is the contents of the CCAP.war.  Is it what you expect it to be?  The files listed all belong to the project.  Not sure how to do the moves you mention.  Is the deploy directory part of the jboss tree?

             

            I'm using the "run" component of NetBeans 7 to do this.  Is that part of the issue?

             

            Thanks!

             

            -rw-r--r--  1 jimsnedeker  jimsnedeker  5886727 Jul  6 19:39 CCAP.war

            jim-snedekers-computer:dist jimsnedeker$ jar -tf CCAP.war

            META-INF/

            META-INF/MANIFEST.MF

            WEB-INF/

            WEB-INF/classes/

            WEB-INF/classes/com/

            WEB-INF/classes/com/myapp/

            WEB-INF/classes/com/myapp/struts/

            WEB-INF/lib/

            JBoss4.dpf

            WEB-INF/classes/com/myapp/struts/ApplicationResource.properties

            WEB-INF/jboss-web.xml

            WEB-INF/lib/antlr-2.7.2.jar

            WEB-INF/lib/bsf-2.3.0.jar

            WEB-INF/lib/commons-beanutils-1.7.0.jar

            WEB-INF/lib/commons-chain-1.1.jar

            WEB-INF/lib/commons-digester-1.8.jar

            WEB-INF/lib/commons-fileupload-1.1.1.jar

            WEB-INF/lib/commons-io-1.1.jar

            WEB-INF/lib/commons-logging-1.0.4.jar

            WEB-INF/lib/commons-validator-1.3.1.jar

            WEB-INF/lib/json-lib-2.1-jdk15.jar

            WEB-INF/lib/jsonplugin-0.32.jar

            WEB-INF/lib/jstl-1.0.2.jar

            WEB-INF/lib/jstl-standard.jar

            WEB-INF/lib/jstl.jar

            WEB-INF/lib/mysql-connector-java-5.1.5-bin.jar

            WEB-INF/lib/oro-2.0.8.jar

            WEB-INF/lib/standard-1.0.2.jar

            WEB-INF/lib/struts-core-1.3.8.jar

            WEB-INF/lib/struts-el-1.3.8.jar

            WEB-INF/lib/struts-extras-1.3.8.jar

            WEB-INF/lib/struts-faces-1.3.8.jar

            WEB-INF/lib/struts-mailreader-dao-1.3.8.jar

            WEB-INF/lib/struts-scripting-1.3.8.jar

            WEB-INF/lib/struts-taglib-1.3.8.jar

            WEB-INF/lib/struts-tiles-1.3.8.jar

            WEB-INF/lib/struts2-core-2.0.1.jar

            WEB-INF/lib/xwork-2.0.1.jar

            WEB-INF/struts-config.xml

            WEB-INF/tiles-defs.xml

            WEB-INF/validation.xml

            WEB-INF/validator-rules.xml

            WEB-INF/web.xml

            calendar.html

            clientFinance.jsp

            clientInfo.jsp

            clothingAppts.jsp

            gettingstarted.jsp

            header.jsp

            index-old.jsp

            index.jsp

            interviewList.jsp

            login.jsp

            purchaseVoucher.jsp

            refSlip.jsp

            reports.jsp

            searchClient.jsp

            tabs.jsp

            treasSlip.jsp

            userMgt.jsp

            visits.jsp

            welcomeStruts.jsp

            welcomeStruts_1.jsp

            jim-snedekers-computer:dist jimsnedeker$

            • 3. Re: new to jboss - error determining structure
              Peter Johnson Master

              Since jar was able to list the contents of CCAP.war, then that eliminates the first assumption (corrput zip or incompatible compression).

               

              That leaves the second assumption (deployment taking place before copy is finished). I don't know how NetBeans goes about deploying a WAR file with its "run component", but if it copies the WAR to the deploy directory (yes, that is within the JBoss AS directory structure) then that could be the problem. You might have to manually deploy.

              1 of 1 people found this helpful
              • 4. Re: new to jboss - error determining structure
                Jim Snedeker Newbie

                Thanks for your continued help.  How do I go about manually deploying this CCAP.war file?  How do I separate the steps so the copy finished before Jboss starts?

                 

                Sorry - but I'm not clear how to do this manually.

                • 5. Re: new to jboss - error determining structure
                  Peter Johnson Master

                  Open a terminal, cd to the directory where CCAP.war is located and enter:

                   

                  mv CCAP.war /Applications/NetBeans/jboss-5.0.1.GA/server/default/deploy

                   

                  The 'mv' command will move the WAR is a single step.

                  • 6. Re: new to jboss - error determining structure
                    Jim Snedeker Newbie

                    ok - did that.  Now how do I finish?  Just start jboss with run.sh?  How does CCAP.war get to the browser?  I think this must be step 2 of running things manually?

                     

                    Thanks!

                    • 7. Re: new to jboss - error determining structure
                      Peter Johnson Master

                      Yes, start JBoss AS using bin/run.sh (but first make sure that it is not running within NetBeans). Wait for the "Started in xxx seconds" message ot appear in the console. The open your browser at http://localhost:8080/CCAP/ (you might need to also provide a file name if you don't have and welcome files listed in your web.xml)

                      • 8. Re: new to jboss - error determining structure
                        Jim Snedeker Newbie

                        OK - tried that - here is result.

                         

                        15:30:21,237 INFO  [WebService] Using RMI server codebase: http://127.0.0.1:8083/

                        15:30:33,278 INFO  [NativeServerConfig] JBoss Web Services - Stack Native Core

                        15:30:33,278 INFO  [NativeServerConfig] 3.0.5.GA

                        15:30:37,962 ERROR [ProfileServiceBootstrap] Failed to load profile:

                        org.jboss.deployers.spi.DeploymentException: Error determining structure: CCAP.war

                        • 10. Re: new to jboss - error determining structure
                          Jim Snedeker Newbie

                          Here it is - thanks.

                           

                          Last login: Sat Jul  9 11:00:14 on console

                          You have mail.

                          jim-snedekers-computer:~ jimsnedeker$ cd /Applications/Netbeans

                          jim-snedekers-computer:Netbeans jimsnedeker$ ./bin/run.sh

                          -bash: ./bin/run.sh: No such file or directory

                          jim-snedekers-computer:Netbeans jimsnedeker$ cd jboss-5.0.1.GA

                          jim-snedekers-computer:jboss-5.0.1.GA jimsnedeker$ ./bin/run.sh

                          ./bin/run.sh: line 89: ulimit: open files: cannot modify limit: Invalid argument

                          run.sh: Could not set maximum file descriptor limit: unlimited

                          =========================================================================

                           

                            JBoss Bootstrap Environment

                           

                            JBOSS_HOME: /Applications/Netbeans/jboss-5.0.1.GA

                           

                            JAVA: java

                           

                            JAVA_OPTS: -Dprogram.name=run.sh -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

                           

                            CLASSPATH: /Applications/Netbeans/jboss-5.0.1.GA/bin/run.jar

                           

                          =========================================================================

                           

                          11:12:17,305 INFO  [ServerImpl] Starting JBoss (Microcontainer)...

                          11:12:17,308 INFO  [ServerImpl] Release ID: JBoss [Morpheus] 5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902232048)

                          11:12:17,309 INFO  [ServerImpl] Bootstrap URL: null

                          11:12:17,309 INFO  [ServerImpl] Home Dir: /Applications/NetBeans/jboss-5.0.1.GA

                          11:12:17,309 INFO  [ServerImpl] Home URL: file:/Applications/NetBeans/jboss-5.0.1.GA/

                          11:12:17,309 INFO  [ServerImpl] Library URL: file:/Applications/NetBeans/jboss-5.0.1.GA/lib/

                          11:12:17,310 INFO  [ServerImpl] Patch URL: null

                          11:12:17,310 INFO  [ServerImpl] Common Base URL: file:/Applications/NetBeans/jboss-5.0.1.GA/common/

                          11:12:17,310 INFO  [ServerImpl] Common Library URL: file:/Applications/NetBeans/jboss-5.0.1.GA/common/lib/

                          11:12:17,311 INFO  [ServerImpl] Server Name: default

                          11:12:17,311 INFO  [ServerImpl] Server Base Dir: /Applications/NetBeans/jboss-5.0.1.GA/server

                          11:12:17,311 INFO  [ServerImpl] Server Base URL: file:/Applications/NetBeans/jboss-5.0.1.GA/server/

                          11:12:17,311 INFO  [ServerImpl] Server Config URL: file:/Applications/NetBeans/jboss-5.0.1.GA/server/default/conf/

                          11:12:17,311 INFO  [ServerImpl] Server Home Dir: /Applications/NetBeans/jboss-5.0.1.GA/server/default

                          11:12:17,312 INFO  [ServerImpl] Server Home URL: file:/Applications/NetBeans/jboss-5.0.1.GA/server/default/

                          11:12:17,312 INFO  [ServerImpl] Server Data Dir: /Applications/NetBeans/jboss-5.0.1.GA/server/default/data

                          11:12:17,312 INFO  [ServerImpl] Server Library URL: file:/Applications/NetBeans/jboss-5.0.1.GA/server/default/lib/

                          11:12:17,312 INFO  [ServerImpl] Server Log Dir: /Applications/NetBeans/jboss-5.0.1.GA/server/default/log

                          11:12:17,312 INFO  [ServerImpl] Server Native Dir: /Applications/NetBeans/jboss-5.0.1.GA/server/default/tmp/native

                          11:12:17,312 INFO  [ServerImpl] Server Temp Dir: /Applications/NetBeans/jboss-5.0.1.GA/server/default/tmp

                          11:12:17,313 INFO  [ServerImpl] Server Temp Deploy Dir: /Applications/NetBeans/jboss-5.0.1.GA/server/default/tmp/deploy

                          11:12:19,268 INFO  [ServerImpl] Starting Microcontainer, bootstrapURL=file:/Applications/NetBeans/jboss-5.0.1.GA/server/default/conf/bootstrap.xml

                          11:12:20,667 INFO  [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache]

                          11:12:20,669 INFO  [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]]

                          11:12:21,137 INFO  [CopyMechanism] VFS temp dir: /Applications/NetBeans/jboss-5.0.1.GA/server/default/tmp

                          11:12:21,177 INFO  [ZipEntryContext] VFS force nested jars copy-mode is enabled.

                          11:12:23,554 INFO  [ServerInfo] Java version: 1.6.0_26,Apple Inc.

                          11:12:23,554 INFO  [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_26-b03-384-10M3425)

                          11:12:23,554 INFO  [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 20.1-b02-384,Apple Inc.

                          11:12:23,554 INFO  [ServerInfo] OS-System: Mac OS X 10.6.8,x86_64

                          11:12:23,634 INFO  [JMXKernel] Legacy JMX core initialized

                          11:12:27,086 INFO  [ProfileServiceImpl] Loading profile: default from: org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@11dba9f9(root=/Applications/NetBeans/jboss-5.0.1.GA/server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])

                          11:12:27,088 INFO  [ProfileImpl] Using repository:org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@11dba9f9(root=/Applications/NetBeans/jboss-5.0.1.GA/server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])

                          11:12:27,088 INFO  [ProfileServiceImpl] Loaded profile: ProfileImpl@593f5a2f{key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default]}

                          11:12:30,001 INFO  [WebService] Using RMI server codebase: http://127.0.0.1:8083/

                          11:12:39,342 INFO  [NativeServerConfig] JBoss Web Services - Stack Native Core

                          11:12:39,342 INFO  [NativeServerConfig] 3.0.5.GA

                          11:12:42,923 ERROR [ProfileServiceBootstrap] Failed to load profile:

                          org.jboss.deployers.spi.DeploymentException: Error determining structure: CCAP.war

                              at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)

                              at org.jboss.web.deployers.WARStructure.determineStructure(WARStructure.java:248)

                              at org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper.determineStructure(StructureDeployerWrapper.java:73)

                              at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.doDetermineStructure(VFSStructuralDeployersImpl.java:196)

                              at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.determineStructure(VFSStructuralDeployersImpl.java:221)

                              at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:77)

                              at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:1000)

                              at org.jboss.deployers.plugins.main.MainDeployerImpl.determineDeploymentContext(MainDeployerImpl.java:440)

                              at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:390)

                              at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:300)

                              at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:303)

                              at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)

                              at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)

                              at org.jboss.Main.boot(Main.java:209)

                              at org.jboss.Main$1.run(Main.java:547)

                              at java.lang.Thread.run(Thread.java:680)

                          Caused by: java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file

                              at org.jboss.virtual.plugins.context.AbstractExceptionHandler.handleZipEntriesInitException(AbstractExceptionHandler.java:39)

                              at org.jboss.virtual.plugins.context.helpers.NamesExceptionHandler.handleZipEntriesInitException(NamesExceptionHandler.java:63)

                              at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:610)

                              at org.jboss.virtual.plugins.context.zip.ZipEntryContext.checkIfModified(ZipEntryContext.java:757)

                              at org.jboss.virtual.plugins.context.zip.ZipEntryContext.getChild(ZipEntryContext.java:801)

                              at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.createChildHandler(ZipEntryHandler.java:191)

                              at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:681)

                              at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.getChild(ZipEntryHandler.java:165)

                              at org.jboss.virtual.plugins.context.DelegatingHandler.getChild(DelegatingHandler.java:107)

                              at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:686)

                              at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.getChild(ZipEntryHandler.java:165)

                              at org.jboss.virtual.plugins.context.DelegatingHandler.getChild(DelegatingHandler.java:107)

                              at org.jboss.virtual.VirtualFile.getChild(VirtualFile.java:481)

                              at org.jboss.deployers.vfs.spi.structure.helpers.AbstractStructureDeployer.applyMetadataPaths(AbstractStructureDeployer.java:481)

                              at org.jboss.deployers.vfs.spi.structure.helpers.AbstractStructureDeployer.createContext(AbstractStructureDeployer.java:455)

                              at org.jboss.web.deployers.WARStructure.determineStructure(WARStructure.java:204)

                              ... 14 more

                          Caused by: java.util.zip.ZipException: error in opening zip file

                              at java.util.zip.ZipFile.open(Native Method)

                              at java.util.zip.ZipFile.<init>(ZipFile.java:127)

                              at java.util.zip.ZipFile.<init>(ZipFile.java:144)

                              at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.ensureZipFile(ZipFileWrapper.java:175)

                              at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.acquire(ZipFileWrapper.java:245)

                              at org.jboss.virtual.plugins.context.zip.ZipEntryContext.initEntries(ZipEntryContext.java:470)

                              at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(ZipEntryContext.java:603)

                              ... 27 more

                          11:12:42,936 INFO  [ServerImpl] JBoss (Microcontainer) [5.0.1.GA (build: SVNTag=JBoss_5_0_1_GA date=200902232048)] Started in 25s:598ms

                          • 11. Re: new to jboss - error determining structure
                            Ales Justin Master

                            Caused by: java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file

                            I would guess this is in-complete / non-atomic copy to deploy/, hence archive is broken.

                            • 12. Re: new to jboss - error determining structure
                              jaikiran pai Master

                              It doesn't look like a hot deploy, since the logs show that the server is being cold booted. Either it's really a corrupt archive or the VFS is tripping on some specific contents in that file.

                               

                              Jim, I would recommend that you try JBoss AS 5.1.0 (or even JBoss AS 6.0.0.Final) instead of using 5.0.1. There have been some VFS and deployment issues fixed after 5.0.1 was released.

                              • 13. Re: new to jboss - error determining structure
                                Jim Snedeker Newbie

                                That seems reasonable.  But I am trying to create a mirror environment to the one I am supporting.  This is for a small charity who had someone set this up in 2007.  However, I realize your idea may win out if I run out of time to recreate what they have.

                                 

                                Thanks!

                                • 14. Re: new to jboss - error determining structure
                                  Peter Johnson Master

                                  Try this to find out if your CCAP.war file is corrupt:

                                   

                                  tar -xf CCAP.war

                                   

                                  This will extract the entire contents of the WAR file. If this doesn't work, you will need to get another copy of the WAR file.

                                  1 2 Previous Next