NameNotFoundException

View: New views
3 Messages — Rating Filter:   Alert me  

NameNotFoundException

by glassfish-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I am new to EJB. I started learning EJB 3.0.(EJB Developers guide first example) I have deployed my first application but got the exception while running it.

I have followed all the steps mentioned in the EJB 3.0 developers guide. I am wondering where this exception shoot up.



The details:
Thanks
"
Exception in thread "main" javax.naming.NameNotFoundException: ejb30.session.TimeServiceBean not found
at com.sun.enterprise.naming.TransientContext.doLookup(TransientContext.java:216)
at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:188)
at com.sun.enterprise.naming.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:74)
at com.sun.enterprise.naming.RemoteSerialContextProviderImpl.lookup(RemoteSerialContextProviderImpl.j
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[Message sent by forum member 'ennidhi' (psatishbabu@...)]

http://forums.java.net/jive/thread.jspa?messageID=370805

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: NameNotFoundException

by glassfish-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi man,
try this:
Instead of this [b]@Stateless(mappedName = "Time")[/b]  write this [b]@Stateless(mappedName = "session.TimeService")[/b] and than in the lookup do this [b]TimeService timeService = (TimeService) ctx.lookup("session.TimeService");[/b]

Your mappedName need to be equal to your lookup name.
[Message sent by forum member 'dpandulev' (deyan.pandulev@...)]

http://forums.java.net/jive/thread.jspa?messageID=370856

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: NameNotFoundException

by glassfish-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The same problem..... Its of no use..I tried the things you suggested.
[Message sent by forum member 'ennidhi' (psatishbabu@...)]

http://forums.java.net/jive/thread.jspa?messageID=371107

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...