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: Mon, 31 Aug 2015 00:34:10 +0000
- Accept-language: en-US
John, I resolved these two jiras: https://bugs.internet2.edu/jira/browse/GRP-1185 https://bugs.internet2.edu/jira/browse/GRP-1186 I tried this on oracle and got the same exception as you where it couldn’t find the driver class. The installer generally isn’t going to have the driver class
in the classpath unless you start the installer with another jar which is sort of awkward, so I now have the output not printing the stack if there is no driver class found. In your case, I think you can just ignore the stack. Or get the new installer and
see that the stack is not printed. Note for that version of oracle driver you need to make sure JAVA_HOME is set to a JDK dir of java 7. I couldn’t reproduce the problem of autocommit, though I think you can ignore that too if it is in the connection checking.
If you let the installer finish will it init the DB? It worked for me on oracle Thanks, Chris From: [mailto:]
On Behalf Of Chris Hyzer Send me the full output please and at the places where you move files, please send me the commands for that too Thanks, Chris From: Imholz, John J. []
Done, same error. Just to note, I’m running the installer from /usr/local/grouper.install-2.2.1 and trying to install into /usr/local/grouper jji From: Chris Hyzer []
Ok, take that line out and remove the other oracle jar in jdbcSamples. Thanks, Chris From: Imholz, John J. []
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, 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
Archive powered by MHonArc 2.6.16.