Larry, 



A number of us have slogged through getting Oracle and JDBC to work inside of 
Felix.  To expand the number of answers you can get as you work through this 
process, I invite you to check out the Karaf user-group also. 
http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html 



v/r, 



Mike Van 


----- Original Message ----- 
From: "Larry T" <[email protected]> 
To: [email protected] 
Sent: Thursday, November 11, 2010 12:48:01 PM 
Subject: Oracle JDBC in OSGI 


I'm trying to migrate a simple application into our OSGi framework.  I've got 
the typical code that does: 

Class.forName("oracle.jdbc.driver.OracleDriver"); 
connection = DriverManager.getConnection(url, user, pass); 

and i get a CNFE on the driver.  I don't have an OSGi-ified ojdbc6.jar 
bundle, so I tried to embed the stuff in my bundle by using the following in 
my pom: 

<Embed-Dependency>*;scope=compile;artifactId=ojdbc6</Embed-Dependency> 

Which gets past the CNFE, but then I get the following when deploying my 
bundle: 

org.osgi.framework.BundleException: Unresolved constraint in bundle <my 
bundle name>: Unable to reolve 275.0: missing requirement [275.0] package; 
(package=com.sun.security.auth.module) 

I don't want to go down the path of finding all dependencies and embedding 
them.  Isn't there an OSGi-ified bundle for ojdbc6.jar around?  There must 
be others who are using JDBC from within OSGi, right? 

Thanks, 
 Larry 
-- 
View this message in context: 
http://old.nabble.com/Oracle-JDBC-in-OSGI-tp30192290p30192290.html 
Sent from the Apache Felix - Users mailing list archive at Nabble.com. 


--------------------------------------------------------------------- 
To unsubscribe, e-mail: [email protected] 
For additional commands, e-mail: [email protected] 

Reply via email to