These are my notes for a Tomcat configuration under Plesk 8.2 WITHOUT using Plesk's Power Pack.
The configuration is for the Domain SigmaFxDx.com. Although it is not thoroughly explained, you should be able to see all the parts required for the configuration and look up additional information as necessary. :)
PLESK TOMCAT CONFIGURATION FOR SIGMAFXDX.COM
*** TEST TOMCAT ON LOCALHOST
*** Test Tomcat running in http://localhost:8080 (must specify http://)
*** Copy helloworld.war to C:\Program Files\SWsoft\Plesk\Additional\Tomcat\webapps
*** Test JSP working at http://localhost:8080/helloworld
*** SETUP TOMCAT FOR SIGMAFXDX.COM
*** Edit [\Program Files]\SWSoft\Plesk\Additional\Tomcat\conf\server.xml
Add the following (after last existing </Service> and before </Server>:
</Host>
</Engine>
</Service>
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
<!-- MY ADDED PLESK TOMCAT CONFIGURATIONS -->
<Service name="PSA" debug="0" className="org.apache.catalina.core.StandardService">
<Connector port="9008" protocol="AJP/1.3" protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"
redirectPort="443" debug="0" secure="false" enableLookups="false" appBase="psa-webapps" minProcessors="5"
maxProcessors="75" connectionTimeout="20000" acceptCount="10" useURIValidationHack="false"/>
<Connector port="9080" protocolHandlerClassName="org.apache.coyote.http11.Http11Protocol"
redirectPort="8443" debug="0" secure="false" enableLookups="false" bufferSize="2048" scheme="http"
proxyPort="0" tcpNoDelay="true" minProcessors="5" maxProcessors="75" connectionTimeout="20000"
acceptCount="10" useURIValidationHack="false"/>
<Engine name="PSA" debug="0" className="org.apache.catalina.core.StandardEngine"
mapperClass="org.apache.catalina.core.StandardEngineMapper">
<Realm className="org.apache.catalina.realm.MemoryRealm"/>
<Host name="SigmaFxDx.com" className="org.apache.catalina.core.StandardHost"
mapperClass="org.apache.catalina.core.StandardHostMapper"
configClass="org.apache.catalina.startup.ContextConfig"
errorReportValveClass="org.apache.catalina.valves.ErrorReportValve" deployXML="true"
contextClass="org.apache.catalina.core.StandardContext" debug="0"
appBase="psa-webapps/SigmaFxDx.com" unpackWARs="false" autoDeploy="true" liveDeploy="true">
<Alias>www.SigmaFxDx.com</Alias>
<Context path="" docBase="C:\Program Files\SWSoft\Plesk\Additional\Tomcat\psa-webapps\SigmaFxDx.com" debug="0" />
<Context path="/manager" className="org.apache.catalina.core.StandardContext" crossContext="false"
reloadable="false" mapperClass="org.apache.catalina.core.StandardContextMapper" useNaming="true"
debug="0" swallowOutput="false" privileged="true" displayName="Tomcat Manager Application"
wrapperClass="org.apache.catalina.core.StandardWrapper"
docBase="C:\Program Files\SWSoft\Plesk\Additional\Tomcat\server\webapps\manager"
cookies="true" cachingAllowed="true" charsetMapperClass="org.apache.catalina.util.CharsetMapper"/>
<Realm pathname="psa-users/SigmaFxDx.com.xml"
className="org.apache.catalina.realm.MemoryRealm" debug="0" validate="true"/>
</Host>
</Engine>
</Service>
<!--
<Host name="SigmaFxDx.com" appBase="psa-webapps/SigmaFxDx.com">
<Context path="" docBase="C:\Program Files\SWSoft\Plesk\Additional\Tomcat\psa-webapps\SigmaFxDx.com" debug="0" />
<Alias>www.SigmaFxDx.com</Alias>
</Host>
-->
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
</Server>
*** Edit C:\Program Files\SWsoft\Plesk\isapi\workers.properties
*** NOTICE CASE SENSITIVITY ***
Add at end:
worker.SigmaFxDx_com.port=9008
worker.SigmaFxDx_com.host=SigmaFxDx.com
worker.SigmaFxDx_com.type=ajp13
worker.SigmaFxDx_com.lbfactor=1
Modify (Add SigmaFxDx_com to worker list):
#
#------ ADVANCED MODE ------------------------------------------------
#---------------------------------------------------------------------
#
#
#------ DEFAULT worket list ------------------------------------------
#---------------------------------------------------------------------
#
#
# The workers that your plugins should create and work with
#
# Add 'inprocess' if you want JNI connector
worker.list=ajp12, ajp13, SigmaFxDx_com
# , inprocess
*** Edit C:\Program Files\SWsoft\Plesk\isapi\uriworkermap.properties
Add at end:
/sigmafxdx.com/jspTest=SigmaFxDx_com
/sigmafxdx.com/jspTest/*=SigmaFxDx_com
/www.sigmafxdx.com/jspTest=SigmaFxDx_com
/www.sigmafxdx.com/jspTest/*=SigmaFxDx_com
*** Create SigmaFxDx.com directories under:
C:\Program Files\SWsoft\Plesk\Additional\Tomcat\ psa-wars and psa-webapps
*** Copy jspTest.war to both of the above directories
*** Create directory C:\Program Files\SWsoft\Plesk\Additional\Tomcat\psa-users
*** Create file SigmaFxDx.com.xml in above directory, and add this content:
<?xml version="1.0" encoding="utf-8"?>
<tomcat-users>
<role rolename="manager"/>
<user username="tomcat" password="*******" roles="manager"/>
</tomcat-users>
*** Restart IIS and Tomcat (iisreset & Tomcat Service)
*** MY TEST AT http://sigmafxdx.com/jspTest WORKED NOW ***
*** Reboot and check again ...
*** Works after reboot ... :)
*** To be able to add jsp pages and apps under the domain's httpdocs/jsp
*** Add the following "Context" to the server.xml file:
<Host name="SigmaFxDx.com" className="org.apache.catalina.core.StandardHost"
...
<Alias>www.SigmaFxDx.com</Alias>
<Context path="/jsp" docBase="C:\Inetpub\vhosts\sigmafxdx.com\httpdocs\jsp" debug="0" />
*** And the following to the uriworkermap.properties file
/sigmafxdx.com/jsp=SigmaFxDx_com
/sigmafxdx.com/jsp/*=SigmaFxDx_com
/www.sigmafxdx.com/jsp=SigmaFxDx_com
/www.sigmafxdx.com/jsp/*=SigmaFxDx_com
*** Copy and unzip the helloworld.war app into sigmafxdx.com/httpdocs/jsp vhost directory
*** You can now access the helloworld app via http://sigmafxdx.com/jsp/helloworld
*** Tried it, it works :)
Conclusion: We can now access the http://sigmafxdx.com/jspTest app
and the http://sigmafxdx.com/jsp/helloworld app
Also, any additional JSP pages or apps added to the domain's httpdocs/jsp directory will
be accessible without the need to make any setup modifications (isapi or server.xml)
Attachments:
The helloworld and jspTest WAR files