Time for action — creating Context.xml
In this exercise, you'll learn how to create a Context.xml
file with all the parameters required for the MySQL Connector/J
driver and the activation.jar
and the mail.jar
files you downloaded before.
Note
You're going to need a valid e-mail address for Roller's e-mail notification features. I chose to use a Gmail account for this exercise, because it lets you send e-mail from your Roller blog server without any problems. So, I recommend you create a Gmail account for your Roller blog server, if you haven't got one already. That way, you'll just need to change the e-mail address and password used in the next exercise, and leave all the other parameters intact.
Open a Terminal window (Applications | Accessories | Terminal) and type the following lines after the
~$
prompt, pressing Enter after each line:cd /usr/local/tomcat/webapps/roller/META-INF sudo gedit context.xml
If necessary, type the
sudo
password and press Enter. The text editor will appear next...