users@glassfish.java.net

[TROUBLE] glassfish can not resolve JNDI name properly

From: <forums_at_java.net>
Date: Fri, 5 Aug 2011 08:40:09 -0500 (CDT)

 Hello,

I got one trouble while i've trying to get my EJB from EAR vai corbaname:iiop

My glassfish is of version 3.1;

Information from server logs: Portable JNDI names for EJB ServerUtils :
[java:global/MailServer/ServerLogic/ServerUtils!serverlogic.ejb.logic.ServerUtilsRemote,
java:global/MailServer/ServerLogic/ServerUtils]

I've tried to resolve that name using the following code

 

new
InitialContext().lookup("corbaname:iiop:127.0.0.1:3700#java:global/MailServer/ServerLogic/ServerUtils");
and that gives me following exception:

javax.naming.NameNotFoundException [Root exception is
org.omg.CosNaming.NamingContextPackage.NotFound:
IDL:omg.org/CosNaming/NamingContext/NotFound:1.0] at
com.sun.jndi.cosnaming.ExceptionMapper.mapException(Unknown Source) at
com.sun.jndi.cosnaming.CNCtx.callResolve(Unknown Source) at
com.sun.jndi.cosnaming.CNCtx.lookup(Unknown Source) at
com.sun.jndi.toolkit.url.GenericURLContext.lookup(Unknown Source) at
javax.naming.InitialContext.lookup(Unknown Source) at
consoleserver.Application.<init>(Application.java:17) at
consoleserver.Main.main(Main.java:6) Caused by:
org.omg.CosNaming.NamingContextPackage.NotFound:
IDL:omg.org/CosNaming/NamingContext/NotFound:1.0 at
org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(Unknown Source) at
org.omg.CosNaming._NamingContextStub.resolve(Unknown Source)
Meanwhile my attempt to
resolve "corbaname:iiop:127.0.0.1:3700#java:global/MailServer/ServerLogic/"
gaves me this context;

Does anybody knows what to do?

Thanks,

Ilya

 

 


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