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

    Cannot get JBoss 4.0.0 to talk to Weblogic 8.1

    kapil khanna Newbie

      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)