11 Replies Latest reply on May 26, 2015 5:07 PM by Rafael Soares (Tuelho)

    Another question about DB in JBoss fuse

    Neto Pires Newbie

      Hello all,


      I would like to develop a set of containers that change information among them. One of these containers has to get the information and save it in a DB. In order to learn how to that, I was following this tutorial.



      The tutorial is really good and I could learn how to use the technologies. Running the example in a "Local Camel Context" in eclipse, it works.


      However, my problem is to create a container in a remote jboss fuse via fabric8. And in order to do that, I was following another tutorial:



      And when a create a container with the uploaded profile, a error with the following message appears:


      Provision Exception:

      org.osgi.service.resolver.ResolutionException: Unable to resolve dummy/0.0.0: missing requirement [dummy/0.0.0] osgi.identity; osgi.identity=database; type=osgi.bundle; version="[1.0.0.SNAPSHOT,1.0.0.SNAPSHOT]" [caused by: Unable to resolve database/1.0.0.SNAPSHOT: missing requirement [database/1.0.0.SNAPSHOT] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.apache.commons.dbcp)(version>=1.4.0)(!(version>=2.0.0)))" [caused by: Unable to resolve org.apache.commons.dbcp/1.4.0: missing requirement [org.apache.commons.dbcp/1.4.0] osgi.wiring.package; filter:="(osgi.wiring.package=org.apache.commons.pool)"]]

        at org.apache.felix.resolver.Candidates.populateResource(Candidates.java:285)

        at org.apache.felix.resolver.Candidates.populate(Candidates.java:153)

        at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:148)

        at io.fabric8.agent.DeploymentBuilder.resolve(DeploymentBuilder.java:226)

        at io.fabric8.agent.DeploymentAgent.doUpdate(DeploymentAgent.java:521)

        at io.fabric8.agent.DeploymentAgent$2.run(DeploymentAgent.java:252)

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

        at java.util.concurrent.FutureTask.run(FutureTask.java:262)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

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


      So, someone has a suggestion of how I can manage this error? I aready tried it:

      Configuring a MySQL JDBC persistence store in JBoss Fuse


      Thanks for the attention.