-
1. Re: javax.naming.NameNotFoundException: ws1 not bound
anders.hedstrom Sep 8, 2006 8:32 AM (in response to micho)Try changing this line:
ses = (Session) ctx.lookup("ws1/SessionTestBean/remote");
to:ses = (Session) ctx.lookup("SessionTestBean/remote");
-
2. Re: javax.naming.NameNotFoundException: ws1 not bound
jvramana Sep 8, 2006 8:32 AM (in response to micho)How you deployed it?
ws1.ear or ?
ejb3 deployer deploys with jndi name as ..
ear-name/bean-name/remote
Jelda -
3. Re: javax.naming.NameNotFoundException: ws1 not bound
micho Sep 8, 2006 6:07 PM (in response to micho)Thanks, that´s the solution.
the ear file had a different name. After renaming everything works fine! -
4. Re: javax.naming.NameNotFoundException: ws1 not bound
ren1218 Sep 19, 2006 9:39 AM (in response to micho)Hi micho,
I ran into the same run-time error when trying the JBoss turtorial TrailEJB3.
I like to test out a very simple ejb3 case. Can you send me a little more details of your test code including directory structrue, build script etc.?
Thanks in advance!
Rolling -
5. Re: javax.naming.NameNotFoundException: ws1 not bound
alrubinger Sep 19, 2006 10:51 AM (in response to micho)The JMX Console will tell you where your objects are being stored...
Hit http://[servername]:8080/jmx-console (by default), find JNDIView, and print out the tree to see where everything is.
Also, in order to ensure your EJBs maintain the same JNDI name no matter the packaging, you can use @LocalBinding and @RemoteBinding to declare the location.
S,
ALR -
6. Re: javax.naming.NameNotFoundException: ws1 not bound
ren1218 Sep 19, 2006 11:15 AM (in response to micho)Thanks for your quick reply, but I don't have a ear file to be deployed yet.
I am looking for sample EJB3 java code that comes with build script.