On 04. april 2014 20:43, Zorro wrote:
Ajay Kumar Srivastava schreef op 3-4-2014 14:58:
Hi , I am struggling with crating JNDI connection with JBOSS for derby. When I try to access table from a Servlet I use to get error

Caused by: javax.resource.ResourceException: Wrong driver class [class org.apache.derby.jdbc.ClientDriver] for this connection URL [jdbc:derby:DerbyDB;create=true]

--
With Regard's

Ajay Kumar Srivastava

mail: [email protected] <mailto:[email protected]>

I don't know whether this will help you but for Tomcat using the Derby NetworkServer I do use the URL: url="jdbc:derby://localhost:1527/derby.db".

Yes, this is the correct syntax for a URL for the client driver. The URL "jdbc:derby:DerbyDB;create=true" is for the Derby embedded driver (notice the absence of the "://<host>:<port>/" part required for
a client connection.

Thanks,
Dag


Regards,
Harm-Jan Zwinderman

http://Cebuned.svipr.nl/Cebuned.html



Reply via email to