i am a beginner for EJB Programming. I work with the EJB book from O'Reilly
(very good).
i write a little EJB with JBuilder (HelloWorld) and deploy it to the EJB
Server Inprise without problems.
In the next step i create with a wizard from JBuilder a test Client.
almost if i debug the Client i get an Exception at the follow statement.
the statement
-------------
helloWorldHome = (HelloWorldHome) PortableRemoteObject.narrow(ref, HelloWorldHome.class);
the error
---------
javax.naming.NameNotFoundException. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound
at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHelper.java:34)
at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.extract(NotFoundHelper.java:50)
at org.omg.CosNaming._NamingContextStub.resolve(_NamingContextStub.java:161)
at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:324)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:373)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:351)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at ejb1.HelloWorldBeanTestClient4.<init>(HelloWorldBeanTestClient4.java:19)
at ejb1.HelloWorldBeanTestClient4.main(HelloWorldBeanTestClient4.java:42)
I hope someone can help me
06-26-2001, 08:14 PM
dennis byrne
Re: EJB with Inprise
See what the name of your home object is. Check what the context naming is
the line before this.
eg.... Object ref = ctx.lookup("test.ejb.testLaunch");
This is the line that would throw that exception.
"Orhan" <opolat@web.de> wrote:
>
>Hello,
>
>i am a beginner for EJB Programming. I work with the EJB book from O'Reilly
>(very good).
>i write a little EJB with JBuilder (HelloWorld) and deploy it to the EJB
>Server Inprise without problems.
>In the next step i create with a wizard from JBuilder a test Client.
>almost if i debug the Client i get an Exception at the follow statement.
>
>the statement
>-------------
>helloWorldHome = (HelloWorldHome) PortableRemoteObject.narrow(ref, HelloWorldHome.class);
>
>the error
>---------
>javax.naming.NameNotFoundException. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound
>
> at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHelper.java:34)
>
> at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.extract(NotFoundHelper.java:50)
>
> at org.omg.CosNaming._NamingContextStub.resolve(_NamingContextStub.java:161)
>
> at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:324)
>
> at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:373)
>
> at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:351)
>
> at javax.naming.InitialContext.lookup(InitialContext.java:350)
>
> at javax.naming.InitialContext.lookup(InitialContext.java:350)
>
> at ejb1.HelloWorldBeanTestClient4.<init>(HelloWorldBeanTestClient4.java:19)
>
> at ejb1.HelloWorldBeanTestClient4.main(HelloWorldBeanTestClient4.java:42)
>
>
>
>I hope someone can help me
>
>
>
>
>