Upgrade from JON 3.0.1 to 3.1.0 fails java.lang.UnsatisfiedLinkError:wrong ELF class: ELFCLASS64 for OCI drivers

Solution Verified - Updated -

Issue

Upgrading from JON 3.0.1 to 3.1.0 but it fails. We updated / copied the oracle db values in rhq-server.properties and added JAVA_HOME and OCI values to rhq-server.sh.
The jboss instance starts up and shows the home screen. If I click on "installation" it fails. It complains about ELF (wrong architecture) , but everything is the correct Architecture (x86_64)
It mainly complains about OCI, but the older versions like 3.0.1 never did that. (that means oci and jon worked like a charm)

Log snippet

2012-06-21 19:33:04,164 ERROR [org.apache.catalina.core.ContainerBase] Servlet.service() for servlet Faces Servlet threw exception
java.lang.UnsatisfiedLinkError: /oracleuser/oracle/instantclient_11_2/libocijdbc11.so: /oracleuser/oracle/instantclient_11_2/libocijdbc11.so: wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch)
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1732)
    at java.lang.Runtime.loadLibrary0(Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1028)
    at oracle.jdbc.driver.T2CConnection$1.run(T2CConnection.java:3551)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.jdbc.driver.T2CConnection.loadNativeLibrary(T2CConnection.java:3547)
    at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:266)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:546)
    at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:162)
    at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:53)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)
    at java.sql.DriverManager.getConnection(DriverManager.java:185)
    at org.rhq.core.db.DbUtil.getConnection(DbUtil.java:60)

Environment

JBoss Operations Network (JON) 3.1
Oracle jdk 1.6
Oracle 11.2 Database

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.