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

Can't install Hibernate feature via Fabric

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • M1
    • jboss-fuse-6.0, jboss-fuse-6.1
    • None
    • None
    • % %

    Description

      Please unzip and build (mvn clean install) attached project.

      I can successfully install the application using attached feature file.

      features:addurl file:///home/hkonsek/Desktop/testcase_03_07_14/hibernate_features.xml
      features:install hibernate-example
      
      JBossFuse:karaf@root> osgi:list | grep hibernate
      [ 263] [Active     ] [            ] [       ] [   60] hibernate-commons-annotations (4.0.4.Final)
      [ 264] [Active     ] [            ] [       ] [   60] hibernate-core (4.2.9.Final)
      [ 265] [Active     ] [            ] [       ] [   60] hibernate-entitymanager (4.2.9.Final)
      [ 266] [Active     ] [            ] [       ] [   60] hibernate-osgi (4.2.9.Final)
      [ 268] [Active     ] [Created     ] [       ] [   60] fuse-pocs-blueprint-hibernate42-raw-datasource (1.0.0.SNAPSHOT)
      [ 269] [Active     ] [Created     ] [Started] [   60] fuse-pocs-blueprint-hibernate42-raw-bundle (1.0.0.SNAPSHOT)
      

      If I try to do the same via Fabric:

      fabric:profile-create --parents camel hibernate
      fabric:profile-edit --repositories file:///home/hkonsek/Desktop/testcase_03_07_14/hibernate_features.xml  hibernate
      fabric:profile-edit --features hibernate-example hibernate
      container-create-child --profile hibernate root hibernate-node
      

      I get the following error on the provisioned machine:

      2014-03-14 15:18:02,421 | ERROR | agent-1-thread-1 | DeploymentAgent                  | e.fabric.agent.DeploymentAgent$1  245 | 67 - org.fusesource.fabric.fabric-agent - 7.2.0.redhat-024 | Unable to update agent
      java.lang.Exception: Can not resolve feature:
      Unsatisfied requirement(s):
      ---------------------------
         service:(service=javax.persistence.EntityManagerFactory)
            fuse-pocs-blueprint-hibernate42-raw-bundle
         service:(service=javax.persistence.spi.PersistenceProvider)
            fuse-pocs-blueprint-hibernate42-raw-bundle
      
      	at org.fusesource.fabric.agent.ObrResolver.resolve(ObrResolver.java:215)[67:org.fusesource.fabric.fabric-agent:7.2.0.redhat-024]
      	at org.fusesource.fabric.agent.DeploymentAgent.updateDeployment(DeploymentAgent.java:566)[67:org.fusesource.fabric.fabric-agent:7.2.0.redhat-024]
      	at org.fusesource.fabric.agent.DeploymentAgent.doUpdate(DeploymentAgent.java:432)[67:org.fusesource.fabric.fabric-agent:7.2.0.redhat-024]
      	at org.fusesource.fabric.agent.DeploymentAgent$1.run(DeploymentAgent.java:242)[67:org.fusesource.fabric.fabric-agent:7.2.0.redhat-024]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_45]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_45]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_45]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_45]
      	at java.lang.Thread.run(Thread.java:744)[:1.7.0_45]
      

      Attachments

        Issue Links

          Activity

            People

              ggrzybek Grzegorz Grzybek
              hkonsek Henryk Konsek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: