aspose file tools
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


Win a copy of Head First Android this week in the Android forum!
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: 10433
    
176

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]
 
Don't get me started about those stupid light bulbs.
 
subject: Getting javax.naming.NameNotFoundException: B2BMail not found.
 
It's not a secret anymore!