You are on page 1of 2

EZilla Group

October 2009

1. Introduction
2. Installation and Configuration
1. Installation of EZilla CD Store
To run CDSTORE as a web application, you need have the following
software/packages:

• Tomcat 6.0
• MySQL 5.0
• Jetty 6.1
• axis2.war
• xstream-1.3.1.jar
• mysql-connector-java-5.1.7-bin.jar
• CDSTORE_TABLE_CREATION.sql
• test_data.sql
• CDSTORE.war
• order.aar
• productcategory.aar
• user.aar
• .keystore

The steps to set up CDSTORE:

1. Set up database
a. create an database CDSTORE in MySQL, grant all privileges to user
ezilla with password ezilla
b. execute CDSTORE_TABLE_CREATION.sql to create tables in database
c. execute test_data.sql to insert some testing data into tables

2. Deploy CDSTORE.jar
a. put CDSTORE.war into %TOMCAT_HOME%/webapps
b. put .keystore into %TOMCAT_HOME%/CDSTOREkeystore/.keystore
c. put xstream-1.3.1.jar into %TOMCAT_HOME$/lib
d. change the connector part number to 80 by modifying
%TOMCAT_HOME%/conf/server.xml

3. Deploy web services


a. put mysql-connector-java-5.1.7-bin.jar and xstream-1.3.1.jar into
%JETTY_HOME%/lib/ext
b. extract axis2.war to %JETTY_HOME%/webapps
c. put order.aar, productcategory.aar, and user.aar into %JETTY_HOME
%/webapps/axis2/WEB-INFO/services

1. Configurations
1. Configuration Tomcat for SSL
put the following script into %TOMCAT_HOME%/conf/server.xml

<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"


maxThreads="150" scheme="https" secure="true"
keystoreFile="\ CDSTOREkeystore \.keyCDSTORE" keystorePass="ezilla"
clientAuth="false" sslProtocol="TLS" />

2. Connection Pool Configuration


put the following script into %JETTY_HOME%/etc/jetty.xml

<New id="cdstore" class="org.mortbay.jetty.plus.naming.Resource">


<Arg>jdbc/cdstore</Arg>
<Arg>
<New class="com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource">
<Set name="Url">jdbc:mysql://localhost:3306/cdstore</Set>
<Set name="User">ezilla</Set>
<Set name="Password">ezilla</Set>
</New>
</Arg>
</New>

2. Source Code Organization


3. Identification of Third Party libraries
xstream-1.3.1.jar: to transform back and forth the Java object and xml string
axis2.war: to provide axis web service framework