Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

trying to connect to an EJB in WLS 8.1sp3 JDK1.4.2_04 with IIOP client JDK1.4.2_06

3 views
Skip to first unread message

mh...@valista.com

unread,
Apr 7, 2005, 2:37:57 PM4/7/05
to
I have weblogic.jar in the classpath of the client (tried wlclient too,
same result)

the code sample I use:
Properties props = new Properties();
props.put(Context.PROVIDER_URL,
"iiop://calcutta:31001");
// "t3://calcutta:31001");
props.put(Context.INITIAL_CONTEXT_FACTORY,
"com.sun.jndi.cosnaming.CNCtxFactory");
// "weblogic.jndi.WLInitialContextFactory");

MerchantServiceHome home = null;
try {
home = MerchantServiceLocator.getHome(props);
} catch (NamingException e) {
System.out.println(e.getCause().getMessage() + "_" + e);
return;
}

note that it works fine if I use the t3 protocol and the weblogic
initial context factory

here's the error I get:
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed:
No
at
com.sun.corba.se.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:148)
at
com.sun.corba.se.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:65)
at
com.sun.corba.se.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:67)
at
com.sun.corba.se.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:652)
at
com.sun.corba.se.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:594)
at
com.sun.corba.se.internal.corba.ClientDelegate.request(ClientDelegate.java:886)
at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:431)
at
weblogic.corba.cos.naming._NamingContextAnyStub.resolve(_NamingContextAnyStub.java:343)
at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:440)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:492)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:470)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at
com.valista.core.node.model.merchant.MerchantServiceLocator.lookupHome(MerchantServiceLocator.java:16)
at
com.valista.core.node.model.merchant.MerchantServiceLocator.getHome(MerchantServiceLocator.java:45)
at Test.main(Test.java:37)

What am I missing ? Is there some server side setting I have to change
(I checked that the Enable IIOP flag is checked in the console) ? Do I
need to specify some iiop options when doing the ejbc (I thought it was
done by default)?

0 new messages