https://issues.apache.org/bugzilla/show_bug.cgi?id=50339
Summary: mod_jk parsing error if workers.properties contains
whitespaces
Product: Tomcat Connectors
Version: unspecified
Platform: HP
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: mod_jk
AssignedTo: [email protected]
ReportedBy: [email protected]
I built tomcat-connectors-1.2.31 for httpd-2.2.17, but mod_jk logged a lot of
configuration errors, and only removing whitespaces from the beginning of all
lines in workers.properties solved it.
My workers properties looked like this:
### Templates ###
worker.tpl2.type=ajp13
worker.tpl2.lbfactor=100
worker.tpl2.fail_on_status=500,503
worker.tpl2.socket_timeout=0
worker.tpl2.connect_timeout=50000
worker.tpl2.connection_pool_size=4
And the mod_jk.log said:
[Thu Nov 25 16:02:54 2010] [8081:140330511210240] [debug]
jk_map_read_property::jk_map.c (491): Adding property 'worker.tpl2.lbfactor'
with value '000' to map.
[Thu Nov 25 16:02:54 2010] [8081:140330511210240] [error]
jk_map_validate_property::jk_map.c (404): The attribute
'worker.tpl2.socket_tioeout' is not supported - please check the documentation
for the supported attributes.
As you can see the value for lbfactor should be "100", but "000" was logged,
and "socket_timeout" is written correctly in the config file, but the log says
"socket_tioeout"
I commented out these lines just to see what happens, but that just made it
complain about different values a few lines below.
Removing all whitespaces from the beginning of the lines solved it:
[Thu Nov 25 16:27:36 2010] [8453:139761970366208] [debug]
jk_map_read_property::jk_map.c (491): Adding property
'worker.tpl2.socket_timeout' with value '0' to map.
There also was an Ubuntu bug filed for that problem, but because I built the
module myself and did not use distribution packages, it seems that the error is
in mod_jk itself.
Cheers,
Frank
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]