Skip to main content
dejank52055655
Inspiring
March 6, 2019
Answered

ColdFusion 2018 Release 3 mod_jk24.so connector error

  • March 6, 2019
  • 2 replies
  • 3076 views

Hi,

I've updated our ColdFusion 2018 from update 1 -> to update 3 sucessfully, the instances are running and working.

The instructions for this update said to recreate the apache mod_jk24.so so I recreated the connector by following these instructions manually

ColdFusion Apache manual connector configuration

I've used the /cfdisk/coldfusion2018/cfusion/runtime/lib/wsconfig/connectors/apache/intel-win64/prebuilt/mod_jk24.so

However I'm getting apache error when I tried to test the apache

[admin@cfserver1 1]$ apachectl -t

httpd: Syntax error on line 358 of /etc/httpd/conf/httpd.conf: Syntax error on line 2 of /etc/httpd/conf/mod_jk.conf: Cannot load /cfdisk/coldfusion2018/config/wsconfig/1/mod_jk24.so into server: /cfdisk/coldfusion2018/config/wsconfig/1/mod_jk24.so: invalid ELF header

so I reverted the mod_jk24.so to the earlier version (ColdFusion 2018 Release 1)

We are running CentOS Linux release 7.5.1804 (Core), httpd x86_64 version 2.4.6 Release 80.el7.centos.1, Coldfusion 2018 Release 3 and we are using mod_jk connector mod_jk24.so, no SeLinux.

I've followed the same connector instructions when I updated CF 2016 -> CF 2018

Is there a difference with installing the connector with the supplied wsconfig tool vs manually?

Any ideas what might be wrong?

Could the issue be incompatible mod_jk with current apache version, if so how to I verify comparability?

Should I report a bug?

Thanks

Dejan

This topic has been closed for replies.
Correct answer dejank52055655

To fix the issue, I ran wsconfig tool

cd /cfdisk/coldfusion2018/runtime/bin

./wsconfig -ws Apache -bin /usr/sbin/httpd -script /usr/sbin/apachectl -dir /etc/httpd/conf/ -v

Tool generated the updated mod_jk.so file in the /etc/httpd/conf folder, so I copied it to

/cfdisk/coldfusion2018/conf/wsconfig/1/

then, I changed the /etc/httpd/conf/mod_jk.conf the line to point to new file:

# Load mod_jk module

LoadModule    jk_module  "/cfdisk/coldfusion2018/config/wsconfig/1/mod_jk.so"

then I tested the apache apachectl -t succesfully

Checking the mod_jk.log

tail -f /cfdisk/coldfusion2018/config/wsconfig/1/mod_jk.log

...

mod_jk.log:[..11:07:29 2019] [22322:140538513344640] [info] jk_log_version::jk_connector_version.h (21): Connector Version: 311299

mod_jk.log:[...16:20:38 2019] [5883:140273673635968] [info] jk_log_version::jk_connector_version.h (21): Connector Version: 312584

mod_jk.log:[..16:20:38 2019] [5866:140273673635968] [info] jk_log_version::jk_connector_version.h (21): Connector Version: 312584

...

Thanks

2 replies

dejank52055655
dejank52055655AuthorCorrect answer
Inspiring
March 8, 2019

To fix the issue, I ran wsconfig tool

cd /cfdisk/coldfusion2018/runtime/bin

./wsconfig -ws Apache -bin /usr/sbin/httpd -script /usr/sbin/apachectl -dir /etc/httpd/conf/ -v

Tool generated the updated mod_jk.so file in the /etc/httpd/conf folder, so I copied it to

/cfdisk/coldfusion2018/conf/wsconfig/1/

then, I changed the /etc/httpd/conf/mod_jk.conf the line to point to new file:

# Load mod_jk module

LoadModule    jk_module  "/cfdisk/coldfusion2018/config/wsconfig/1/mod_jk.so"

then I tested the apache apachectl -t succesfully

Checking the mod_jk.log

tail -f /cfdisk/coldfusion2018/config/wsconfig/1/mod_jk.log

...

mod_jk.log:[..11:07:29 2019] [22322:140538513344640] [info] jk_log_version::jk_connector_version.h (21): Connector Version: 311299

mod_jk.log:[...16:20:38 2019] [5883:140273673635968] [info] jk_log_version::jk_connector_version.h (21): Connector Version: 312584

mod_jk.log:[..16:20:38 2019] [5866:140273673635968] [info] jk_log_version::jk_connector_version.h (21): Connector Version: 312584

...

Thanks

Priyank Shrivastava.
Community Manager
Community Manager
March 6, 2019

Hi,


Did you copy the mod_jk.so file  in /cfdisk/coldfusion2018/config/wsconfig/1/. You can use the wsconfig tool to create the connector.

Thanks,

Priyank

Thanks, Priyank Shrivastava
dejank52055655
Inspiring
March 6, 2019

I've extracted the wsconfig.jar file and copied the /cfdisk/coldfusion2018/cfusion/runtime/lib/wsconfig/connectors/apache/intel-win64/prebuilt/mod_jk24.so to /cfdisk/coldfusion2018/config/wsconfig/1/.

Should I try running the wsconfig tool?

Priyank Shrivastava.
Community Manager
Community Manager
March 6, 2019

Hi,

You don't have to copy this in /cfdisk/coldfusion2018/config/wsconfig/1/.

You have to copy this in /etc/httpd/conf and change the name to mod_jk.so instead of mod_jk24.so.

Restart the Apache. If that will not work, I will give you the command to re-do the connector.

Thanks,

Priyank

Thanks, Priyank Shrivastava