You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by gm...@apache.org on 2013/05/15 20:50:33 UTC
svn commit: r1483003 - in /roller/trunk:
weblogger-docs/installguide/roller-install-guide.odt
weblogger-webapp/src/main/webapp/META-INF/context.xml-example
Author: gmazza
Date: Wed May 15 18:50:32 2013
New Revision: 1483003
URL: http://svn.apache.org/r1483003
Log:
Updated Ch. 7 Tomcat chapter of installation guide, showing how to connect to a GMail SMTP server.
Modified:
roller/trunk/weblogger-docs/installguide/roller-install-guide.odt
roller/trunk/weblogger-webapp/src/main/webapp/META-INF/context.xml-example
Modified: roller/trunk/weblogger-docs/installguide/roller-install-guide.odt
URL: http://svn.apache.org/viewvc/roller/trunk/weblogger-docs/installguide/roller-install-guide.odt?rev=1483003&r1=1483002&r2=1483003&view=diff
==============================================================================
Binary files - no diff available.
Modified: roller/trunk/weblogger-webapp/src/main/webapp/META-INF/context.xml-example
URL: http://svn.apache.org/viewvc/roller/trunk/weblogger-webapp/src/main/webapp/META-INF/context.xml-example?rev=1483003&r1=1483002&r2=1483003&view=diff
==============================================================================
--- roller/trunk/weblogger-webapp/src/main/webapp/META-INF/context.xml-example (original)
+++ roller/trunk/weblogger-webapp/src/main/webapp/META-INF/context.xml-example Wed May 15 18:50:32 2013
@@ -1,24 +1,35 @@
<!--
Example Tomcat Context Configuration file for Roller
-If you'd like to use Tomcat provided datasource and mail sessions then:
+Documented in Chapter 7.1-7.2 of Roller Installation Guide
+If you'd like to use Tomcat provided datasource and/or mail sessions then:
+- Uncomment the appropriate database / mail blocks below
- Set database.connetionType=jndi property in roller-custom.properties
- Set mail.connetionType=jndi property in roller-custom.properties
-- Set the correct values for docBase, driverClassName, url, username,
- password and mail.smtp.host in the text below.
-- Rename this file to context.xml and deploy Roller directory to Tomcat.
+- Set the correct values for the database and mail server
+- Rename this file to context.xml and deploy Roller WAR to Tomcat.
-->
-<Context path="/roller"
- docBase="/user/local/apache-roller-4.0/webapp/roller" debug="0">
+<Context path="/roller" debug="0">
- <Resource name="jdbc/rollerdb" auth="Container" type="javax.sql.DataSource"
+ <!--Resource name="jdbc/rollerdb" auth="Container" type="javax.sql.DataSource"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/rollerdb?autoReconnect=true&useUnicode=true&characterEncoding=utf-8&mysqlEncoding=utf8"
username="scott"
password="tiger"
- maxActive="20" maxIdle="3" removeAbandoned="true" maxWait="3000" />
+ maxActive="20" maxIdle="3" removeAbandoned="true" maxWait="3000" /-->
- <Resource name="mail/Session" auth="Container" type="javax.mail.Session"
- mail.smtp.host="smtp-server.example.com" />
+ <!-- Below sample is for the GMail SMTP server, modify as appropriate
+ for the SMTP server and account you're using
+ -->
+ <!--Resource name="mail/Session" auth="Container" type="javax.mail.Session"
+ mail.transport.protocol="smtp"
+ mail.smtp.host="smtp.gmail.com"
+ mail.smtp.port="465"
+ mail.debug="false"
+ mail.smtp.auth="true"
+ mail.smtp.user="blah.blah@gmail.com"
+ password="yourgmailpassword"
+ mail.smtp.starttls.enable="true"
+ mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory" /-->
</Context>