30 Apr 2012 11:09
Can not load JDBC driver named 'org.apache.derby.jdbc.ClientDriver'
Tadrierion <axelsecoue <at> gmail.com>
2012-04-30 09:09:51 GMT
2012-04-30 09:09:51 GMT
Hello,
I'm French so I'm sorry if I make some mistakes.
I have created a database and I have generated classes thanks to Cayenne.
Driver used : org.apache.derby.jdbc.EmbeddedDriver
URL : jdbc:derby:database
I have created a "main" class to insert and delete some informations from
the database (it's not a memory database). It works perfectly and this, from
a remote client.
Now I want to connect more than one client on the database at the same time.
So in CayenneModeler I change the driver and the URL :
Driver used : org.apache.derby.ClientDriver
URL : jdbc:derby://localhost/database
After' I launch the jetty server (port 8080) and the derby server (port
1527) from Eclipse. I run the main class in the client machine and I obtain
an error :
/26-Apr-2012 10:25:15 org.apache.cayenne.access.QueryLogger
logConnectFailure
INFO: *** Connecting: FAILURE.
java.sql.SQLException: Can not load JDBC driver named
'org.apache.derby.jdbc.ClientDriver': org.apache.derby.jdbc.ClientDriver
at
org.apache.cayenne.conn.DriverDataSource.loadDriver(DriverDataSource.java:59)
at
org.apache.cayenne.conn.DriverDataSource.setDriverClassName(DriverDataSource.java:253)
at
org.apache.cayenne.conn.DriverDataSource.<init>(DriverDataSource.java:98)
at
(Continue reading)
)
(Although to be more precise, you initialize the shared
configuration and then they all use it -- has nothing to do with the
first DC that was created.)
mrg
RSS Feed