• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting javax.naming.NameNotFoundException: B2BMail not found.

 
Nagendra Shastry
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic