Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-2554

Bundle is waiting for dependency (javax.persistence.EntityManagerFactory) after rebooting JBoss Fuse

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • None
    • jboss-fuse-6.1
    • Aries
    • None
    • % %

    Description

      When a Hibernate persistence bundle is loaded into a clean instance of Fuse 6.1, the original installation works without any problems (Maven project with features attached.)

      JBossFuse:karaf@root> features:addurl mvn:fuse-pocs/fuse-pocs-blueprint-hibernate42-features/1.0-SNAPSHOT/xml/features
      JBossFuse:karaf@root> features:install hibernate42-persistence

      The persistence bundle shows as Active:
      [ 283] [Active ] [Created ] [ ] [ 60] fuse-pocs-blueprint-hibernate42-bundle (1.0.0.SNAPSHOT)

      Running ls shows an EntityManagerFactory instance registered:

      fuse-pocs-blueprint-hibernate42-bundle (283) provides:
      ------------------------------------------------------
      objectClass = javax.persistence.EntityManagerFactory
      org.apache.aries.jpa.container.managed = true
      org.apache.aries.jpa.default.unit.name = false
      osgi.unit.name = PERSON
      osgi.unit.provider = org.hibernate.ejb.HibernatePersistence
      osgi.unit.version = 1.0.0.SNAPSHOT
      service.id = 599


      objectClass = javax.persistence.EntityManagerFactory, org.apache.aries.jpa.container.sync.Synchronization
      org.apache.aries.jpa.container.managed = true
      org.apache.aries.jpa.default.unit.name = false
      org.apache.aries.jpa.proxy.factory = true
      osgi.unit.name = PERSON
      osgi.unit.provider = org.hibernate.ejb.HibernatePersistence
      osgi.unit.version = 1.0.0.SNAPSHOT
      service.id = 600


      objectClass = fuse.pocs.blueprint.openjpa.PersonService
      osgi.service.blueprint.compname = personService
      service.id = 601


      objectClass = org.osgi.service.blueprint.container.BlueprintContainer
      osgi.blueprint.container.symbolicname = fuse-pocs.blueprint-hibernate42-bundle
      osgi.blueprint.container.version = 1.0.0.SNAPSHOT
      service.id = 602

      Restarting the bundle gives the same effect.

      When the container is shut down and restarted, the bundle is in the following state:

      [ 283] [Active ] [GracePeriod ] [ ] [ 60] fuse-pocs-blueprint-hibernate42-bundle (1.0.0.SNAPSHOT)

      Log output as follows:

      2015-01-27 14:14:00,092 | ERROR | NAPSHOT-thread-2 | aries | ? ? | 266 - org.apache.aries.jpa.blueprint.aries - 1.0.1.redhat-611412 | No org.apache.aries.jpa.container.sync.Synchronization service registered.
      2015-01-27 14:14:00,094 | INFO | NAPSHOT-thread-2 | BlueprintContainerImpl | ? ? | 14 - org.apache.aries.blueprint.core - 1.0.1.redhat-611412 | Bundle fuse-pocs.blueprint-hibernate42-bundle is waiting for dependencies [(&(&(org.apache.aries.jpa.proxy.factory=true)(osgi.unit.name=PERSON))(objectClass=javax.persistence.EntityManagerFactory))]

      Original description of problem located at: https://developer.jboss.org/thread/251893

      Attachments

        Activity

          People

            acosenti Andrea Cosentino
            cmoullia Charles Moulliard
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: