Author: markt Date: Fri Nov 19 18:49:40 2010 New Revision: 1036976 URL: http://svn.apache.org/viewvc?rev=1036976&view=rev Log: Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=50303 Update JavaMail and JAF download locations JAF is included in Java SE 6
Modified: tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml tomcat/tc6.0.x/trunk/webapps/docs/jndi-resources-howto.xml Modified: tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml?rev=1036976&r1=1036975&r2=1036976&view=diff ============================================================================== --- tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml (original) +++ tomcat/tc6.0.x/trunk/webapps/docs/changelog.xml Fri Nov 19 18:49:40 2010 @@ -308,6 +308,10 @@ must be removed from all users and the new <code>admin-gui</code> and <code>admin-script</code> roles used instead. (markt) </add> + <fix> + <bug>50303</bug>: Update JNDI how-to to reflect new JavaMail and JAF + download locations and that JAF is now included in Java SE 6. (markt) + </fix> </changelog> </subsection> <subsection name="Other"> Modified: tomcat/tc6.0.x/trunk/webapps/docs/jndi-resources-howto.xml URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/webapps/docs/jndi-resources-howto.xml?rev=1036976&r1=1036975&r2=1036976&view=diff ============================================================================== --- tomcat/tc6.0.x/trunk/webapps/docs/jndi-resources-howto.xml (original) +++ tomcat/tc6.0.x/trunk/webapps/docs/jndi-resources-howto.xml Fri Nov 19 18:49:40 2010 @@ -456,7 +456,7 @@ Context envCtx = (Context) initCtx.looku Session session = (Session) envCtx.lookup("mail/Session"); Message message = new MimeMessage(session); -message.setFrom(new InternetAddress(request.getParameter("from")); +message.setFrom(new InternetAddress(request.getParameter("from"))); InternetAddress to[] = new InternetAddress[1]; to[0] = new InternetAddress(request.getParameter("to")); message.setRecipients(Message.RecipientType.TO, to); @@ -494,19 +494,20 @@ Transport.send(message); <h3>4. Install the JavaMail libraries</h3> - <p><a href="http://java.sun.com/products/javamail/downloads/index.html" target="_blank"> + <p><a href="http://www.oracle.com/technetwork/java/index-138643.html"> Download the JavaMail API</a>. The JavaMail API requires the Java Activation - Framework (JAF) API as well. The Java Activation Framework can be downloaded - from <a href="http://java.sun.com/products/javabeans/glasgow/jaf.html">Sun's site</a>. + Framework (JAF) API as well. The Java Activation Framework is included in + Java SE 6 onwards. Java SE 5 users can download the latest version, + <a href="http://www.oracle.com/technetwork/java/javase/downloads/index-135046.html"> + JAF 1.1.1</a>. </p> - <p>This download includes 2 vital libraries for the configuration; - activation.jar and mail.jar. Unpackage both distributions and place - them into $CATALINA_HOME/lib so that they are available to - Tomcat during the initialization of the mail Session Resource. - <strong>Note:</strong> placing these jars in both $CATALINA_HOME/lib and a - web application's lib folder will cause an error, so ensure you have - them in the $CATALINA_HOME/lib location only. + <p>Unpackage the distribution(s) and place mail.jar (and activation.jar if + required) into $CATALINA_HOME/lib so the JAR(s) is(are) available to Tomcat + during the initialization of the mail Session Resource. + <strong>Note:</strong> placing jars in both $CATALINA_HOME/lib and a web + application's lib folder will cause an error, so ensure mail.jar (and + activation.jar) is(are) placed only the $CATALINA_HOME/lib location. </p> <h3>Example Application</h3> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org