2 Replies Latest reply on Feb 4, 2005 2:29 PM by boomkap

    Cannot get JBoss 4.0.0 to talk to Weblogic 8.1

    boomkap

      I have the following code in a JSP trying to talk to a Weblogic 8.1 container. I am using the wlclient.jar to make iiop contact.
      Properties props = new Properties();
      props.put("java.naming.factory.initial", "weblogic.jndi.WLInitialContextFactory");
      props.put("java.naming.provider.url","iiop://10.9.133.124:8001");
      props.put(Context.SECURITY_PRINCIPAL, "system");
      props.put(Context.SECURITY_CREDENTIALS, "password");
      System.out.println("Attempting to initialize a context");
      InitialContext ic = new InitialContext(props);
      When this code executes i get the following error:
      org.omg.CORBA.ORBPackage.InvalidName
      at org.jacorb.orb.ORB.resolve_initial_references(ORB.java:1275)
      at weblogic.corba.j2ee.naming.ORBHelper.getORBReferenceWithRetry(ORBHelp
      er.java:490)
      at weblogic.corba.j2ee.naming.ORBHelper.getORBReference(ORBHelper.java:4
      67)
      at weblogic.corba.j2ee.naming.InitialContextFactoryImpl.getInitialContex
      t(InitialContextFactoryImpl.java:97)
      at weblogic.corba.j2ee.naming.InitialContextFactoryImpl.getInitialContex
      t(InitialContextFactoryImpl.java:42)
      at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialCont
      extFactory.java:41)
      at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
      at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
      at javax.naming.InitialContext.init(Unknown Source)

        • 1. Re: Cannot get JBoss 4.0.0 to talk to Weblogic 8.1
          boomkap

          Just an FYI, this exact same code works when using JBoss 4.0.1.

          • 2. Re: Cannot get JBoss 4.0.0 to talk to Weblogic 8.1
            boomkap

            Ok, i finally figured it out. In 4.0.0, the default server runs the IIOP ORB implementation from Jacorb. In 4.0.1, the default server does not run the IIOP service. So the code was working in 4.0.1 and not in 4.0.0. In 4.0.0, if i remove the iiop-service.xml file from the server/default/deploy directory and the jacorb.jar from the server/default/lib folder and start the Jboss default server, everything works great.
            Now the real question is why does the IIOP ORB implementation interfere with the Weblogic client libraries. What needs to be done to let the Jacorb implementation not interfere with the Weblogic IIOP client calls?