Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Derby: no suitable driver found
Derby: no suitable driver found [message #389724] Wed, 24 June 2009 07:15 Go to next message
Christian Eugster is currently offline Christian EugsterFriend
Messages: 134
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
Re: Derby: no suitable driver found: [message #389727 is a reply to message #389724] Wed, 24 June 2009 07:43 Go to previous message
Christian Eugster is currently offline Christian EugsterFriend
Messages: 134
Registered: July 2009
Location: St. Gallen Switzerland
Senior Member
Sorry for this, it works now, I seems, that the first time there must be a
database or the create=true option in the url.

Christian
Previous Topic:upgrading to 1.1.1.: IdentityWeakHashMap does not support null as a key or value
Next Topic:EclipseLink 1.1.2 Released in Galileo
Goto Forum:
  


Current Time: Fri Nov 28 00:36:34 GMT 2014

Powered by FUDForum. Page generated in 0.01635 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software