This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes Fail to bind javax.mail.Session object on JNDI Tree Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Fail to bind javax.mail.Session object on JNDI Tree" Watch "Fail to bind javax.mail.Session object on JNDI Tree" New topic
Author

Fail to bind javax.mail.Session object on JNDI Tree

Martha Christina
Greenhorn

Joined: Jan 24, 2008
Posts: 1
Hi all,

I was trying to create a mail session in weblogic 8.1. The jndi name must be filled with a javax.mail.Session object, and it's supposed to display in JNDI tree with purple icon, right? But when I typed in the jndi name, it came out a failure in JNDI tree (with red icon).

This was what in my j2ee config (ejb-jar.xml):
<session id="Email">
<ejb-name>Email</ejb-name>
<home>com.gtnet.workflow.enactmentService.ejb.EmailHome</home>
<remote>com.gtnet.workflow.enactmentService.ejb.Email</remote>
<ejb-class>com.gtnet.workflow.enactmentService.ejb.EmailBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<resource-ref id="ResourceRef_1">
<res-ref-name>EmailSession</res-ref-name>
<res-type>javax.mail.Session</res-type>
<res-auth>Application</res-auth>
</resource-ref>
</session>

And this was what in my weblogic j2ee config (weblogic-ejb-jar.xml):
<weblogic-enterprise-bean>
<ejb-name>Email</ejb-name>
<reference-descriptor>
<resource-description>
<res-ref-name>EmailSession</res-ref-name>
<jndi-name>java:/Mail</jndi-name>
</resource-description>
</reference-descriptor>
<jndi-name>ejb/EmailHome</jndi-name>
</weblogic-enterprise-bean>

I have tried filling everything as the jndi name, from EmailSession, Mail, ejb.EmailHome, Email, etc, but none worked.

Could anybody help me please? >_<

Thanks a lot,
Martha
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Fail to bind javax.mail.Session object on JNDI Tree
 
Similar Threads
calling an ejb from jsp
JMS 1.1 + Weblogic + Websphere MQ + XATransactions
Looking up JNDI in Weblogic6
xdoclet problem while generating ejb-jar.xml
multiple beans per jar