users@glassfish.java.net

RE: where to place JDBC driver's dot jar file in GlassFish directorystructure?

From: Sigal Shaharabani <Sigal.Shaharabani_at_Teledata-Networks.com>
Date: Mon, 27 Feb 2012 10:54:38 +0200

We put the driver under <domain>/lib/ext/

HTH

P please consider the environment - do you really need to print this
email?

-----Original Message-----
From: modjklist_at_comcast.net [mailto:modjklist_at_comcast.net]
Sent: Sunday, February 26, 2012 8:02 PM
To: users_at_glassfish.java.net
Subject: where to place JDBC driver's dot jar file in GlassFish
directorystructure?

Hello, I'm running an Linux (CentOS 6.2) application that reports the
following error when trying to establish a connection to an Oracle
database:

java.lang.NoClassDefFoundError: oracle/jdbc/pool/OracleDataSource

I've verified the CLASSPATH environment is set correctly to access the
driver file: ojdbc6_g.jar

QUESTION 1: It seems GlassFish isn't using this environment variable(?).
Can I just drop the driver's jar file into a specific directory?

Is the following directory the right one?

domain-dir/lib/applibs

QUESTION 2: Can I just drop it in using Linux command line arguments
(e.g. "cp /path/to/file/filename /path/to/destination/directory"), or do
I need to issue something specific within GlassFish's asadmin command
prompt?

I assume restarting the domain would be required.

Any advice appreciated.

NOTICE: This email and any files transmitted with it are Enablence and Teledata-Networks confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. This message contains Enablence and Teledata-Networks confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.