1. Configuring Tomcat 6.0
1. Configuring Tomcat 6.0
Installing a JMS Driver in Tomcat
- Download the JMS driver for the Commerce Engine's Asynchronous Event Messaging
service.
JMS Driver JAR file Links activemq-client-5.8.0.jar http://activemq.apache.org/activemq-580-release.html geronimo-j2ee-management_1.1_spec-1.0.1.jar http://mvnrepository.com/artifact/org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1 geronimo-jms_1.1_spec-1.1.1.jar http://mvnrepository.com/artifact/org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1 slf4j-api-1.6.6.jar http://mvnrepository.com/artifact/org.slf4j/slf4j-api/1.6.6 - Install the JMS Driver JAR files in
<Tomcat_HOME>\lib
Configuring Tomcat's HTTP Connector
- With an XML editor, open server.xml, found in <Tomcat_HOME>\conf
- In server.xml, replace the Connector element as shown below:
Before After <Tomcat_HOME>\conf\server.xml <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8"/commerce-legacy/>
Configuring SSL in Tomcat
- Open the Command Prompt and input the following command to begin creating the .keystore file.
keytool -genkey -alias tomcat -keyalg RSA
- Enter in a password (this can be any password you want your keystore encoded with) , full name, organizational unit, organization, city, state, and country code to generate the .keystore file.
- Copy the generated .keystore file from your home directory and paste the file into <Tomcat_HOME>\conf
- With an XML editor, open server.xml, found in <Tomcat_HOME>\conf
- In server.xml, replace the Connector element as shown below:
Before After <Tomcat_HOME>\conf\server.xml <!-- <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" maxThreads="150" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" /> -->
<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol" SSLEnabled="true" secure="true" enableLookups="false" disableUploadTimeout="true" keystoreFile="<Tomcat_HOME>\conf\.keystore" keystorePass="PASSWORD" acceptCount="100" maxThreads="25" scheme="https" clientAuth="false" sslProtocol="TLS" URIEncoding="UTF-8"/commerce-legacy/>
where PASSWORD is the password you entered into the .keystore file and Tomcat_HOME is your Tomcat installation directory.