[jboss-user] [JNDI/Naming/Network] - Re: javax.naming.NameNotFoundException: CMPHome not bound

jaikiran do-not-reply at jboss.com
Thu May 15 03:01:42 EDT 2008


 <ejb-ref-name>ejb/CMPHome</ejb-ref-name> 

Based on this ejb-ref-name, your lookup string is incorrect

 Object ojb= ic.lookup("java:comp/env/CMPHome"); 

Change the lookup to

 Object ojb= ic.lookup("java:comp/env/ejb/CMPHome"); 

P.S: While posting the logs or code or xml content, remember to wrap it in a code block using the Code button in the message editor window and please hit the Preview button to make sure your post is correctly formatted

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4150932#4150932

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4150932



More information about the jboss-user mailing list