1 Reply Latest reply on Aug 5, 2012 10:33 PM by ffang

    Issue with Hibernate dependencies

    vmahe

      Hello everyone,

       

      I'm using apache-servicemix-4.4.1-fuse-07-11 and would like to use Hibernate 4.1.2 in one of my bundles in order to access a relational database.

       

      Since I have added the hibernate-core and javassist dependencies, I have many issues with other dependencies.

      I needed to add the following entries in my jre.properties file :

      com.sun.jdi, \

      com.sun.jdi.connect, \

      com.sun.jdi.event, \

      com.sun.jdi.request, \

      javax.security.jacc, \

      javax.validation, \

      javax.validation.constraints, \

      javax.validation.groups, \

      javax.validation.metadata, \

       

      And also the following embedded dependencies in my pom.xml file :

      <Embed-Dependency>classmate,hibernate-core,hsqldb,javassist,persistence-api,hibernate-commons-annotations,jandex,jboss-logging,jboss-logmanager,jboss-modules</Embed-Dependency>

       

      Now, Fuse is still requiring the org.springframework.jdbc.datasource package.

      I can see that in the $FUSE_HOME/system/ directory there is already this dependency present but how can I use it in my bundle ?

      Do I need to launch some magic command under the Karaf Console ?

       

      Thanks,

       

      Regards,

       

      Vincent

        • 1. Re: Issue with Hibernate dependencies
          ffang

          Hi,

           

          $FUSE_HOME/system/ has that bundle doesn't mean that bundle get installed already, $FUSE_HOME/system/ is just a local maven repo which pax-url-mvn firstly go to check.

           

          Ensure you already installed spring-jdbc bundle and your customer bundle import org.springframework.jdbc.datasource package.

           

          Freeman