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 Java 8 in Action this week in the Java 8 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: 9343
    
111

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting javax.naming.NameNotFoundException: B2BMail not found.
 
Similar Threads
jboss seam mail service
Error while calling webservice client from EJB3 SLB Local interface.
hibernate exception thrown from @Factory method
How to delete the persisted entity in EJB3.0
Reading remote file - difference between linux and windows deployments