3 Replies Latest reply on Mar 12, 2013 7:38 AM by thomas.diesler

    How to debug indirect OSGi dependencies? (AS7.2.0.alpha)

    jrantav

      Trying to deploy my app, I get

       

      [standalone@localhost:9999 /] deploy my-app.war

      {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:

      " => {"Operation step-2" => {"JBAS014879: One or more services were unable to st

      art due to one or more indirect dependencies not being available." => {"Services

      that were unable to start:" => ["jbosgi.bundle.my-app.\"1.0.0.SNAPSHO

      T\".bid88.RESOLVED","jboss.deployment.unit.\"my-app.war\".FIRST_MODULE

      _USE"],"Services that may be the cause:" => ["jboss.module.service.\"deployment.

      my-service-1.0-SNAPSHOT.jar\".main","jboss.module.spec.service.\"deplo

      yment.my-service-1.0-SNAPSHOT.jar\".main"]}}}}

       

      Now, my-service-1.0-SNAPSHOT is running just fine:

      [standalone@localhost:9999 /] /subsystem=osgi:read-children-resources(child-type

      =bundle,include-runtime=true)

      ...

      "78" => {

          "id" => 78L,

          "location" => "my-service-1.0-SNAPSHOT.jar",

          "startlevel" => 1,

          "state" => "ACTIVE",

          "symbolic-name" => "my-service",

          "type" => "bundle",

          "version" => "1.0.0.SNAPSHOT"

      },

       

      so how am I supposed to debug what's wrong? There is the same info in the log also, nothing more. I've also checked that manifests should match:

       

      Import-Package: my.service.service.v1;version="[0.0,1.0)",my.service.ws.client;version="[0.0,1.0)"

       

      Export-Package: my.service.service.v1;version="0.1",my.service.ws.client;version="0.1"