db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dag H. Wanvik" <dag.wan...@oracle.com>
Subject Re: JBoss AS 7 integration with Derby 10.10
Date Mon, 07 Apr 2014 16:28:43 GMT

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: ajaykumar.srivastava@gmail.com 
>> <mailto:ajaykumar.srivastava@gmail.com>
>
> 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
>
>


Mime
View raw message