We are currently running two tomcat servers on our machine, one for 9.7 and one fo 10.3.
9.7 on port 8080, 10.3 on port 8084.
In order to remove the port numbers from the URL, I am trying to configure the IIS isapi_redirect. I have configured the jakarta folder in IIS to point to the 10.3 tomcat installation folder and configured the properties files as follows.
workers.properties
#
# Simple workers configuration file
# Check the JK Documentation of Tomcat for more information
#
ps=\
# List all workers
worker.list=defworker,support
# Redefining the worker named defworker of type ajp13
worker.defworker.port=8080
worker.defworker.host=localhost
#worker.defworker.type=ajp13
worker.defworker.lbfactor=1
# Specify the size of the open connection cache.
#worker.defworker.cachesize
# Specifies the load balance factor when used with a load balancing worker.
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=defworker
# Redefining the worker named defworker of type ajp13
worker.support.port=8084
worker.support.host=localhost
#worker.support.type=ajp13
worker.support.lbfactor=1
# Specify the size of the open connection cache.
#worker.support.cachesize
uriworkermap.properties
#
# Simple uri worker map configuration file
# Check the JK Documentation of Tomcat for more information
#
#default.worker=defworker
#uniface.worker=defworker
#support.worker=support
# --- Worker mappings for Uniface ---
/uniface/*=defworker
/support/*=support
a correctly working URL for the 10.3 install is SERVER:8084/webapp/support/main, and I have copied the webapp.xml to support.xml so SERVER:8084/support/support/main also works.
When I try any combination of what I think should be the URLs to use the IIS, I get errors in the isapi_redirect.log of
[Wed Jan 29 14:05:54.015 2020] [9452:11940] [error] ajp_connection_tcp_get_message::jk_ajp_common.c (1313): wrong message format 0x4854 from 127.0.0.1:8084
[Wed Jan 29 14:05:54.026 2020] [9452:11940] [error] ajp_get_reply::jk_ajp_common.c (2176): (support) Tomcat is down or refused connection. No response has been sent to the client (yet)
[Wed Jan 29 14:05:54.033 2020] [9452:11940] [info] ajp_service::jk_ajp_common.c (2673): (support) sending request to tomcat failed (recoverable), because of protocol error (attempt=1)
[Wed Jan 29 14:05:54.145 2020] [9452:11940] [error] ajp_connection_tcp_get_message::jk_ajp_common.c (1313): wrong message format 0x4854 from 127.0.0.1:8084
[Wed Jan 29 14:05:54.157 2020] [9452:11940] [error] ajp_get_reply::jk_ajp_common.c (2176): (support) Tomcat is down or refused connection. No response has been sent to the client (yet)
[Wed Jan 29 14:05:54.165 2020] [9452:11940] [info] ajp_service::jk_ajp_common.c (2673): (support) sending request to tomcat failed (recoverable), because of protocol error (attempt=2)
[Wed Jan 29 14:05:54.173 2020] [9452:11940] [error] ajp_service::jk_ajp_common.c (2693): (support) connecting to tomcat failed.
[Wed Jan 29 14:05:54.185 2020] [9452:11940] [error] HttpExtensionProc::jk_isapi_plugin.c (2327): service() failed with http error 502
And the localhost_access_log of
127.0.0.1 - - [29/Jan/2020:14:05:54 +0000] "-" 400 -
Using SERVER/support vs SERVER/uniface seems to successfully change which copy of Tomcat the logs are added to, so I THINK the worker properties are pointing to the right internal servers.
So.
- Can anyone tell me what the 'correct' URL to translate SERVER:8084/webapp/support/main to go via IIS as per the above files is?
- Are the above files 'right'?
Help!
Iain