You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by "Maarten Th. Mulders" <ma...@student.eur.nl> on 2007/05/31 01:55:25 UTC

OpenEJB 1.0 and Derby

Hi all,

maybe this is a question you'd answer with "RTFM", but I can't figure it out. 
I'd like to run OpenEJB with a Derby database connected using JDBC.
OpenEJB keeps saying that it can't load the class (ClassNotFoundException), 
although I added the JAR-file to my $CLASSPATH environment variable.
Where should I put the JAR-file containing the Derby JDBC-drivers? Should I 
specify its existence somewhere?

Kind regards,

Maarten

Re: OpenEJB 1.0 and Derby

Posted by Karan Malhi <ka...@gmail.com>.
As far as I know, only derbyclient.jar is required

On 5/31/07, David Blevins <da...@visi.com> wrote:
>
>
> On May 31, 2007, at 2:47 PM, Maarten Th. Mulders wrote:
>
> > David Blevins wrote:
> >> On May 30, 2007, at 4:55 PM, Maarten Th. Mulders wrote:
> >>
> >>> Hi all,
> >>>
> >>> maybe this is a question you'd answer with "RTFM", but I can't
> >>> figure
> >>> it out.
> >>> I'd like to run OpenEJB with a Derby database connected using JDBC.
> >>> OpenEJB keeps saying that it can't load the class
> >>> (ClassNotFoundException),
> >>> although I added the JAR-file to my $CLASSPATH environment variable.
> >>> Where should I put the JAR-file containing the Derby JDBC-drivers?
> >>> Should I
> >>> specify its existence somewhere?
> >>
> >> Put them in the {openejb.home}/lib directory next to the openejb-
> >> core jar.
> >>
> >> -David
> >
> > I did, there's a derby.jar which does not contain the class
> > org.apache.derby.jdbc.ClientDriver. Neither am I sure which class
> > is the
> > JDBC-driver for network-based connections. I will use the
> > EmbeddedDriver
> > instead, it seams to work. Thanks anyway.
>
> For the network based driver you definitely need the
> derbyclient.jar.  I seem to recall the need for derbytools or
> derbynet, but the docs and my memory aren't clear on that --
> certainly can't hurt.
>
> -David
>
>


-- 
Karan Malhi

Re: OpenEJB 1.0 and Derby

Posted by David Blevins <da...@visi.com>.
On May 31, 2007, at 2:47 PM, Maarten Th. Mulders wrote:

> David Blevins wrote:
>> On May 30, 2007, at 4:55 PM, Maarten Th. Mulders wrote:
>>
>>> Hi all,
>>>
>>> maybe this is a question you'd answer with "RTFM", but I can't  
>>> figure
>>> it out.
>>> I'd like to run OpenEJB with a Derby database connected using JDBC.
>>> OpenEJB keeps saying that it can't load the class
>>> (ClassNotFoundException),
>>> although I added the JAR-file to my $CLASSPATH environment variable.
>>> Where should I put the JAR-file containing the Derby JDBC-drivers?
>>> Should I
>>> specify its existence somewhere?
>>
>> Put them in the {openejb.home}/lib directory next to the openejb- 
>> core jar.
>>
>> -David
>
> I did, there's a derby.jar which does not contain the class
> org.apache.derby.jdbc.ClientDriver. Neither am I sure which class  
> is the
> JDBC-driver for network-based connections. I will use the  
> EmbeddedDriver
> instead, it seams to work. Thanks anyway.

For the network based driver you definitely need the  
derbyclient.jar.  I seem to recall the need for derbytools or  
derbynet, but the docs and my memory aren't clear on that --  
certainly can't hurt.

-David


Re: OpenEJB 1.0 and Derby

Posted by "Maarten Th. Mulders" <ma...@student.eur.nl>.
David Blevins wrote:
> On May 30, 2007, at 4:55 PM, Maarten Th. Mulders wrote:
> 
>> Hi all,
>>
>> maybe this is a question you'd answer with "RTFM", but I can't figure
>> it out.
>> I'd like to run OpenEJB with a Derby database connected using JDBC.
>> OpenEJB keeps saying that it can't load the class
>> (ClassNotFoundException),
>> although I added the JAR-file to my $CLASSPATH environment variable.
>> Where should I put the JAR-file containing the Derby JDBC-drivers?
>> Should I
>> specify its existence somewhere?
> 
> Put them in the {openejb.home}/lib directory next to the openejb-core jar.
> 
> -David

I did, there's a derby.jar which does not contain the class
org.apache.derby.jdbc.ClientDriver. Neither am I sure which class is the
JDBC-driver for network-based connections. I will use the EmbeddedDriver
instead, it seams to work. Thanks anyway.

Regards,

Maarten

Re: OpenEJB 1.0 and Derby

Posted by David Blevins <da...@visi.com>.
On May 30, 2007, at 4:55 PM, Maarten Th. Mulders wrote:

> Hi all,
>
> maybe this is a question you'd answer with "RTFM", but I can't  
> figure it out.
> I'd like to run OpenEJB with a Derby database connected using JDBC.
> OpenEJB keeps saying that it can't load the class  
> (ClassNotFoundException),
> although I added the JAR-file to my $CLASSPATH environment variable.
> Where should I put the JAR-file containing the Derby JDBC-drivers?  
> Should I
> specify its existence somewhere?

Put them in the {openejb.home}/lib directory next to the openejb-core  
jar.

-David