Skip to Content.
Sympa Menu

grouper-users - RE: [grouper-users] Classpath problems initializing Oracle DB

Subject: Grouper Users - Open Discussion List

List archive

RE: [grouper-users] Classpath problems initializing Oracle DB


Chronological Thread 
  • From: "Cramton, James" <>
  • To: "Kathryn Huxtable" <>, <>
  • Subject: RE: [grouper-users] Classpath problems initializing Oracle DB
  • Date: Mon, 26 Mar 2007 09:04:01 -0400

You'd think it would be that, but no such luck. Your suggestion did
inspire me to try the grouper-api/lib directory, and that did the trick.
Where's the coffee?

James

-----Original Message-----
From: Kathryn Huxtable
[mailto:]

Sent: Friday, March 23, 2007 5:57 PM
To: Cramton, James;

Subject: Re: [grouper-users] Classpath problems initializing Oracle DB

I've always just put the driver in the lib directory of the API. -K


On 3/23/07 4:19 PM, "Cramton, James"
<>
wrote:

> 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._installFieldsAndType
> s(
> 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(DBCPConne
> ct
> ionProvider.java:69)
> [java] at
> net.sf.hibernate.connection.ConnectionProviderFactory.newConnectionPro
> vi
> 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:11
> 72
> )
> [java] at
> net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.j
> av
> a:803)
> [java] ... 3 more
> [java] Java Result: 1
>
> BUILD SUCCESSFUL




Archive powered by MHonArc 2.6.16.

Top of Page