geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ken Perl <kenp...@gmail.com>
Subject Re: org.omg.CosNaming.NamingCntextPackage.NotFound
Date Tue, 20 Sep 2005 06:11:23 GMT
I guess the client is providing the wrong URL, try to use 1099 instead
of iiop://localhost:1050.

On 9/20/05, lin sun <linsun_unc@yahoo.com> wrote:
> Hello there,
> 
> I am having problems in communicating to a simple EJB
> from a Java RMI client via IIOP.   I was able to
> deploy the EJB jar to geronimo, but I kept getting the
> following exception when I ran the Client:
> 
> javax.naming.NameNotFoundException [Root exception is
> org.omg.CosNaming.NamingContextPackage.NotFound:
> IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]
> 
> The client app failed at ctx.lookup(JNDI_NAME) and
> I've made sure that I specified the same JNDI_NAME in
> the client app as I specified in the openejb-jar.xml
> "<jndi-name>" property.
> 
> 
>       Object home = ctx.lookup(JNDI_NAME);   //failed
> here
> 
> The client app is able to instantiate the new
> InitialContext ctx:
> 
> p.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.cosnaming.CNCtxFactory");
>       p.put(Context.PROVIDER_URL,
> "iiop://localhost:1050");
>       InitialContext ctx = new InitialContext(p);
> 
> I could not find much info related to RMI over IIOP
> from the wiki... help is appreciated!
> 
> thanks,
> 
> Lin
> 
> 
> 
> __________________________________
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> http://mail.yahoo.com
> 


-- 
perl -e 'print unpack(u,"62V5N\"FME;G\!E<FQ`9VUA:6PN8V]M\"\@``
")'

Mime
View raw message