4 Replies Latest reply on Feb 26, 2010 4:55 PM by sjcohn

    JBoss 6 support

    sjcohn
      Does Beta 6 support Jboss 6 M1 or Jboss 6 M2.  I tried both and get osgi errors when the app server starts up.  Seem to get less errors with M2 mostly complains about  jboss-osgi-apache-xerces-2.9.1.SP3.  If neither are supported where do you find the SNAPSHOT version of 6?
        • 1. Re: JBoss 6 support
          thomas.diesler

          jboss-osgi-1.0.0.Beta6 has dependencies on the latest jboss-kernel that is not available in JBoss-6.0.0.M1. It was QAed against jbossas/trunk because JBoss-6.0.0.M2 was not available at the time. So in short jboss-osgi-1.0.0.Beta6 is supported on JBoss-6.0.0.M2

           

          If you use the Equinox or Felix framework this restriction does not apply.

           

          http://jbmuc.dyndns.org:8280/hudson/job/jbossosgi-matrix-remote/7

           

          jboss600 := latest AS milestone at the time of the osgi release

          jboss601 := AS trunk

           

          I am also aware that there is an issue with jboss-osgi-serviceloader.jar in combination with the apache-xerces bundle, which unfortunately did not show up in Hudson - so went through unnoticed. Simply remove jboss-osgi-serviceloader.jar from the deploy/osgi folder. This will remove support for

           

          http://jbossosgi.blogspot.com/2010/01/suns-serviceloader-and-how-it-relates.html

           

          which is experimental anyway.

           

          If you see other issues please post them here with specific stack traces - I am eager to know what folks experience.

           

          cheers

          -thomas

          • 2. Re: JBoss 6 support
            sjcohn

            ok, I deleted the jar.  Now I get this, the whole boot.log is attached:

             

            09:36:59,322 INFO  [OSGiBundleManager] JBossOSGi Core Framework - 1.0.0.Alpha3

            09:36:59,353 INFO  [FrameworkEventsPluginImpl] Service REGISTERED: Service{id=1 classes=[org.jboss.osgi.spi.service.MicrocontainerService]}

            09:36:59,369 INFO  [FrameworkEventsPluginImpl] Service REGISTERED: Service{id=2 classes=[org.osgi.service.startlevel.StartLevel]}

            09:36:59,369 INFO  [FrameworkEventsPluginImpl] Service REGISTERED: Service{id=3 classes=[org.osgi.service.packageadmin.PackageAdmin]}

            09:36:59,744 INFO  [FrameworkEventsPluginImpl] Service REGISTERED: Service{id=4 classes=[org.jboss.osgi.deployment.deployer.DeploymentRegistryService]}

            09:36:59,744 INFO  [FrameworkEventsPluginImpl] Service REGISTERED: Service{id=5 classes=[org.jboss.osgi.deployment.deployer.DeployerService]}

            09:36:59,822 INFO  [FrameworkEventsPluginImpl] Service REGISTERED: Service{id=6 classes=[org.jboss.osgi.deployment.interceptor.LifecycleInterceptorService]}

            09:36:59,837 INFO  [FrameworkEventsPluginImpl] Service REGISTERED: Service{id=7 classes=[org.jboss.osgi.deployment.interceptor.LifecycleInterceptor]}

            09:36:59,837 INFO  [FrameworkEventsPluginImpl] Bundle STARTED: Bundle{system.bundle-0.0.0}

            09:37:06,119 INFO  [FrameworkEventsPluginImpl] Bundle INSTALLED: Bundle{jboss-osgi-apache-xerces-2.9.1.SP3}

            09:37:06,212 ERROR [AbstractKernelController] Error installing to PostParse: name=vfszip:/C:/Gps/jboss-6.0.0.20100216-M2/server/default/deploy/osgi/jboss-osgi-apache-xerces.jar/ state=Parse mode=Manual requiredState=PostParse: org.jboss.deployers.spi.DeploymentException: Error during deploy: vfszip:/C:/Gps/jboss-6.0.0.20100216-M2/server/default/deploy/osgi/jboss-osgi-apache-xerces.jar/

            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:1660)

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

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

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

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

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

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

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

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

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

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

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

            at org.jboss.osgi.framework.deployers.OSGiDeployersWrapper.process(OSGiDeployersWrapper.java:101)

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

            at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

            at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)

            at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

            at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:403)

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

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

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

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

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

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

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

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

            at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileService.java:308)

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

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

            at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:860)

            at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:441)

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

            Caused by: java.lang.IllegalStateException: Cannot install Bundle{jboss-osgi-apache-xerces-2.9.1.SP3} a bundle with that name and version is already installed: vfszip:/C:/Gps/jboss-6.0.0.20100216-M2/server/default/deploy/osgi/jboss-osgi-apache-xerces-2.9.1.SP3.jar/

            at org.jboss.osgi.framework.bundle.OSGiBundleValidatorR4.validateBundle(OSGiBundleValidatorR4.java:109)

            at org.jboss.osgi.framework.bundle.OSGiBundleManager.validateBundle(OSGiBundleManager.java:893)

            at org.jboss.osgi.framework.bundle.OSGiBundleManager.addBundle(OSGiBundleManager.java:852)

            at org.jboss.osgi.framework.bundle.OSGiBundleManager.addDeployment(OSGiBundleManager.java:825)

            at org.jboss.osgi.framework.deployers.OSGiBundleStateAddDeployer.internalDeploy(OSGiBundleStateAddDeployer.java:61)

            at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)

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

            ... 32 more

             

            09:37:06,212 INFO  [FrameworkEventsPluginImpl] Bundle INSTALLED: Bundle{jboss-osgi-blueprint-1.0.0.Beta1}

            09:37:06,228 INFO  [FrameworkEventsPluginImpl] Bundle INSTALLED: Bundle{jboss-osgi-common-core-2.2.13.GA}

            09:37:06,244 INFO  [FrameworkEventsPluginImpl] Bundle INSTALLED: Bundle{jboss-osgi-common-1.0.3}

            09:37:06,244 INFO  [FrameworkEventsPluginImpl] Bundle INSTALLED: Bundle{jboss-osgi-husky-1.0.3}

            • 3. Re: JBoss 6 support
              thomas.diesler

              works for me

               

              17:33:21,173 INFO  [org.jboss.osgi.framework.plugins.internal.FrameworkEventsPluginImpl] Service REGISTERED: Service{id=37 classes=[javax.xml.parsers.SAXParserFactory]}
              17:33:21,194 INFO  [org.jboss.osgi.framework.plugins.internal.FrameworkEventsPluginImpl] Service REGISTERED: Service{id=38 classes=[javax.xml.parsers.DocumentBuilderFactory]}
              17:33:21,197 INFO  [org.jboss.osgi.framework.plugins.internal.FrameworkEventsPluginImpl] Bundle STARTED: Bundle{jboss-osgi-apache-xerces-2.9.1.SP3}
              
              

               

              Still, I'm curious to know how this exception can possibly appear. Would you be able to work with me to find out whats going on?

               

              The easiest way to find out is to connect your debugger to the server and set a breakpoint here

               

              OSGiBundleManager.addBundle(OSGiBundleManager.java:852)

               


              Enable JPDA remote debugging in bin/run.conf

              • 4. Re: JBoss 6 support
                sjcohn
                Sorry I will not be able to help.