Mail is not configured on tomcat distribution
---------------------------------------------

                 Key: NXP-5577
                 URL: https://jira.nuxeo.org/browse/NXP-5577
             Project: Nuxeo Enterprise Platform
          Issue Type: Bug
            Reporter: Bogdan Stefanescu
            Priority: Major
             Fix For: 5.4


The javax.mail component is not correctly configured on tomcat distributions.
To have it configured through JNDI you need to:
1. declare the mail resource in nuxeo.xml (see 
templates/default/conf/Catalina/localhost)

  <Resource auth="Container" name="Mail" type="javax.mail.Session" 
        mail.smtp.host="localhost" ...other_mail_attributes_here...  />

This will bind a configured javax.mail.Session in JNDI under the name 
java:comp/env/Mail

2. On Java 5 move mail.jar and activation.jar from nxserver/lib to tomcat lib.
On Java 6 you only need to move mail.jar to tomcat lib.

3. Change the mail configuration  used by notification service in 
nxserver/config/notification-config.xml:
<mailSessionJndiName>java:comp/env/Mail</mailSessionJndiName>

4. change or add the JNDI name used by SendMail operation in nuxeo.properties:
jndi.java.mail=java:comp/env/Mail 

Also I think we need to modify notification service to use the nuxeo property 
for the JNDI name to be able to share it between different services that need a 
mail session.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to