Meaningless Drivel is fun!*
The moose likes EJB and other Java EE Technologies and the fly likes Getting javax.naming.NameNotFoundException:  B2BMail not found. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Getting javax.naming.NameNotFoundException:  B2BMail not found." Watch "Getting javax.naming.NameNotFoundException:  B2BMail not found." New topic
Author

Getting javax.naming.NameNotFoundException: B2BMail not found.

Nagendra Shastry
Greenhorn

Joined: Oct 26, 2010
Posts: 19

Hi all,

In my application, on click of a button I have to send a mail. To,Cc,Bcc list is coming as given in UI inside bean. But after that the mail is not sending. In log it is giving the following exception.



Not getting what is the reason. I googled it but didnt get much information.Can someone help as it is very urgent.
Thanks in advance
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9963
    
163

Caused by: javax.naming.NameNotFoundException: B2B2Mail not bound

It looks like the code expects some resource to be bound in JNDI and it's not finding it, either because it's using a wrong JNDI name or a wrong JNDI context or the resource is indeed not bound. You'll have to check the JNDI tree (different application servers have different tools to do that) to ensure that resource really exists.

[My Blog] [JavaRanch Journal]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Getting javax.naming.NameNotFoundException: B2BMail not found.
 
Similar Threads
hibernate exception thrown from @Factory method
Reading remote file - difference between linux and windows deployments
jboss seam mail service
How to delete the persisted entity in EJB3.0
Error while calling webservice client from EJB3 SLB Local interface.