2 Replies Latest reply on Jan 11, 2012 12:54 PM by Bilal Farraj

    [org.springframework.jdbc.datasource.DrivverManagerDataSource] not found

    Bilal Farraj Newbie



      I am trying to have a database connection from a JBI project hosted inside servicemix4.3.1-fuse, what I did is the following:


      1. I downloaded spring-jdbc bundle (the same version of the installed spring bundles in servicemix) which is 3.0.5.RELEASE


      2. The installed bundle is active, as it is shown here:

         ID   State         Blueprint      Spring    Level  Name

      Spring Core (3.0.5.RELEASE)

      Spring ASM (3.0.5.RELEASE)

      Spring Expression Language (3.0.5.RELEASE)

      Spring Beans (3.0.5.RELEASE)

      Spring AOP (3.0.5.RELEASE)

      Spring Context (3.0.5.RELEASE)

      Spring Context Support (3.0.5.RELEASE)

      Spring Transaction (3.0.5.RELEASE)

      Spring JMS (3.0.5.RELEASE)

      Apache XBean :: Spring (3.7)

      Spring JDBC (3.0.5.RELEASE)


      3. I used this bean configuration to get the database connection:



      When I deploy my project I get this error:


      ERROR | use-03-01/deploy | CxfSeComponent | 90 - servicemix-common - 2011.01.0.fuse-03-01 | org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Bean class not found

      Offending resource: file

      Bean 'databaseConnection'; nested exception is java.lang.ClassNotFoundException: org.springframework.jdbc.datasource.DriverManagerDataSource in classloader org.apache.xbean.spring.context.FileSystemXmlApplicationContext@353e58cd


      I even tried to hot deploy the jar files for bothe mysql driver and spring jdbc, and also putting these jar files in the service unit before packing it, but I always get the same error.


      I would be thankful if you can help.