Hello!

i try to get H2 running in combination with EclipseLink (this is working 
fine as long as it is not running in an OSGi Service)

when i put it in an OSGi Service i get the following error.

[EL Severe]: ejb: 2013-06-12 
> 09:28:02.535--ServerSession(2511137)--Exception [EclipseLink-4002] (Eclipse 
> Persistence Services - 2.5.0.v20130507-3faac2b): 
> org.eclipse.persistence.exceptions.DatabaseException
> Internal Exception: java.sql.SQLException: No suitable driver found for 
> jdbc:h2:tcp://localhost:9092/~/test
> Error Code: 0


afaik this means that the org.h2.Driver is not found.

but in my code (EclipseLinkService - osgi service) i have the following 
lines:

> System.out.println("EclipseLinkService.connect()...");
> try {
> org.h2.Driver driver;
> Class.forName("org.h2.Driver");
> } catch (ClassNotFoundException e1) {
> e1.printStackTrace();
> }


no exception is raised at this position.
the package org.h2 is exported from my bundle (visible to all other bundles 
- but actually i doubt that any other bundle needs to know about this 
driver)

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to