Derby: no suitable driver found [message #389724] |
Wed, 24 June 2009 07:15 |
Christian Eugster Messages: 214 Registered: July 2009 Location: St. Gallen Switzerland |
Senior Member |
|
|
Hi,
I searched Pro JJB 3, the Eclipselink site
(http://www.eclipse.org/eclipselink), the wiki and googled too without
finding any useful hint.
I am developping a plugin, that uses eclipselink to connect to two
databases with identical table structure. The first ist a mysql db, the
second an embedded derby db. while i can connect the mysql database, I get
an exception saying No suitable driver found for jdbc:derby:cache. The
configuration is so, that when the mysql db connection fails, i can run
the program using the (embedded derby) cache db. The db drivers of both
db's are in the lib directory of my plugin and the classpath is set for
both of them. persistence.xml has two persistence-units with (of course)
different names, one for the mysql, one for the derby db. But even when I
comment out all the code for the mysql db (the persistence-unit in
persistence.xml too), the connection to derby fails. Has anyone an idea,
what could be the problem? As in
the specification of jpa it must be possible to use several
persistence-units in the persistence.xml file.
Thank you
|
|
|
|
Powered by
FUDForum. Page generated in 0.02861 seconds