1 Reply Latest reply on Jul 4, 2007 3:53 AM by neubie

    Calling rmi server running in Weblogic 6.x from Jboss 4.0.5G

    neubie

      Hi all,

      First of all, please forgive me if i have posts this in the wrong forum group.

      Recently i have a project that needs me to call a remote ejb which is running in Weblogic 6.x. It is using Weblogic's proprietary protocol known as "t3". If i include weblogic.jar (i believe this version of weblogic doesn't deliver its client lib wlclient.jar) in my war file's WEB-INF/lib, i get this error:

      2007-06-30 17:32:33,462 ERROR (GqsClient.java:93) - TestProject: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory
      javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory]

      I've tried to put it in server/default/lib but that throws another exception.

      My test code:


      Properties jndiProperties = new Properties();
      jndiProperties.setProperty( Context.INITIAL_CONTEXT_FACTORY,
      MY_INITIAL_CONTEXT_FACTORY );
      jndiProperties.setProperty( Context.PROVIDER_URL, MY_PROVIDER_URL );

      Context initialContext;

      initialContext = new InitialContext( jndiProperties );

      Object homeInt = initialContext.lookup( MY_EJB );

      objectHome = ( SomeObjectHome ) PortableRemoteObject
      .narrow( homeInt, SomeObjectHome.class );

      objectRemote = objectHome.create();


      Have i done anything wrong in the codes?
      Where should i put my weblogic.jar?