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.