[jboss-user] [EJB 3.0] - Calling rmi server running in Weblogic 6.x from Jboss 4.0.5G

jinchuriki do-not-reply at jboss.com
Sun Jul 1 03:28:39 EDT 2007

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,
        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?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059429#4059429

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059429

More information about the jboss-user mailing list