users@glassfish.java.net

JNDI Lookup from domain2 in domain1

From: <forums_at_java.net>
Date: Wed, 1 Jun 2011 06:00:29 -0500 (CDT)

Hi community,

I have an EJB project with a singleton "TransformService" in domain1 of my
GlassFish Server 3.1 b43. Running with the standard config: IIOP on 3700.

And a webapplication in domain2 of the same server. In this web-application I
try to lookup for the ejb "TransformService" on domain1 to get its
RemoteInterface, but without success.

The only thing that I changed in the properties of the InitialContext in the
webapp is setting:

 

props.setProperty("org.omg.CORBA.ORBInitialPort", "3700");

 

So that the loockup takes place in domain1 and not in domain2 which has IIOP
on port 6037.

When the lookup happens I get an exception, with the core:

 

Root exception is org.omg.CORBA.NO_PERMISSION: ----------BEGIN server-side
stack trace---------- org.omg.CORBA.NO_PERMISSION: vmcid: 0x0 minor code: 0
completed: No
com.sun.enterprise.iiop.security.SecServerRequestInterceptor.handle_null_service_context(SecServerRequestInterceptor.java:421)
at
com.sun.enterprise.iiop.security.SecServerRequestInterceptor.receive_request(SecServerRequestInterceptor.java:443)
at
com.sun.corba.ee.impl.interceptors.InterceptorInvoker.invokeServerInterceptorIntermediatePoint(InterceptorInvoker.java:612)
at
com.sun.corba.ee.impl.interceptors.PIHandlerImpl.invokeServerPIIntermediatePoint(PIHandlerImpl.java:612)
at
com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.getServantWithPI(CorbaServerRequestDispatcherImpl.java:333)
at
com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:196)
at
com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1624)
at
com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1486)
at
com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:990)
at
com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:214)
at
com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:742)
at
com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.dispatch(CorbaMessageMediatorImpl.java:539)
at
com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.doWork(CorbaMessageMediatorImpl.java:2324)
at
com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.performWork(ThreadPoolImpl.java:497)
at
com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:540)
----------END server-side stack trace---------- vmcid: 0x0 minor code: 0
completed: No

 

What am I doing wrong? can anybody help? Do I have to use the secured port
for IIOP? if yes, please tell me how.

Oh, and putting both apps in domain1 makes the lookup work normally, I get
the RemoteInterface and can call the mothods of the ejb.

Thanks in advance!

Regards


--
[Message sent by forum member 'MohamzJava']
View Post: http://forums.java.net/node/808049