Hi,

I am using Jbuilder7 and weblogic 6.1.

The following code

         Context ctx = getInitialContext();
         Object ref = ctx.lookup("Hello");

works fine.

however when lookup with following code fails

        Object ref = ctx.lookup("java:comp/env/ejb/Hello");

(lookup of Env Entries also fails)

The stack trace

javax.naming.NameNotFoundException: Unable to resolve java:comp.env/ejb/Hello 
Resolved: '' Unresolved:'java:comp' ; remaining name 'env/ejb/Hello'

 at 
weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:85)

 at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:262)

 at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:229)

 at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35)

 at $Proxy0.lookup(Unknown Source)

 at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:339)

 at javax.naming.InitialContext.lookup(InitialContext.java:350)

 at myejbpractice.HelloTestClient1.<init>(HelloTestClient1.java:22)

 at myejbpractice.HelloTestClient1.main(HelloTestClient1.java:80)

java.lang.NullPointerException

 at myejbpractice.HelloTestClient1.main(HelloTestClient1.java:84)

Exception in thread "main"


Thanks for help.

Mahender

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to