Hi,

Posting to the forum as a last resort...

I have a DAO Bundle which uses Open JPA to talk to a MySQL database using
Spring3.
Output of osgi:list below

karaf@root> osgi:list

START LEVEL 100 , List Threshold: 50
   ID   State         Blueprint      Spring    Level  Name
[  54] [Active     ] [            ] [       ] [   80] Apache ServiceMix ::
Specs :: Stax API 1.0 (1.9.0)
[  59] [Active     ] [            ] [       ] [   80] Commons Pool (1.5.4)
[  60] [Active     ] [            ] [       ] [   80] Commons DBCP (1.4)
[ 108] [Active     ] [            ] [       ] [   80] Apache Geronimo
JSR-317 JPA 2.0 Spec API (1.1)
[ 109] [Active     ] [            ] [       ] [   80] Commons Collections
(3.2.1)
[ 110] [Active     ] [            ] [       ] [   80] Commons Lang (2.6)
[ 111] [Active     ] [            ] [       ] [   80] Sun Microsystems' JDBC
Driver for MySQL (5.1.18)
[ 112] [Active     ] [            ] [       ] [   80]
wrap_mvn_net.sourceforge.serp_serp_1.13.1 (0)
[ 113] [Active     ] [            ] [       ] [   80]
wrap_mvn_org.yaml_snakeyaml_1.6 (0)
[ 114] [Active     ] [            ] [       ] [   80]
wrap_mvn_javax.validation_validation-api_1.0.0.GA (0)
[ 120] [Active     ] [            ] [Started] [   80] osa-core
[com.xxx.osa.core] (1.0)
[ 121] [Active     ] [            ] [Started] [   80] osa-dao
[com.xxx.osa.dao] (1.0)
[ 122] [Active     ] [            ] [       ] [   80] osa-api
[com.xxx.osa.api] (1.0)

I changed the Open JPA 2.2.0 bundle-level to 19 so that it gets cleaned up
first during shutdown

When I make my method call, I get an exception 
Caused by: java.sql.SQLException: No suitable driver found for
jdbc:mysql://localhost:3306/osa


My manifest imports the following

org.springframework.beans.factory.config,
                                                        
org.springframework.orm.jpa,
                                                        
org.springframework.jdbc.datasource,
                                                        
org.springframework.orm.jpa.vendor,
                                                        
org.springframework.orm.jpa.support,
                                                        com.mysql.jdbc,
                                                        
javax.validation.constraints,
                                                        javax.persistence,
                                                        
javax.persistence.criteria,
                                                        
javax.persistence.metamodel,
                                                        javax.persistence.spi,
                                                        javax.sql,
                                                        org.springframework.aop,
                                                        
org.springframework.aop.framework,
                                                        org.aopalliance.aop,
                                                        
org.apache.openjpa.persistence,
                                                        org.apache.openjpa.conf,
                                                        
org.apache.openjpa.persistence.criteria,
                                                        
org.apache.openjpa.persistence.query,
                                                        java.sql,
                                                        *


Since the MySQL bundle is already running (See output of osgi:list above), I
am not sure what is going on.
Can anyone throw some light on what could be going wrong here ?

-Alexei



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Spring3-OpenJPA-MySQL-tp4028888.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to