Skip to Content.
Sympa Menu

grouper-users - Classpath problems initializing Oracle DB

Subject: Grouper Users - Open Discussion List

List archive

Classpath problems initializing Oracle DB


Chronological Thread 
  • From: "Cramton, James" <>
  • To: <>
  • Subject: Classpath problems initializing Oracle DB
  • Date: Fri, 23 Mar 2007 17:19:06 -0400

I'd earlier reported problems initializing the db using Oracle 9i, and
after I'm looking back at that issue after dealing with a few other
environmental issues. The problem appears to be related to the ant
script not being able to find the oracle driver. I have the oracle 10g
driver in the bash shell's CLASSPATH, but I notice a warning when I
execute ant db-init that indicates project.classpath has not been set at
runtime. Do I need to explicitly reference the oracle driver in the
project.classpath? Any thoughts?

Thanks!

James


The thread looks like this:


[jcramton@bravo
grouper-api-1.1]$ ant schemaexport
Buildfile: build.xml
Warning: Reference project.classpath has not been set at runtime, but
was found during
build file parsing, attempting to resolve. Future versions of Ant may
support
referencing ids defined in non-executed targets.

init:

conf-init:

build:

schemaexport:

BUILD SUCCESSFUL
Total time: 2 seconds
[jcramton@bravo
grouper-api-1.1]$ ant db-init
Buildfile: build.xml
Warning: Reference project.classpath has not been set at runtime, but
was found during
build file parsing, attempting to resolve. Future versions of Ant may
support
referencing ids defined in non-executed targets.

init:

conf-init:

build:

db-init:
[java] Exception in thread "main"
java.lang.ExceptionInInitializerError
[java] at
edu.internet2.middleware.grouper.HibernateHelper.<clinit>(Unknown
Source)
[java] at
edu.internet2.middleware.grouper.RegistryInstall._installFieldsAndTypes(
Unknown Source)
[java] at
edu.internet2.middleware.grouper.RegistryInstall.main(Unknown Source)
[java] Caused by: net.sf.hibernate.HibernateException: JDBC Driver
class not found: oracle.jdbc.OracleDriver
[java] at
net.sf.hibernate.connection.DBCPConnectionProvider.configure(DBCPConnect
ionProvider.java:69)
[java] at
net.sf.hibernate.connection.ConnectionProviderFactory.newConnectionProvi
der(ConnectionProviderFactory.java:83)
[java] at
net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:
76)
[java] at
net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1172
)
[java] at
net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav
a:803)
[java] ... 3 more
[java] Java Result: 1

BUILD SUCCESSFUL



Archive powered by MHonArc 2.6.16.

Top of Page