• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Getting javax.naming.NameNotFoundException: B2BMail not found.

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
I like tacos! And this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic