1 Reply Latest reply on Mar 21, 2016 9:35 AM by sonyjop

    To add MySQL driver into Fuse Fabric Profile

    sonyjop

      Hello

       

      I am using JBoss Fuse ESB v6.2. I use MySQl jdbc driver to connect to MySQl DB. This works well in camel:run.

      Now, I have created a profile and added into the Container. It gives me exception saying unable to find driver class - indicative that the Driver Jar file is not loaded.

       

      In my fabric8 pluggin configuration I give the below:

      <fabric8.version>1.2.0.redhat-621084</fabric8.version>

        <fabric8.profile>techmahindra-associatemanagement</fabric8.profile>

        <fabric8.bundles>

        wrap:mvn:com.mysql.jdbc/mysql-connector-java/5.1.23-bin

        mvn:commons-dbcp/commons-dbcp/1.4

        mvn:commons-pool/commons-pool/1.6

        mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.derby/10.12.1.1_1

        </fabric8.bundles>

        <fabric8.features>spring-jdbc camel-sql camel-jetty jdbc

        </fabric8.features>

       

      Also the bundle pluggin is as below:

      <configuration>

        <instructions>

        <Bundle-SymbolicName>associatemanagement</Bundle-SymbolicName>

        <Private-Package>com.techmahindra.mw.associatemanagement.*</Private-Package>

        <Import-Package>*</Import-Package>

        <DynamicImport-Package>*</DynamicImport-Package>

        </instructions>

        </configuration>

      I am not sure why this is not working. Is there a way to check whether the Driver loaded successfully or has the loading got some problem.

        • 1. Re: To add MySQL driver into Fuse Fabric Profile
          sonyjop

          Hello All,

           

          I think I got a solution myself. The steps I followed was perfect. I think there was something sticky which got solved when I cleared my Container/data/cache folder after stopping the container and the started it back. everything seems to be working fine. thanks All.