Skip to main content

where do I put JDBC drivers on v3?

7 replies [Last post]
Anonymous

I used to stick them under $ASADMIN_ROOT/lib and bounce the server,
but I can't figure out where they should go on v3.

Tried modules/ but it's not picking them up.

(Did I miss this in the docs? Couldn't find it in the admin guide or
the quickstarts.
Then again the v2 docs don't appear to explicitly state where JARs
should go either).

--
Rasputnik :: Jack of All Trades - Master of Nuns
http://number9.hellooperator.net/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Dick Davies

On Sun, Aug 31, 2008 at 2:00 PM, Sahoo wrote:
> V3 is compatible with V2, so you can place it in the same place as V2. I
> recommend domain1/lib (create it if it doesn't exist) instead of
> install_home/lib. No need to create any bug, our documents are not finished
> yet.

I've just tried both of those locations (did have to create
domain1/lib as Kedar mentioned)
and in fact neither work on GFv3 (b22 promoted build, anyawy).
The only location I can put jars where they'll be loaded is
domains//lib/ext :

$ pwd
/Users/rasputnik/Applications/b22/glassfishv3-prelude
$ find . -name mysql\*jar
./glassfish/lib/mysql-connector-java-5.1.6-bin.jar
$ asadmin ping-connection-pool mysql_pool
remote failure: Ping JDBC Connection Pool for mysql_pool is Failed.

Command ping-connection-pool failed.
$ mv glassfish/lib/mysql-connector-java-5.1.6-bin.jar
glassfish/domains/domain1/lib
$ asadmin stop-domain;asadmin start-domain; asadmin
ping-connection-pool mysql_pool
Waiting for the domain to stop .......
Command stop-domain executed successfully.
Name of the domain started: [domain1] and
its location: [/Users/sisred/Applications/b22/glassfishv3-prelude/glassfish/domains/domain1].
Admin port for the domain: [4848].
remote failure: Ping JDBC Connection Pool for mysql_pool is Failed.

Command ping-connection-pool failed.

$ mv glassfish/domains/domain1/lib/mysql-connector-java-5.1.6-bin.jar
glassfish/domains/domain1/lib/ext
$ asadmin stop-domain;asadmin start-domain; asadmin
ping-connection-pool mysql_pool
Waiting for the domain to stop ...........
Command stop-domain executed successfully.
Name of the domain started: [domain1] and
its location: [/Users/sisred/Applications/b22/glassfishv3-prelude/glassfish/domains/domain1].
Admin port for the domain: [4848].

Command ping-connection-pool executed successfully.
$
--
Rasputnik :: Jack of All Trades - Master of Nuns
http://number9.hellooperator.net/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Sahoo

Dick Davies wrote:
> On Sun, Aug 31, 2008 at 2:00 PM, Sahoo wrote:
>
>> V3 is compatible with V2, so you can place it in the same place as V2. I
>> recommend domain1/lib (create it if it doesn't exist) instead of
>> install_home/lib. No need to create any bug, our documents are not finished
>> yet.
>>
>
> I've just tried both of those locations (did have to create
> domain1/lib as Kedar mentioned)
> and in fact neither work on GFv3 (b22 promoted build, anyawy).
> The only location I can put jars where they'll be loaded is
> domains//lib/ext :
>
> $ pwd
> /Users/rasputnik/Applications/b22/glassfishv3-prelude
> $ find . -name mysql\*jar
> ./glassfish/lib/mysql-connector-java-5.1.6-bin.jar
> $ asadmin ping-connection-pool mysql_pool
> remote failure: Ping JDBC Connection Pool for mysql_pool is Failed.
>
> Command ping-connection-pool failed.
> $ mv glassfish/lib/mysql-connector-java-5.1.6-bin.jar
> glassfish/domains/domain1/lib
> $ asadmin stop-domain;asadmin start-domain; asadmin
> ping-connection-pool mysql_pool
> Waiting for the domain to stop .......
> Command stop-domain executed successfully.
> Name of the domain started: [domain1] and
> its location: [/Users/sisred/Applications/b22/glassfishv3-prelude/glassfish/domains/domain1].
> Admin port for the domain: [4848].
> remote failure: Ping JDBC Connection Pool for mysql_pool is Failed.
>
> Command ping-connection-pool failed.
>
> $ mv glassfish/domains/domain1/lib/mysql-connector-java-5.1.6-bin.jar
> glassfish/domains/domain1/lib/ext
> $ asadmin stop-domain;asadmin start-domain; asadmin
> ping-connection-pool mysql_pool
> Waiting for the domain to stop ...........
> Command stop-domain executed successfully.
> Name of the domain started: [domain1] and
> its location: [/Users/sisred/Applications/b22/glassfishv3-prelude/glassfish/domains/domain1].
> Admin port for the domain: [4848].
>
> Command ping-connection-pool executed successfully.
> $
>
Currently, there is a known issue that none of the asadmin CLI execution
path can see libraries placed in library dirs. It is being addressed as
https://glassfish.dev.java.net/issues/show_bug.cgi?id=5596 . Increase
the priority if you can't wait.

I would also like to point out that if you try the same operation from
admingui, it would work. It is too bad that our admin GUI and CLI
commands behave differently.

Thanks,
Sahoo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Dick Davies

On Mon, Sep 1, 2008 at 4:53 AM, Sahoo wrote:

> Currently, there is a known issue that none of the asadmin CLI execution
> path can see libraries placed in library dirs. It is being addressed as
> https://glassfish.dev.java.net/issues/show_bug.cgi?id=5596 . Increase the
> priority if you can't wait.

Have stuck some points on it - thanks, that's what threw me.

> I would also like to point out that if you try the same operation from
> admingui, it would work. It is too bad that our admin GUI and CLI commands
> behave differently.

:)

--
Rasputnik :: Jack of All Trades - Master of Nuns
http://number9.hellooperator.net/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Kedar Mhaswade

Please see:
https://glassfish.dev.java.net/issues/show_bug.cgi?id=5783

Dick Davies wrote:
> Turns out that java.ext.dirs includes domains/domain1/lib/ext
>
> but domain1/lib doesn't exist, so you have to make that and then copy the
> jars in.
>
> This should probably be documented somewhere; I'll raise a fishcat ticket
> tonight.
>
> Sing out if I've got totally the wrong end of the stick here :)
>
> On Sun, Aug 31, 2008 at 10:11 AM, Dick Davies
> wrote:
>> I used to stick them under $ASADMIN_ROOT/lib and bounce the server,
>> but I can't figure out where they should go on v3.
>>
>> Tried modules/ but it's not picking them up.
>>
>> (Did I miss this in the docs? Couldn't find it in the admin guide or
>> the quickstarts.
>> Then again the v2 docs don't appear to explicitly state where JARs
>> should go either).
>>
>> --
>> Rasputnik :: Jack of All Trades - Master of Nuns
>> http://number9.hellooperator.net/
>>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Dick Davies

Turns out that java.ext.dirs includes domains/domain1/lib/ext

but domain1/lib doesn't exist, so you have to make that and then copy the
jars in.

This should probably be documented somewhere; I'll raise a fishcat ticket
tonight.

Sing out if I've got totally the wrong end of the stick here :)

On Sun, Aug 31, 2008 at 10:11 AM, Dick Davies
wrote:
> I used to stick them under $ASADMIN_ROOT/lib and bounce the server,
> but I can't figure out where they should go on v3.
>
> Tried modules/ but it's not picking them up.
>
> (Did I miss this in the docs? Couldn't find it in the admin guide or
> the quickstarts.
> Then again the v2 docs don't appear to explicitly state where JARs
> should go either).
>
> --
> Rasputnik :: Jack of All Trades - Master of Nuns
> http://number9.hellooperator.net/
>

--
Rasputnik :: Jack of All Trades - Master of Nuns
http://number9.hellooperator.net/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Sahoo

V3 is compatible with V2, so you can place it in the same place as V2. I
recommend domain1/lib (create it if it doesn't exist) instead of
install_home/lib. No need to create any bug, our documents are not
finished yet.

Thanks,
Sahoo

Dick Davies wrote:
> Turns out that java.ext.dirs includes domains/domain1/lib/ext
>
> but domain1/lib doesn't exist, so you have to make that and then copy the
> jars in.
>
> This should probably be documented somewhere; I'll raise a fishcat ticket
> tonight.
>
> Sing out if I've got totally the wrong end of the stick here :)
>
> On Sun, Aug 31, 2008 at 10:11 AM, Dick Davies
> wrote:
>
>> I used to stick them under $ASADMIN_ROOT/lib and bounce the server,
>> but I can't figure out where they should go on v3.
>>
>> Tried modules/ but it's not picking them up.
>>
>> (Did I miss this in the docs? Couldn't find it in the admin guide or
>> the quickstarts.
>> Then again the v2 docs don't appear to explicitly state where JARs
>> should go either).
>>
>> --
>> Rasputnik :: Jack of All Trades - Master of Nuns
>> http://number9.hellooperator.net/
>>
>>
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Dick Davies

Thanks Sahoo - is that documented anywhere - for v2 I mean?

On Sun, Aug 31, 2008 at 2:00 PM, Sahoo wrote:
> V3 is compatible with V2, so you can place it in the same place as V2. I
> recommend domain1/lib (create it if it doesn't exist) instead of
> install_home/lib. No need to create any bug, our documents are not finished
> yet.
>
> Thanks,
> Sahoo
>
> Dick Davies wrote:
>>
>> Turns out that java.ext.dirs includes domains/domain1/lib/ext
>>
>> but domain1/lib doesn't exist, so you have to make that and then copy the
>> jars in.
>>
>> This should probably be documented somewhere; I'll raise a fishcat ticket
>> tonight.
>>
>> Sing out if I've got totally the wrong end of the stick here :)
>>
>> On Sun, Aug 31, 2008 at 10:11 AM, Dick Davies
>> wrote:
>>
>>>
>>> I used to stick them under $ASADMIN_ROOT/lib and bounce the server,
>>> but I can't figure out where they should go on v3.
>>>
>>> Tried modules/ but it's not picking them up.
>>>
>>> (Did I miss this in the docs? Couldn't find it in the admin guide or
>>> the quickstarts.
>>> Then again the v2 docs don't appear to explicitly state where JARs
>>> should go either).
>>>
>>> --
>>> Rasputnik :: Jack of All Trades - Master of Nuns
>>> http://number9.hellooperator.net/
>>>
>>>
>>
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

--
Rasputnik :: Jack of All Trades - Master of Nuns
http://number9.hellooperator.net/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net