jmstoolbox icon indicating copy to clipboard operation
jmstoolbox copied to clipboard

Connection unsuccesful error with WebLogic

Open jacobherrera opened this issue 6 years ago • 3 comments

Specifications

  • JMSToolBox version: 5.3.0
  • OS (Name, version, 32/64bits): Windows 10 64-bit
  • Q provider (kind, version) : Oracle WebLogic 12c

Expected Behavior

JTB will allow me to connect to the WebLogic server

Actual Behavior

Error message: Connection unsuccessful Reason: java.lang.ClassNotFoundException: org.omg.COBRA.SystemException cannot be found by org.titou10.jtb.qm.weblogic.resource)1.0.0

Steps to Reproduce the Problem

  1. Unpack JTB
  2. Configure Oracle WebLogic Server on the Q Managers tab in accordance with https://github.com/jmstoolbox/jmstoolbox/wiki/2.9-Setup-for-Oracle-WebLogic-Server
  3. Add a new WebLogic session
  4. Double-click the session to attempt to connect

Logs

JTB_20192401_1407951_jmstoolbox.log

jacobherrera avatar Jul 01 '19 19:07 jacobherrera

This is due to the WebLogic client that depends internally to CORBA...and CORBA is not part anymore of Java 11
I tried to add a jar with CORBA implementation (glassfish-corba-omgapi-4.2.1) in the classpath but another error appeared (NullPointerException in some internal WebLogic ServiceLocator class)
Until WebLogic provides a fully Java 11 client (ie wlthint3client.jar), I fear you'll have to stay with the latest JMSToolBox version that runs with Java 8, ie v4.14.0 ..or try to find some additional jars to add to JMSToolBox alongsidewlthint3client.jarto make a Java 11 client be able to connect to WLS

titou10titou10 avatar Jul 01 '19 21:07 titou10titou10

You can add to the variable of the Oracle Q Manager the rt.jar from an existing oracle java8 installation. I was able to connect with that.

Macs75 avatar Nov 25 '19 10:11 Macs75

@Macs75, Mixing Java 11 and Java 8 internal jars is a good idea. Fine if it works but the best workaround for now is still to use the latest version of JMSToolBox that works with Java 8: v4.14.0

titou10titou10 avatar Nov 25 '19 12:11 titou10titou10