grouper-users - RE: [grouper-users] Red Hat Linux installation conundrum for oracle.jdbc.driver.OracleDriver
Subject: Grouper Users - Open Discussion List
List archive
RE: [grouper-users] Red Hat Linux installation conundrum for oracle.jdbc.driver.OracleDriver
Chronological Thread
- From: Chris Hyzer <>
- To: "Imholz, John J." <>, "" <>
- Subject: RE: [grouper-users] Red Hat Linux installation conundrum for oracle.jdbc.driver.OracleDriver
- Date: Thu, 27 Aug 2015 17:53:34 +0000
- Accept-language: en-US
Ok, take that line out and remove the other oracle jar in jdbcSamples. Thanks, Chris From: Imholz, John J. [mailto:]
I reset grouper.apiBinary-2.2.1, then added ojdbc7.jar to /lib/custom, and added the line: hibernate.connection.driver_class = oracle.jdbc.OracleDriver in /config/grouper.hibernate.properties Ran the installer, and still got: Checking database with query: select 1 from dual Error: could not connect to the database:
java.lang.RuntimeException: Error with query: select 1 from dual at edu.internet2.middleware.grouperInstaller.util.GiDbUtils.listSelect(GiDbUtils.java:400) at edu.internet2.middleware.grouperInstaller.util.GiDbUtils.listSelect(GiDbUtils.java:323) at edu.internet2.middleware.grouperInstaller.util.GiDbUtils.select(GiDbUtils.java:334) at edu.internet2.middleware.grouperInstaller.util.GiDbUtils.checkConnection(GiDbUtils.java:474) at edu.internet2.middleware.grouperInstaller.GrouperInstaller.checkDatabaseConnection(GrouperInstaller.java:7292) at edu.internet2.middleware.grouperInstaller.GrouperInstaller.mainInstallLogic(GrouperInstaller.java:5721) at edu.internet2.middleware.grouperInstaller.GrouperInstaller.access$300(GrouperInstaller.java:77) at edu.internet2.middleware.grouperInstaller.GrouperInstaller$GrouperInstallerMainFunction$1.logic(GrouperInstaller.java:969) at edu.internet2.middleware.grouperInstaller.GrouperInstaller.mainLogic(GrouperInstaller.java:1031) at edu.internet2.middleware.grouperInstaller.GrouperInstaller.main(GrouperInstaller.java:302) Caused by: java.lang.RuntimeException: Error connecting to: null at edu.internet2.middleware.grouperInstaller.util.GiDbUtils.connection(GiDbUtils.java:310) at edu.internet2.middleware.grouperInstaller.util.GiDbUtils.listSelect(GiDbUtils.java:364) ... 9 more Caused by: java.lang.RuntimeException: Problem loading class: oracle.jdbc.driver.OracleDriver at edu.internet2.middleware.grouperInstaller.util.GrouperInstallerUtils.forName(GrouperInstallerUtils.java:712) at edu.internet2.middleware.grouperInstaller.util.GiDbUtils.connection(GiDbUtils.java:304) ... 10 more Caused by: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver at java.net.URLClassLoader$1.run(URLClassLoader.java:366) I’m confused as to why you wanted to try this, because the ojdbc7.jar has the OracleDrive class in oracle/jdbc/driver. Jji From: Chris Hyzer []
You should never edit any base config files, only add/edit things to the override (in this case grouper.hibernate.properties) Thanks, Chris From: Imholz, John J. []
The grouper.apiBinary-2.2.1/conf/grouper.hibernate.properties has very little in it, you’re suggesting to add a line? Or modify grouper.hibernate.base.properties ? jji From: Chris Hyzer []
I think you might need to change the grouper.hibernate.properties to have a driver class of oracle.jdbc.OracleDriver instead of oracle.jdbc.driver.OracleDriver.
Does that help? We might need to adjust the installer for new versions of Oracle… Thanks, Chris
From:
[]
On Behalf Of Imholz, John J. Are there any other suggestions to fix this problem? I’m installing on Ubuntu and get the same error even after putting ojdbc7.jar in the /usr/local/grouper/grouper.apiBinary-2.2.1/lib/custom dir. Enter the database URL [jdbc:oracle:thin:@grouper-oracle-v-mdc.musc.edu:1521:grpr]:
Database user [grouper_v1_5]:
Database password (note, you aren't setting the pass here, you are using an existing pass, this will be echoed back) [******]:
Editing /usr/local/grouper/grouper.apiBinary-2.2.1/conf/grouper.hibernate.properties:
- property hibernate.connection.url already was set to: jdbc:oracle:thin:@grouper-oracle-v-mdc.musc.edu:1521:grpr, not changing file - property hibernate.connection.username already was set to: grouper_v1_5, not changing file - property hibernate.connection.password already was set to: *****, not changing file Checking database with query: select 1 from dual Error: could not connect to the database:
java.lang.RuntimeException: Error with query: select 1 from dual at edu.internet2.middleware.grouperInstaller.util.GiDbUtils.listSelect(GiDbUtils.java:400) at edu.internet2.middleware.grouperInstaller.util.GiDbUtils.listSelect(GiDbUtils.java:323) at edu.internet2.middleware.grouperInstaller.util.GiDbUtils.select(GiDbUtils.java:334) at edu.internet2.middleware.grouperInstaller.util.GiDbUtils.checkConnection(GiDbUtils.java:474) at edu.internet2.middleware.grouperInstaller.GrouperInstaller.checkDatabaseConnection(GrouperInstaller.java:7292) at edu.internet2.middleware.grouperInstaller.GrouperInstaller.mainInstallLogic(GrouperInstaller.java:5721) at edu.internet2.middleware.grouperInstaller.GrouperInstaller.access$300(GrouperInstaller.java:77) at edu.internet2.middleware.grouperInstaller.GrouperInstaller$GrouperInstallerMainFunction$1.logic(GrouperInstaller.java:969) at edu.internet2.middleware.grouperInstaller.GrouperInstaller.mainLogic(GrouperInstaller.java:1031) at edu.internet2.middleware.grouperInstaller.GrouperInstaller.main(GrouperInstaller.java:302) Caused by: java.lang.RuntimeException: Error connecting to: null at edu.internet2.middleware.grouperInstaller.util.GiDbUtils.connection(GiDbUtils.java:310) at edu.internet2.middleware.grouperInstaller.util.GiDbUtils.listSelect(GiDbUtils.java:364) ... 9 more Caused by: java.lang.RuntimeException: Problem loading class: oracle.jdbc.driver.OracleDriver at edu.internet2.middleware.grouperInstaller.util.GrouperInstallerUtils.forName(GrouperInstallerUtils.java:712) at edu.internet2.middleware.grouperInstaller.util.GiDbUtils.connection(GiDbUtils.java:304) ... 10 more Caused by: java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver at java.net.URLClassLoader$1.run(URLClassLoader.java:366) jji From:
[]
On Behalf Of Linda Toth Scott Koranda's suggestion did the trick. I placed the driver in ~/grouper.apiBinary-2.2.1/lib/custom and zipped right through.
Linda
Linda Toth 910 Yukon Drive, Suite 103 Fairbanks, Alaska 99775 On Thu, Aug 13, 2015 at 2:41 PM, Andrew Morgan <> wrote:
|
- Re: [grouper-users] Red Hat Linux installation conundrum for oracle.jdbc.driver.OracleDriver, (continued)
- Re: [grouper-users] Red Hat Linux installation conundrum for oracle.jdbc.driver.OracleDriver, Scott Koranda, 08/13/2015
- Re: [grouper-users] Red Hat Linux installation conundrum for oracle.jdbc.driver.OracleDriver, Andrew Morgan, 08/13/2015
- Re: [grouper-users] Red Hat Linux installation conundrum for oracle.jdbc.driver.OracleDriver, Linda Toth, 08/13/2015
- RE: [grouper-users] Red Hat Linux installation conundrum for oracle.jdbc.driver.OracleDriver, Imholz, John J., 08/26/2015
- RE: [grouper-users] Red Hat Linux installation conundrum for oracle.jdbc.driver.OracleDriver, Chris Hyzer, 08/26/2015
- RE: [grouper-users] Red Hat Linux installation conundrum for oracle.jdbc.driver.OracleDriver, Imholz, John J., 08/27/2015
- RE: [grouper-users] Red Hat Linux installation conundrum for oracle.jdbc.driver.OracleDriver, Chris Hyzer, 08/27/2015
- RE: [grouper-users] Red Hat Linux installation conundrum for oracle.jdbc.driver.OracleDriver, Imholz, John J., 08/27/2015
- Re: [grouper-users] Red Hat Linux installation conundrum for oracle.jdbc.driver.OracleDriver, James R. McCartney, 08/27/2015
- RE: [grouper-users] Red Hat Linux installation conundrum for oracle.jdbc.driver.OracleDriver, Imholz, John J., 08/27/2015
- RE: [grouper-users] Red Hat Linux installation conundrum for oracle.jdbc.driver.OracleDriver, Chris Hyzer, 08/27/2015
- RE: [grouper-users] Red Hat Linux installation conundrum for oracle.jdbc.driver.OracleDriver, Imholz, John J., 08/27/2015
- RE: [grouper-users] Red Hat Linux installation conundrum for oracle.jdbc.driver.OracleDriver, Chris Hyzer, 08/27/2015
- RE: [grouper-users] Red Hat Linux installation conundrum for oracle.jdbc.driver.OracleDriver, Chris Hyzer, 08/31/2015
- RE: [grouper-users] Red Hat Linux installation conundrum for oracle.jdbc.driver.OracleDriver, Chris Hyzer, 08/27/2015
- RE: [grouper-users] Red Hat Linux installation conundrum for oracle.jdbc.driver.OracleDriver, Imholz, John J., 08/27/2015
- RE: [grouper-users] Red Hat Linux installation conundrum for oracle.jdbc.driver.OracleDriver, Chris Hyzer, 08/26/2015
- RE: [grouper-users] Red Hat Linux installation conundrum for oracle.jdbc.driver.OracleDriver, Imholz, John J., 08/26/2015
- Re: [grouper-users] Red Hat Linux installation conundrum for oracle.jdbc.driver.OracleDriver, Linda Toth, 08/13/2015
Archive powered by MHonArc 2.6.16.