• Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
    Dedicated community for Japanese speakers
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
    Dedicated community for Korean speakers
Exit
0

ColdFusion 2018 Release 3 mod_jk24.so connector error

Participant ,
Mar 06, 2019 Mar 06, 2019

Copy link to clipboard

Copied

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

TOPICS
Connector

Views

2.8K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Participant , Mar 08, 2019 Mar 08, 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

...

Votes

Translate

Translate
Adobe Employee ,
Mar 06, 2019 Mar 06, 2019

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 06, 2019 Mar 06, 2019

Copy link to clipboard

Copied

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Mar 06, 2019 Mar 06, 2019

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 07, 2019 Mar 07, 2019

Copy link to clipboard

Copied

Hi Priyank,

I've done that however I'm still getting the invalid ELF error.

Thanks

Dejan

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 07, 2019 Mar 07, 2019

Copy link to clipboard

Copied

Do you mind giving me the command to recreate the connector? Do I have to backup any files prior to running the command?

Thank you

Dejan

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Mar 07, 2019 Mar 07, 2019

Copy link to clipboard

Copied

Hi Dejan,

Can you please send an email at cf.install@adobe.com I will help you over the call and will share the solution here once it is resolved.

Thanks,

Priyank

Thanks,
Priyank Shrivastava

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 07, 2019 Mar 07, 2019

Copy link to clipboard

Copied

Sent the email and got a ticket logged.

thanks

Dejan

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 08, 2019 Mar 08, 2019

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation