Get your CodeRanch badge!*
The moose likes Other Application Frameworks and the fly likes Cannot find Class : [javax.sql.DataSource], while exposing Data Source as a Service in blueprint.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Cannot find Class : [javax.sql.DataSource], while exposing Data Source as a Service in blueprint.xml" Watch "Cannot find Class : [javax.sql.DataSource], while exposing Data Source as a Service in blueprint.xml" New topic
Author

Cannot find Class : [javax.sql.DataSource], while exposing Data Source as a Service in blueprint.xml

R. Jain
Ranch Hand

Joined: Aug 11, 2012
Posts: 367
    
    1

Hello,

I am working on Enterprise OSGi.
I have a data source bundle (A Jar file with some extra Meta-Information in OSGI), which is trying to expose a DataSource as a Service...

The blueprint.xml inside that bundle looks like: -



I have added javax.sql.DataSource and mysql.jdbc.jdbc2.optional in the import-packages header in Manifest...

My Manifest looks like this: -


But when I am trying to load this bundle into the Apache Aries Environment, I am getting a ClassNotFoundException: javax.sql.DataSource
It is also showing: - Unable to start blueprint container for the bundle datasource

Anyone have any Idea, where I am doing anything wrong...
 
 
subject: Cannot find Class : [javax.sql.DataSource], while exposing Data Source as a Service in blueprint.xml
 
Similar Threads
I get the bean for one class and for other it is null
Spring DM versus JSR-291
exceptions in spring configuration file.
Spring JDBC Transaction