Bug 18578

Summary: Documentation error for JNDI Lookup
Product: Taglibs Reporter: Ben Tomasini <btomasini>
Component: Mailer TaglibAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 1.1   
Target Milestone: ---   
Hardware: Other   
OS: other   
URL: http://jakarta.apache.org/taglibs/doc/mailer-doc/mailer-1.1/index.html

Description Ben Tomasini 2003-04-01 18:51:51 UTC
<!-- Using a JNDI named JavaMail Session object defined by the -->
<!-- session attribute. -->
<mt:mail session="java:/comp/env/session" to="foo@home.net"
from="bar@home.net" subject="mail taglib">
<mt:message>[body of message]</mt:message>
<mt:send/>
</mt:mail>

When using this syntax in Resin 2.1.8, get a NamingException

Solution is to use 

java:comp

*not*

java:/comp

Is the documentation incorrect?  Not sure what JNDI standard is.
Comment 1 Martin Cooper 2004-02-01 08:19:36 UTC
Fixed in the 20040201 nightly build. The documentation was incorrect.