5 Replies Latest reply on Nov 28, 2012 10:09 AM by Thomas Diesler

    Unable to start OSGI bundle in Jboss 7.1.3

    Manish Devraj Newbie

      I upgraded and build Jboss from Git source tag . When I am trying to deploy OSGI bundles that worked on 7.1.1 I get following error log.

       

      [Server:ha-server-2] 18:04:32,368 INFO  [org.jboss.as.server] (Controller Boot Thread) JBAS018559: Deployed "myWeb.war"

      [Server:ha-server-2] 18:04:32,369 INFO  [org.jboss.as.server] (Controller Boot Thread) JBAS018559: Deployed "xyz.jar"

      [Server:ha-server-2] 18:04:32,370 INFO  [org.jboss.as.server] (Controller Boot Thread) JBAS018559: Deployed "ClusterWebApp.war"

      [Server:ha-server-2] 18:04:32,379 INFO  [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report

      [Server:ha-server-2] JBAS014775:    New missing/unsatisfied dependencies:

      [Server:ha-server-2]       service jbosgi.integration.PersistentBundlesHandler.COMPLETE (missing) dependents: [service jbosgi.framework.INIT]

      [Server:ha-server-2]       service jboss.module.spec.service."deployment.com.xyz"."1.0.0" (missing) dependents: [service jboss.module.service."deployment.myWeb.war".main]

      [Server:ha-server-2]       service jboss.osgi.as.initial.deployments.COMPLETE (missing) dependents: [service jbosgi.integration.PersistentBundlesHandler]

      [Server:ha-server-2]

      [Server:ha-server-2] 18:04:32,384 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss AS 7.1.3.Final "Arges" started (with errors) in 14836ms - Started 343 of 494 services (1 services failed or missing dependencies, 149 services are passive or on-demand)

       

      Can someone please help me fix the issue?

        • 1. Re: Unable to start OSGI bundle in Jboss 7.1.3
          Jignesh Patel Newbie

          More specific to above problem we are getting following error.

           

          JBAS014775:    New missing/unsatisfied dependencies:

                service jbosgi.integration.PersistentBundlesHandler.COMPLETE (missing) dependents: [service jbosgi.framework.INIT] .

           

           

          And I think the real solution is suggested here.

          https://issues.jboss.org/browse/AS7-4814

           

          But when we checked the code in 7.1.3 it seems already exist and getting  ingored at runtime.

           

          private Set<String> getDeploymentNames(OperationContext context) {

                     final Set<String> result = new HashSet<String>();

                     final ModelNode model = Resource.Tools.readModel(context.readResourceFromRoot(PathAddress.EMPTY_ADDRESS, true));

                     final ModelNode depmodel = model.get(ModelDescriptionConstants.DEPLOYMENT);

                     if (depmodel.isDefined()) {

                         final List<ModelNode> deploymentNodes = depmodel.asList();

                         for (ModelNode node : deploymentNodes) {

                             Property property = node.asProperty();

                             ModelNode enabled = property.getValue().get(ModelDescriptionConstants.ENABLED);

                             if (enabled.isDefined() && enabled.asBoolean()) {

                                 result.add(property.getName());

                             }

                         }

                         LOGGER.tracef("Expecting initial deployments: %s", result);

                     }

                     return result;

                 }

           

           

          Has anybody able to resolve the issue?

          • 2. Re: Unable to start OSGI bundle in Jboss 7.1.3
            Thomas Diesler Master

            Does this still occur with the latest build from the 7.1 branch?

            • 3. Re: Unable to start OSGI bundle in Jboss 7.1.3
              Rhys E Newbie

              Hi Thomas

               

              I'm getting the same issue. I've patched jboss/osgi/framework/jbosgi-framwork-core to the jbosgi-framework-core.1.3.1.CR1.jar from the Jboss 7.1.3.Final branch and patched it to a 7.1.2.Final install, and am getting the same problem (perhaps there's something else that needs updating that i missed?). I tried using the latest 7.1.4 build but it didn't seem to want to build out of the box.

               

              It basically occurs when i stop/start the server when any OSGi bundles are/were currently deployed.

               

              Thanks

              • 4. Re: Unable to start OSGI bundle in Jboss 7.1.3
                Rhys E Newbie

                To update on this, the error occurs on application startup when a non-OSGi deployment is deployed that has a dependency on an OSGi bundle.