Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

NamingContext help

843830Aug 11 2004 — edited Aug 16 2004
Hi All,

I have already tried some sample examples using WSAD 5.1 , successfully deployed and run many types of beans. Now just today i tried running one of the sample bean which displays "HelloWorld" message, I started getting all these errors.


When starting the websphere server I get the below error :

[8/11/04 15:05:37:656 EDT] 4f4e4f4e ConcreteBeanC E PMGR1000E: Exception occurred :com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. Root exception is javax.naming.NameNotFoundException: Context: localhost/nodes/localhost/servers/server1, name: jdbc/Default: First component in name Default not found. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0
at java.lang.Throwable.<init>(Throwable.java)
at java.lang.Throwable.<init>(Throwable.java:73)
at org.omg.CosNaming.NamingContextPackage.NotFound.<init>(NotFound.java:35)
at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.do_resolve_complete_info(WsnOptimizedNamingImpl.java:968)

8/11/04 15:05:38:296 EDT] 4f4e4f4e EJBContainerI I WSVR0041I: Stopping EJB jar: MyHelloEJB.jar
[8/11/04 15:05:38:359 EDT] 4f4e4f4e EJBContainerI E WSVR0042E: Unable to stop MyHello#MyHelloEJB.jar#LocalPlayer: unknown bean home name - MyHello#MyHelloEJB.jar#LocalPlayer
[8/11/04 15:05:38:406 EDT] 4f4e4f4e EJBContainerI E WSVR0043E: Unbind failed for MyHello#MyHelloEJB.jar#LocalPlayer: Name ejb not found in context "local:ejb".
..........




And when i try running the sample "HelloWorld" session bean it gives error :


javax.naming.NameNotFoundException: Context: localhost/nodes/localhost/servers/server1, name: ejb/my/examples/Hello: First component in name Hello not found. Root exception is HelloClient Runtime error Context: localhost/nodes/localhost/servers/server1, name: ejb/my/examples/Hello: First component in name Hello not found.
org.omg.CosNaming.NamingContextPackage.NotFound
at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(NotFoundHelper.java:48)
at com.ibm.WsnOptimizedNaming._NamingContextStub.resolve_complete_info(Unknown Source)
at com.ibm.ws.naming.jndicos.CNContextImpl.cosResolve(CNContextImpl.java:3491)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1519)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1480)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1187)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1067)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:132)
at javax.naming.InitialContext.lookup(InitialContext.java:359)
at my.examples.TheClient.main(TheClient.java:33).
...............


I remember getting this NameNotFoundException errors before but i don't remember what setting is required to be made. Can anyone help me out with it?

Thanks in advance .
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 13 2004
Added on Aug 11 2004
7 comments
2,377 views