Please follow the instructions provided to you by e-mail to download AdvertPRO from the Renegade Internet extranet web site.
unzip javamail-<version>.zip
copy javamail-<version>/mail.jar C:/Tomcat/common/lib/mail.jar
unzip jaf-<version>.zip
copy jaf-<version>/activation.jar C:/Tomcat/common/lib/activation.jar
unzip mysql-connector-java-<version>.zip
cd mysql-connector-java-<version>
copy mysql-connector-java-<version>-bin.jar C:/Tomcat/common/lib/mysql.jar
copy advertpro-<version>.war C:/Tomcat/webapps/advertpro.war
Edit C:/my.cnf and use the following as a template.
[client]
port = 3306
[mysqld]
bind-address = 127.0.0.1
basedir = C:/MySQL
datadir = C:/MySQL/data
port = 3306
skip-locking
set-variable = max_connections=384
set-variable = key_buffer=64M
set-variable = table_cache=256
set-variable = sort_buffer=4M
set-variable = record_buffer=1M
set-variable = max_allowed_packet=16M
set-variable = myisam_sort_buffer_size=64M
set-variable = thread_cache=8
server-id = 1
old_passwords = 1
[mysqldump]
quick
set-variable = max_allowed_packet=16M
[mysql]
no-auto-rehash
[isamchk]
set-variable = key_buffer=128M
set-variable = sort_buffer=128M
set-variable = read_buffer=2M
set-variable = write_buffer=2M
[myisamchk]
set-variable = key_buffer=128M
set-variable = sort_buffer=128M
set-variable = read_buffer=2M
set-variable = write_buffer=2M
[mysqlhotcopy]
interactive-timeout
C:/MySQL/bin/mysqld-nt --install MySQL --defaults-file=C:\my.cnf
Edit C:/Tomcat/conf/server.xml and use the following as a template.
<Server className="org.apache.catalina.core.StandardServer"
debug="0"
port="8005"
shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
debug="0"/>
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
debug="0"/>
<Listener className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"
debug="0"/>
<GlobalNamingResources>
<Resource name="UserDatabase"
auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml"/>
</GlobalNamingResources>
<Service className="org.apache.catalina.core.StandardService"
debug="0"
name="Catalina">
<!--
You cannot run both Apache or IIS and Tomcat on the same ports!
-->
<Connector acceptCount="128"
bufferSize="2048"
className="org.apache.coyote.tomcat5.CoyoteConnector"
compression="off"
connectionLinger="-1"
connectionTimeout="30000"
debug="0"
disableUploadTimeout="false"
enableLookups="false"
maxKeepAliveRequests="0"
maxHttpHeaderSize="8192"
maxThreads="512"
maxSpareThreads="480"
minSpareThreads="32"
port="80"
redirectPort="443"
URIEncoding="UTF-8"/>
<!--
Uncomment the following for isapi_redirect or mod_jk
-->
<!--
<Connector acceptCount="128"
className="org.apache.coyote.tomcat5.CoyoteConnector"
debug="0"
enableLookups="false"
maxThreads="384"
maxSpareThreads="48"
minSpareThreads="16"
port="8009"
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"
protocol="AJP/1.3"
redirectPort="8443"
URIEncoding="UTF-8"
useURIValidationHack="false"/>
-->
<Engine className="org.apache.catalina.core.StandardEngine"
debug="0"
defaultHost="localhost"
mapperClass="org.apache.catalina.core.StandardEngineMapper"
name="Catalina">
<Host className="org.apache.catalina.core.StandardHost"
appBase="webapps"
autoDeploy="true"
debug="0"
name="localhost"
unpackWARS="true"
xmlValidation="false"
xmlNamespaceAware="false">
<Context charsetMapperClass="org.apache.catalina.util.CharsetMapper"
cookies="true"
crossContext="false"
debug="0"
docBase="ROOT"
mapperClass="org.apache.catalina.core.StandardContextMapper"
path=""
privileged="false"
reloadable="false"
swallowOutput="true"
useNaming="true"
wrapperClass="org.apache.catalina.core.StandardWrapper"/>
<Context charsetMapperClass="org.apache.catalina.util.CharsetMapper"
cookies="true"
crossContext="false"
debug="0"
docBase="advertpro"
mapperClass="org.apache.catalina.core.StandardContextMapper"
path="/advertpro"
privileged="false"
reloadable="false"
swallowOutput="true"
useNaming="true"
wrapperClass="org.apache.catalina.core.StandardWrapper"/>
</Host>
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
debug="0"
resourceName="UserDatabase"/>
</Engine>
</Service>
</Server>
AdvertPRO needs the following ports to be open in your firewall in order to function properly:
| Port Number | Protocol | Allow Input | Allow Output | Client/Source Address | Destination Address | Used By |
|---|---|---|---|---|---|---|
| 25 | TCP | Yes | Yes | Any | Any | SMTP |
| 80 | TCP | Yes | Yes | Any | Any | HTTP |
| 443 | TCP | Yes | Yes | Any | Any | HTTPS |
| 3306 | TCP | Yes | Yes | localhost | localhost | MySQL |
| 9000 | TCP | No | Yes | localhost | websvc1.advertpro.com websvc2.advertpro.com | AdvertPRO |
| 9001 | TCP | No | Yes | localhost | websvc1.advertpro.com websvc2.advertpro.com | AdvertPRO |
| 9002 | TCP | No | Yes | localhost | websvc1.advertpro.com websvc2.advertpro.com | AdvertPRO |
| 9003 | TCP | No | Yes | localhost | websvc1.advertpro.com websvc2.advertpro.com | AdvertPRO |
| 9004 | TCP | No | Yes | localhost | websvc1.advertpro.com websvc2.advertpro.com | AdvertPRO |
| 9005 | TCP | No | Yes | localhost | websvc1.advertpro.com websvc2.advertpro.com | AdvertPRO |
Failure to open the aforementioned ports in your firewall will cause the AdvertPRO setup utility to abort.
Start the MySQL service through the Control Panel.
Start the Tomcat service through the Control Panel.