Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Problem setting up CF10 and apache (mod_jk.so)

Guest
Jul 09, 2012 Jul 09, 2012

Hi there,

i am trying to set up CF10 parallel to CF9 with the apache webserver. I've tried it with the Beta of CF10 but it didn't works. Now we perchuased CF10 and the problem is still the same. We ar usiung a CentOS 5.7, and the apache server 2.2.3.

I installed CF10 with the server configuration, everything went fine. The first problem came up to, when i tried to start up the cfusion instance:

Running the ColdFusion 10 connector wizard

======================================================================

Configuring the web server connector (Launched on the first run of the ColdFusion 10 start script)

Running /etc/httpd/conf connector wizard...

=======================================

There was an error while running the connector wizard

Connector installation was not successful

=======================================

Well, then i've activated the build in webserver, and i was aviable to access to the admin site. I created a new instance a tried to connect it manually to the apache webserver with the follwoing tutorial: http://rob.brooks-bilson.com/index.cfm/2012/2/23/Configuring-Multiple-Instances-of-ColdFusion-10-wit...

I made a own vhost and tested the apache config with " apachectl configtest" and i got this error massage:

Cannot load /opt/coldfusion10/config/wsconfig/1/mod_jk.so into server: /opt/coldfusion10/config/wsconfig/1/mod_jk.so: undefined symbol: ap_get_server_description

What i tried/check:

  • Permissions and rights
  • compiled my own mod_jk.so

I really got stuck and don't know what to do... I would be really glad if somone could help me.

Yours Robert

8.2K
Translate
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
New Here ,
Aug 01, 2012 Aug 01, 2012
We had a similar issue.  We took a chance and installed ColdFusion 10 on RHEL 5.7 (not the officially sanctioned RHEL5 version).  Install went perfectly, no errors in the logfile, no complaints about anything!
When I went to start the Apache server, I got this:  "Starting httpd: httpd: Syntax error on line 991 of /etc/httpd/conf/httpd.conf: Syntax error on line 2 of /etc/httpd/conf/mod_jk.conf: Cannot load /local/scratch/coldfusion10/config/wsconfig/1/mod_jk.so into server: /local/scratch/coldfusion10/config/wsconfig/1/mod_jk.so: ELF file OS ABI invalid".
When we got more information on the library, we found that the mod_jk.so was in the wrong format for this OS.  (An ldd against the file returns "not a dynamic executable", and running the Unix "file" command results in "ELF 32-bit LSB shared object, Intel 80386, version 1 (GNU/Linux), not stripped") Anyone else run into this?
Do I really believe that RHEL 5.6 (the officially supported RHEL5 version for ColdFusion 10) would make that much difference?  Not really, but hey, stranger things have happened. Any perspective/experience would be appreciated.  Just as a backup plan, we're already configuring a RHEL6 (although it's 6.3 instead of 6.1).
Thanks.
Translate
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
New Here ,
Aug 15, 2012 Aug 15, 2012

Does anyone have a solution to this... I have the same issue as the OP.  Running RHEL 5.6, with Apache httpd 2.2.3-65.el5_8 and get this error when trying to start the webserver:

httpd: Syntax error on line 445 of /etc/httpd/conf/httpd.conf: Syntax error on line 2 of /etc/httpd/conf/mod_jk.conf: Cannot load /data/cf10/config/wsconfig/1/mod_jk.so into server: /data/cf10/config/wsconfig/1/mod_jk.so: undefined symbol: ap_get_server_description

We are 50 days from going live with CF10 (or planning to), and really could use some help on getting this issue resolved.

Translate
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
New Here ,
Aug 24, 2012 Aug 24, 2012

Really nothing?  Does anyone from Adobe monitor these forums?

Translate
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
LEGEND ,
Aug 25, 2012 Aug 25, 2012

Jamie_Azure wrote:

Really nothing?  Does anyone from Adobe monitor these forums?

No, they don't.  These forums are for the community.

You might try posting to http://serverfault.com/, although it's under-represented from a CF perspective.  I find - for CF programming questions - that StackOverflow is more reliable than these forums: there are more people there who know what they're doing than here.  That said, I don't know the same is far as server support goes.

Or instead of asking on a forum, engage either Adobe or a third party to help you out.  Whereabouts are you?

I saw your post but I don't know a great deal about CF on non-Windows platforms... I know enough to get myself in trouble, but not enough to get back out of trouble again, sorry.

--

Adam

Translate
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
Guest
Aug 27, 2012 Aug 27, 2012

Well, we were facing at least the same error message from httpd.

As far as we found out, this simply indicates the mod_jk.so version that is shipped with CF10 has not been compiled for the Apache HTTP version that you are actually using.

For us, we found out the shipped mod_jk.so works with current stable Apache 2.2.X 32-bit release, which at the moment seems to be 2.2.22.

If switching the Apache version is no option for you, you might consider to replace the shipped mod_jk.so with either a RHEL-shipped version (if exists) or one manually compiled on your system.

Jamie_Azure wrote:

Does anyone have a solution to this... I have the same issue as the OP.  Running RHEL 5.6, with Apache httpd 2.2.3-65.el5_8 and get this error when trying to start the webserver:

httpd: Syntax error on line 445 of /etc/httpd/conf/httpd.conf: Syntax error on line 2 of /etc/httpd/conf/mod_jk.conf: Cannot load /data/cf10/config/wsconfig/1/mod_jk.so into server: /data/cf10/config/wsconfig/1/mod_jk.so: undefined symbol: ap_get_server_description

We are 50 days from going live with CF10 (or planning to), and really could use some help on getting this issue resolved.

Translate
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
Guest
Aug 30, 2012 Aug 30, 2012

Well, i got stuck with the same problem ... But now i installed a totaly new server with CentOS 6.3 (2.6.32-279.5.2.el6.x86_64) and all the other stuff i need to run Cold Fusion with the Apache webserver. Also installed a Centos 6.3 x86 and tada...! Ther was no problem ... My suggestion is x86/x64 .... so we need a mod_jk.so which also runs under x64?

Translate
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
Guest
Aug 30, 2012 Aug 30, 2012

Update:

----------------------------

Installed Apache/2.2.22 (Unix) on CentOS 6.3 (2.6.32-279.5.2.el6.x86_64). Also reinstalled CF10 no the automatic connector configuration worked fine! But i'm reciving this errors....:

HTTP Status 500 -


type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: java.lang.NullPointerException coldfusion.bootstrap.ClassloaderHelper.initServletClass(ClassloaderHelper.java:129) coldfusion.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:414) org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:203) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539) org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298) java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) java.lang.Thread.run(Thread.java:662) 

root cause

java.lang.NullPointerException coldfusion.CfmServlet.init(CfmServlet.java:82) coldfusion.bootstrap.ClassloaderHelper.initServletClass(ClassloaderHelper.java:121) coldfusion.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:414) org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:203) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539) org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298) java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) java.lang.Thread.run(Thread.java:662) 

note The full stack trace of the root cause is available in the Apache Tomcat/7.0.23 logs.


Apache Tomcat/7.0.23

Any Idea?

Translate
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
Guest
Sep 02, 2012 Sep 02, 2012

Thank you Well, we did it! My colleague just uninstalled CF10, corrected my entry in "/etc/hosts" it was the wron DNS name .... *shame on me*. Then reinstalled CF 10 - 64bit from our purchased DVD, restarted coldfusion und apache.

That's it!

In summary you need the right version of apache 2.2.22 and mod_jk (THX edward beckett) and the correct entries in "/etc/hosts".

Yours Robert

Translate
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
New Here ,
Sep 07, 2012 Sep 07, 2012

Glad it's working! This has been a frustrating, insidious problem.

Translate
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
Community Beginner ,
May 16, 2013 May 16, 2013
LATEST

I wanted to add to the discussion my experience with install issues of CF. I've bumped up on two common issues with installing CF, the problems has been so consistent  that I wrote a short "how to" blogpost so I wouldn't forget the next time I needed to deploy another server. While my blog post addresses CF 10 and Cent OS 6.4, this method has always worked as far back as I can remember (eg: CF 8)

http://www.greenvalleyconsulting.org/2013/05/16/installation-problem-coldfusion-10-and-centos-6-x/

I hope it helps someone.

Translate
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
New Here ,
Sep 02, 2012 Sep 02, 2012

I hate to be captain obvious here but your issues are stated directly in the errors ... You trying to load mod_jk.so on Apache 2.2 ... that will not work ... it's the wrong binary ...

Try running  http -v to see which version of Apache you have on the server ... Example ...

# ~ httpd -v

Server version: Apache/2.2.22 (Unix)

It this is the case then you need mod_jk22.so on the server ... the web server configuration script 'should' have built the binaries for you in ... /opt/coldfusion10//runtime/lib/wsconfig/1/


~~~

http://helpx.adobe.com/coldfusion/kb/coldfusion10-apache-manual-connector-configuration.html

Translate
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