You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Lin Sun <li...@gmail.com> on 2007/03/09 05:32:25 UTC
Re: svn commit: r516152 - /geronimo/server/trunk/configs/system-database/pom.xml
Hi Joe,
Just curious...why would we want to have derbyclient as a
system-database's dependency? IIUC geronimo is using derby as embedded
system database, I don't see a need to add derbyclient as a dependency.
Thanks, Lin
jbohn@apache.org wrote:
> Author: jbohn
> Date: Thu Mar 8 11:14:58 2007
> New Revision: 516152
>
> URL: http://svn.apache.org/viewvc?view=rev&rev=516152
> Log:
> add missing derby client jar to SystemDatabase
>
> Modified:
> geronimo/server/trunk/configs/system-database/pom.xml
>
> Modified: geronimo/server/trunk/configs/system-database/pom.xml
> URL: http://svn.apache.org/viewvc/geronimo/server/trunk/configs/system-database/pom.xml?view=diff&rev=516152&r1=516151&r2=516152
> ==============================================================================
> --- geronimo/server/trunk/configs/system-database/pom.xml (original)
> +++ geronimo/server/trunk/configs/system-database/pom.xml Thu Mar 8 11:14:58 2007
> @@ -72,6 +72,11 @@
> </dependency>
>
> <dependency>
> + <groupId>org.apache.derby</groupId>
> + <artifactId>derbyclient</artifactId>
> + </dependency>
> +
> + <dependency>
> <groupId>org.tranql</groupId>
> <artifactId>tranql-connector-derby-embed-xa</artifactId>
> <type>rar</type>
>
>
>
Re: svn commit: r516152 - /geronimo/server/trunk/configs/system-database/pom.xml
Posted by Lin Sun <li...@gmail.com>.
Hi David,
Yeah I ran into the following problem a few weeks ago:
I tried to deploy an ear file with tranql--derby-client-xa rar file. I
first tried to add the derbyclient along with system-database as the
dependencies of the ear file, but that didn't work (keeping getting CNF
error while I know the class is in the derbyclient.). Then I removed
the system-database off the dependency and it worked fine. That seems
to be the only way to get the derbyclient in the classloader without
modifying the system-database.
Lin
David Jencks wrote:
> I haven't investigated this problem personally but from discussions with
> Joe I think that the problem is a bizarre "feature" of DriverManager
> that attempts to protect you from yourself and instead shoots you in the
> foot. I don't remember the exact details but DriverManager won't supply
> Drivers for a URL unless they are in a very specific classloader. I
> think this gets the client driver in a classloader in which
> DriverManager will allow you to use it, whereas in any other classloader
> you cant get to the client driver.
>
> Sorry I'm kind of vague on the details -- I last ran into this
> personally about 3 years ago.
>
> thanks
> david jencks
>
> On Mar 8, 2007, at 11:32 PM, Lin Sun wrote:
>
>> Hi Joe,
>>
>> Just curious...why would we want to have derbyclient as a
>> system-database's dependency? IIUC geronimo is using derby as
>> embedded system database, I don't see a need to add derbyclient as a
>> dependency.
>>
>> Thanks, Lin
>>
>> jbohn@apache.org wrote:
>>> Author: jbohn
>>> Date: Thu Mar 8 11:14:58 2007
>>> New Revision: 516152
>>> URL: http://svn.apache.org/viewvc?view=rev&rev=516152
>>> Log:
>>> add missing derby client jar to SystemDatabase
>>> Modified:
>>> geronimo/server/trunk/configs/system-database/pom.xml
>>> Modified: geronimo/server/trunk/configs/system-database/pom.xml
>>> URL:
>>> http://svn.apache.org/viewvc/geronimo/server/trunk/configs/system-database/pom.xml?view=diff&rev=516152&r1=516151&r2=516152
>>>
>>> ==============================================================================
>>>
>>> --- geronimo/server/trunk/configs/system-database/pom.xml (original)
>>> +++ geronimo/server/trunk/configs/system-database/pom.xml Thu Mar 8
>>> 11:14:58 2007
>>> @@ -72,6 +72,11 @@
>>> </dependency>
>>> <dependency>
>>> + <groupId>org.apache.derby</groupId>
>>> + <artifactId>derbyclient</artifactId>
>>> + </dependency>
>>> +
>>> + <dependency>
>>> <groupId>org.tranql</groupId>
>>> <artifactId>tranql-connector-derby-embed-xa</artifactId>
>>> <type>rar</type>
>>
>
>
Re: svn commit: r516152 - /geronimo/server/trunk/configs/system-database/pom.xml
Posted by David Jencks <da...@yahoo.com>.
I haven't investigated this problem personally but from discussions
with Joe I think that the problem is a bizarre "feature" of
DriverManager that attempts to protect you from yourself and instead
shoots you in the foot. I don't remember the exact details but
DriverManager won't supply Drivers for a URL unless they are in a
very specific classloader. I think this gets the client driver in a
classloader in which DriverManager will allow you to use it, whereas
in any other classloader you cant get to the client driver.
Sorry I'm kind of vague on the details -- I last ran into this
personally about 3 years ago.
thanks
david jencks
On Mar 8, 2007, at 11:32 PM, Lin Sun wrote:
> Hi Joe,
>
> Just curious...why would we want to have derbyclient as a system-
> database's dependency? IIUC geronimo is using derby as embedded
> system database, I don't see a need to add derbyclient as a
> dependency.
>
> Thanks, Lin
>
> jbohn@apache.org wrote:
>> Author: jbohn
>> Date: Thu Mar 8 11:14:58 2007
>> New Revision: 516152
>> URL: http://svn.apache.org/viewvc?view=rev&rev=516152
>> Log:
>> add missing derby client jar to SystemDatabase
>> Modified:
>> geronimo/server/trunk/configs/system-database/pom.xml
>> Modified: geronimo/server/trunk/configs/system-database/pom.xml
>> URL: http://svn.apache.org/viewvc/geronimo/server/trunk/configs/
>> system-database/pom.xml?view=diff&rev=516152&r1=516151&r2=516152
>> =====================================================================
>> =========
>> --- geronimo/server/trunk/configs/system-database/pom.xml (original)
>> +++ geronimo/server/trunk/configs/system-database/pom.xml Thu Mar
>> 8 11:14:58 2007
>> @@ -72,6 +72,11 @@
>> </dependency>
>> <dependency>
>> + <groupId>org.apache.derby</groupId>
>> + <artifactId>derbyclient</artifactId>
>> + </dependency>
>> +
>> + <dependency>
>> <groupId>org.tranql</groupId>
>> <artifactId>tranql-connector-derby-embed-xa</artifactId>
>> <type>rar</type>
>