6 Replies Latest reply on Mar 17, 2011 1:07 PM by Ken Britton

    Jira 4.x on JBoss 6.1

    Matthias Unverzagt Newbie

      A) I would like to install Jira 4.x on JBoss 6.1.

       

      B) When deploying the war I run into a classloading problem with atlassian-util-concurrent-2.0.0.jar. The attached war is reduced to this library and reproduces the ERROR below.

       

      I am looking for a successful way to A) and/or a solution to B) on the way to A).  Thank you.

       

       

       

      ERROR Log:

       

       

      2011-03-08 13:10:50,623 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (HDScanner) Error installing to PostClassLoader: name=vfs:///E:/work/prgs/jboss-6.1.0-SNAPSHOT/server/default/deploy/jira.war state=ClassLoader mode=Manual requiredState=PostClassLoader: org.jboss.deployers.spi.DeploymentException: Error during deploy: vfs:///E:/work/prgs/jboss-6.1.0-SNAPSHOT/server/default/deploy/jira.war

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

          at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:185)

          at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832)

          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550)

          at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491)

          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)

          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)

          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)

          at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)

          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939)

          at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654)

          at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983)

          at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076)

          at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679)

          at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106)

          at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143)

          at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.deploy(HDScanner.java:240)

          at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.complete(HDScanner.java:192)

          at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(TwoPCActionWrapper.java:57)

          at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.complete(AbstractTwoPhaseModificationAction.java:74)

          at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:95)

          at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87)

          at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234)

          at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213)

          at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150)

          at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:135)

          at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanner.java:146)

          at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner.java:90)

          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

          at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)

          at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)

          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)

          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)

          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

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

      Caused by: java.lang.Error: Error visiting "/E:/work/prgs/jboss-6.1.0-SNAPSHOT/server/default/deploy/jira.war/WEB-INF/lib/atlassian-util-concurrent-2.0.0.jar/com/atlassian/util/concurrent/atomic/AtomicLong.class"

          at org.jboss.classloading.plugins.vfs.VFSResourceVisitor.visit(VFSResourceVisitor.java:268)

          at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:408)

          at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410)

          at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410)

          at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410)

          at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410)

          at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410)

          at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:396)

          at org.jboss.classloading.plugins.vfs.VFSResourceVisitor.visit(VFSResourceVisitor.java:102)

          at org.jboss.deployers.vfs.plugins.classloader.VFSDeploymentClassLoaderPolicyModule.visit(VFSDeploymentClassLoaderPolicyModule.java:181)

          at org.jboss.scanning.plugins.DeploymentUnitScanner.scan(DeploymentUnitScanner.java:111)

          at org.jboss.scanning.spi.helpers.UrlScanner.scan(UrlScanner.java:96)

          at org.jboss.scanning.deployers.ScanningDeployer.deploy(ScanningDeployer.java:95)

          at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)

          ... 37 more

      Caused by: java.lang.RuntimeException: Error visiting resource: VFSResourceContext @ com/atlassian/util/concurrent/atomic/AtomicLong.class / BaseClassLoader@4fa52017{vfs:///E:/work/prgs/jboss-6.1.0-SNAPSHOT/server/default/deploy/jira.war}, visitor: org.jboss.scanning.hierarchy.plugins.HierarchyTypeVisitor@38894172

          at org.jboss.scanning.plugins.visitor.IgnoreSetErrorHandler.handleError(IgnoreSetErrorHandler.java:56)

          at org.jboss.scanning.plugins.visitor.ReflectResourceVisitor.visit(ReflectResourceVisitor.java:91)

          at org.jboss.scanning.hierarchy.plugins.HierarchyIndexScanningPlugin.visit(HierarchyIndexScanningPlugin.java:91)

          at org.jboss.scanning.spi.helpers.ScanningPluginWrapper.visit(ScanningPluginWrapper.java:112)

          at org.jboss.classloading.plugins.visitor.FederatedResourceVisitor.visit(FederatedResourceVisitor.java:101)

          at org.jboss.classloading.plugins.vfs.VFSResourceVisitor.visit(VFSResourceVisitor.java:264)

          ... 50 more

      Caused by: java.lang.ClassCastException: org.jboss.reflect.spi.NumberInfo cannot be cast to org.jboss.reflect.plugins.ClassInfoImpl

          at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getSuperClass(IntrospectionTypeInfoFactoryImpl.java:77)

          at org.jboss.reflect.plugins.ClassInfoImpl.getSuperclass(ClassInfoImpl.java:453)

          at org.jboss.scanning.hierarchy.plugins.HierarchyTypeVisitor.handleClass(HierarchyTypeVisitor.java:70)

          at org.jboss.scanning.plugins.visitor.ReflectResourceVisitor.doVisit(ReflectResourceVisitor.java:108)

          at org.jboss.scanning.plugins.visitor.ReflectResourceVisitor.visit(ReflectResourceVisitor.java:86)

          ... 54 more

       

       

        • 1. Jira 4.x on JBoss 6.1
          Ales Justin Master
          org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getSuperClass(IntrospectionTypeInfoFactoryImpl.java:77)

              at org.jboss.reflect.plugins.ClassInfoImpl.getSuperclass(ClassInfoImpl.java:453)

              at org.jboss.scanning.hierarchy.plugins.HierarchyTypeVisitor.handleClass(HierarchyTypeVisitor.java:70)

              at org.jboss.scanning.plugins.visitor.ReflectResourceVisitor.doVisit(ReflectResourceVisitor.java:108)

              at org.jboss.scanning.plugins.visitor.ReflectResourceVisitor.visit(ReflectResourceVisitor.java:86)

              ... 54 more

          This looks strange.

          Let me have a closer look ...

          (thanks for the .war example ;-))

          • 2. Re: Jira 4.x on JBoss 6.1
            Ales Justin Master
            Let me have a closer look ...

            (thanks for the .war example ;-))

            OK, should be fixed.

            Can you try the attached jar and replace it properly?

            (in JBOSS_HOME/lib)

            • 3. Jira 4.x on JBoss 6.1
              Matthias Unverzagt Newbie

              I tested it with full jira application. Works for me :-)

              Thank you so much!

              • 4. Re: Jira 4.x on JBoss 6.1
                Ken Britton Newbie

                Hello,

                 

                I was having the same problem and I got a little further with the patch jar; however, I'm getting another error:

                 

                Caused by: java.lang.ArrayIndexOutOfBoundsException: 3

                  at org.jboss.reflect.plugins.ConstructorInfoImpl.<init>(ConstructorInfoImpl.java:95) [jboss-reflect.jar:2.2.2-SNAPSHOT]

                  at org.jboss.reflect.plugins.introspection.ReflectConstructorInfoImpl.<init>(ReflectConstructorInfoImpl.java:68) [jboss-reflect.jar:2.2.2-SNAPSHOT]

                  at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getConstructors(IntrospectionTypeInfoFactoryImpl.java:150) [jboss-reflect.jar:2.2.2-SNAPSHOT]

                  at org.jboss.reflect.plugins.ClassInfoImpl.getDeclaredConstructors(ClassInfoImpl.java:446) [jboss-reflect.jar:2.2.2-SNAPSHOT]

                  at org.jboss.scanning.plugins.visitor.ClassHierarchyResourceVisitor.handleClass(ClassHierarchyResourceVisitor.java:79) [:1.0.0.Alpha5]

                  at org.jboss.scanning.plugins.visitor.ReflectResourceVisitor.doVisit(ReflectResourceVisitor.java:108) [:1.0.0.Alpha5]

                  at org.jboss.scanning.plugins.visitor.ReflectResourceVisitor.visit(ReflectResourceVisitor.java:86) [:1.0.0.Alpha5]

                  ... 57 more

                 

                Which appears to be caused by a class in the google-collections jar:

                 

                Caused by: java.lang.Error: Error visiting "/Users/kbritton/jboss-6.0.0.20100721-M4/server/default/deploy/tlm-identity.war/WEB-INF/lib/google-collections-1.0.jar/com/google/common/collect/StandardMultimap$RandomAccessWrappedList.class"

                          at org.jboss.classloading.plugins.vfs.VFSResourceVisitor.visit(VFSResourceVisitor.java:268) [jboss-classloading-vfs.jar:2.2.0.Alpha7]

                 

                Google collections jar can be downloaded here.

                 

                Is there another patch jar or a nightly build that addresses this issue?

                 

                Thanks,

                Ken.

                • 5. Re: Jira 4.x on JBoss 6.1
                  Ales Justin Master
                  Is there another patch jar or a nightly build that addresses this issue?

                  You can try this:

                  * http://hudson.jboss.org/hudson/view/JBoss%20AS/job/JBoss-AS-6.1.x/

                   

                  While you would still have to replace that jboss-reflect.jar.

                  (it's not yet part of AS6 trunk)

                  • 6. Re: Jira 4.x on JBoss 6.1
                    Ken Britton Newbie

                    Thank you - that did the trick.  Will the 6.1.0 release contain fixes from the patch jar?