4 Replies Latest reply on Mar 22, 2011 11:47 AM by Jesse Hazen

    JBoss 5.1 deployment problem

    croydondias Newbie

      Im trying to migrate a J2EE application, currently running fine on 4.2.3, to JBoss 5.1.

       

      I am getting the following errors:

       

       

      12:03:07,814 INFO  [ZipEntryContext] VFS force nested jars copy-mode is enabled.

       

       

      12:03:09,282 INFO  [ServerInfo] Java version: 1.6.0_24,Sun Microsystems Inc.

      12:03:09,290 INFO  [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (b

      uild 1.6.0_24-b07)

      12:03:09,290 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Server VM 19.1-b02,Sun

      Microsystems Inc.

      12:03:09,290 INFO  [ServerInfo] OS-System: Windows 7 6.1,x86

      12:03:09,336 INFO  [JMXKernel] Legacy JMX core initialized

      12:03:12,569 INFO  [ProfileServiceImpl] Loading profile: default from: org.jboss

      .system.server.profileservice.repository.SerializableDeploymentRepository@1c1cfc

      1(root=C:\jboss\jboss-5.0.1.GA\server, key=org.jboss.profileservice.spi.ProfileK

      ey@143b82c3[domain=default,server=default,name=default])

      12:03:12,572 INFO  [ProfileImpl] Using repository:org.jboss.system.server.profil

      eservice.repository.SerializableDeploymentRepository@1c1cfc1(root=C:\jboss\jboss

      -5.0.1.GA\server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=de

      fault,server=default,name=default])

      12:03:12,573 INFO  [ProfileServiceImpl] Loaded profile: ProfileImpl@fc9e7e{key=o

      rg.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,na

      me=default]}

      12:03:14,695 INFO  [WebService] Using RMI server codebase: http://127.0.0.1:8083

      /

      12:03:21,584 INFO  [NativeServerConfig] JBoss Web Services - Stack Native Core

      12:03:21,586 INFO  [NativeServerConfig] 3.0.5.GA

      12:03:27,312 ERROR [ProfileServiceBootstrap] Failed to load profile:

      org.jboss.deployers.spi.DeploymentException: Error determining structure: JAdapt

      iv2.5a.war

              at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentExcept

      ion(DeploymentException.java:49)

              at org.jboss.web.deployers.WARStructure.determineStructure(WARStructure.

      java:248)

              at org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper.de

      termineStructure(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.determineDeployment

      Context(MainDeployerImpl.java:440)

              at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainD

      eployerImpl.java:390)

              at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainD

      eployerImpl.java:300)

              at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadPr

      ofile(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:662)

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

      ing zip file

              at org.jboss.virtual.plugins.context.AbstractExceptionHandler.handleZipE

      ntriesInitException(AbstractExceptionHandler.java:39)

              at org.jboss.virtual.plugins.context.helpers.NamesExceptionHandler.handl

      eZipEntriesInitException(NamesExceptionHandler.java:63)

              at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(Z

      ipEntryContext.java:610)

              at org.jboss.virtual.plugins.context.zip.ZipEntryContext.checkIfModified

      (ZipEntryContext.java:757)

              at org.jboss.virtual.plugins.context.zip.ZipEntryContext.getChild(ZipEnt

      ryContext.java:801)

              at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.createChildHand

      ler(ZipEntryHandler.java:191)

              at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structur

      edFindChild(AbstractVirtualFileHandler.java:681)

              at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.getChild(ZipEnt

      ryHandler.java:165)

              at org.jboss.virtual.plugins.context.DelegatingHandler.getChild(Delegati

      ngHandler.java:107)

              at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structur

      edFindChild(AbstractVirtualFileHandler.java:686)

              at org.jboss.virtual.plugins.context.zip.ZipEntryHandler.getChild(ZipEnt

      ryHandler.java:165)

              at org.jboss.virtual.plugins.context.DelegatingHandler.getChild(Delegati

      ngHandler.java:107)

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

              at org.jboss.deployers.vfs.spi.structure.helpers.AbstractStructureDeploy

      er.applyMetadataPaths(AbstractStructureDeployer.java:481)

              at org.jboss.deployers.vfs.spi.structure.helpers.AbstractStructureDeploy

      er.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(Zi

      pFileWrapper.java:175)

              at org.jboss.virtual.plugins.context.zip.ZipFileWrapper.acquire(ZipFileW

      rapper.java:245)

              at org.jboss.virtual.plugins.context.zip.ZipEntryContext.initEntries(Zip

      EntryContext.java:470)

              at org.jboss.virtual.plugins.context.zip.ZipEntryContext.ensureEntries(Z

      ipEntryContext.java:603)

              ... 27 more

      12:03:27,409 INFO  [ServerImpl] JBoss (Microcontainer) [5.0.1.GA (build: SVNTag=

      JBoss_5_0_1_GA date=200902231221)] Started in 21s:371ms

        • 1. JBoss 5.1 deployment problem
          Apostolos "Paul" Pantazis Newbie

          croydondiasm can you give me some information? how is your application packaged (war, ear, otherwise) - Looks Like a war from the error messages above - are you running on Linux or windows? If you were to take your app outside the container, can you open it up with no issues? (in other words it is not corrupted)

          I am assuming permissions are good as well but can you Please check?

           

          Thanks

          • 2. JBoss 5.1 deployment problem
            croydondias Newbie

            Yes, the application is packaged as a war file. I am running on windows 7.

             

            The war file isn't corrupted. I can extract the contents without any errors.

             

            Sorry, what do you mean by permissions? I am a recent graduate and its my first time managing a J2EE project, so I apologise if its a silly question.

            • 3. JBoss 5.1 deployment problem
              Wolf-Dieter Fink Master

              It may also a problem of the XML deployment descriptor because AFAIK it can be slightly different for this JBoss version

              • 4. JBoss 5.1 deployment problem
                Jesse Hazen Newbie

                There are vfs/zip errors as well as determineStructure errors, so I would guess there is a problem with the archive. However, Paul brings up a good point: what are the Windows permissions on that file? Are you running JBoss are yourself (your own user) or is it run as another user? May want to check the permissions to ensure read access to Everyone.

                 

                Also, can you post the contents of your WEB-INF directory? Perhaps a deployment descripter is missing or invalid for this version of JBoss.