Skip to main content
April 8, 2007
Question

Apache JRun4 Problem with CFMX7

  • April 8, 2007
  • 10 replies
  • 1538 views
Hi,

I just spent a while today trying configure a Apache and Coldfusion environment. I went through all the installations and configurations etc just fine.

However, my browser is unable to load any pages from localhost. Looking at the Apache,I try and start it up but then it gives me a pop up box saying "The requested operation has failed".

So, to look further into it I opened the test configuration where it says...

httpd.exe: Syntax error on line 486 of c:/Program Files/Apache Software Foundation/Apache2.2/conf/httpd.conf: Cannot load c:/JRUN4/lib/wsconfig/1/mod_jrun20.so into server: The specified procedure could not be found.

So, naturally I go and check if c:/JRUN4/lib/wsconfig/1/mod_jrun20.so is actually there on my computer and it is...so I'm really stumped as to what's going on.

I can't restart or start Apache as I just get that same message and is why I assume I cannot see my cfml pages etc.

Does anybody have any ideas on this? I'm no expert and this is my first time using these together but I'm pretty sure I've done nothing wrong.

Thanks for your help.

Michael.

PS - I recently post this in the wrong forum. Apolgies about that - I think it's more suited here.
    This topic has been closed for replies.

    10 replies

    April 11, 2007
    Well BKBK,

    I have tried running the Web Server Configuartion Tool and guess what? Yet more problems!

    This time it seems to just popup something real quick then just simply disappear! Even if I locate the exe file directly it does the same?

    Is all hope lost! Hmm.

    Many thanks.

    Mikey.
    BKBK
    Community Expert
    Community Expert
    April 12, 2007
    I have tried running the Web Server Configuartion Tool and guess what? Yet more problems!
    This time it seems to just popup something real quick then just simply disappear! Even if I locate the exe file directly it does the same?


    We've met something similar with Windows XP SP2. That time Windows' socks were the cause. Here is a possible solution.

    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=1&catid=2&threadid=1239535

    April 11, 2007
    So BKBK, if I was to remove everything I should reinstall but set-up Coldfusion first? Because this ACME guide I was following explicitly states to install Apache first, then Coldfusion.

    I'm really sorry that this thread has dragged on clouding other peoples - It's just that I'm so eager to get this going.

    Many thanks everyone for your help. I'll guess I'll take on board what everyone has said and attempt to do this again.

    Mikey.
    BKBK
    Community Expert
    Community Expert
    April 11, 2007
    I'm really sorry that this thread has dragged on clouding other peoples
    Mighty nice of you. You shouldn't be. The main business of the forum is to drag on. I think no one will feel clouded, so long as we're all dragging in the same general direction.

    So BKBK, if I was to remove everything I should reinstall but set-up Coldfusion first? Because this ACME guide I was following explicitly states to install Apache first, then Coldfusion.
    I don't think the order matters. What matters is that you use the Web Server Configuration Tool.

    April 10, 2007
    I notice that you are using apache 2.2. You will need to use the mod_jrun22.so

    1. Download this hotfix: http://www.adobe.com/support/coldfusion/ts/documents/8001e97/wsconfig.zip
    2. Extract the jar and open it with winrar or similar.
    3. Copy wsconfig.jar\connectors\apache\intel-win\prebuilt\mod_jrun22.so to your machine {path to mod_jrun}
    April 10, 2007
    quote:

    Originally posted by: monkey woo too
    I notice that you are using apache 2.2. You will need to use the mod_jrun22.so

    1. Download this hotfix: http://www.adobe.com/support/coldfusion/ts/documents/8001e97/wsconfig.zip
    2. Extract the jar and open it with winrar or similar.
    3. Copy wsconfig.jar\connectors\apache\intel-win\prebuilt\mod_jrun22.so to your machine {path to mod_jrun}


    Hi Monkey Woo Too (nice name by the way),

    I followed you steps and my conf file now looks as attached.

    However, now when I navigate to http://localhost/CFIDE/administrator.inde.cfm I get a 500 Internal Server Error.

    After checking the error log on Apache I get the following messages...

    [Tue Apr 10 21:57:22 2007] [notice] jrApache[1228: 11529] 127.0.0.1:51000 connect failed: 10060 Connection timed out
    [Tue Apr 10 21:57:22 2007] [notice] jrApache[1228: 11529] could not open serverstore "/usr/apache/conf/jrunserver.store": No such file or directory
    [Tue Apr 10 21:57:22 2007] [notice] jrApache[1228: 11529] Couldn't initialize from remote server, JRun server(s) probably down.
    [Tue Apr 10 21:57:22 2007] [notice] jrApache[1228: 11529] JRun will not accept request. Check JRun web server configuration and JRun mappings on JRun server.
    [Tue Apr 10 21:58:00 2007] [notice] jrApache[1228: 13321] 127.0.0.1:51000 connect failed: 10060 Connection timed out
    [Tue Apr 10 21:58:00 2007] [notice] jrApache[1228: 13321] could not open serverstore "/usr/apache/conf/jrunserver.store": No such file or directory
    [Tue Apr 10 21:58:00 2007] [notice] jrApache[1228: 13321] Couldn't initialize from remote server, JRun server(s) probably down.
    [Tue Apr 10 21:58:00 2007] [notice] jrApache[1228: 13321] JRun will not accept request. Check JRun web server configuration and JRun mappings on JRun server.

    I'm not sure exactly how to amend this problem. I hope that, with your help I'm getting closer to figuring this one out, but I'm not sure how to take action on the error.

    It appears that "/usr/apache/conf/jrunserver.store" doesn't exist, and to be honest, I'm not even sure where I got that link to it from - I think it was from an example conf file I saw. If I don't have a jrunserver.store file how would I aqcuire one? Sorry for my ignorance!

    Kind regards,

    Mikey.
    April 10, 2007
    Also, I have seen many sites say the server store file should be here:

    C:/JRun4/lib/wsconfig/1/jrunserver.store

    But I only seem to have:

    C:/JRun4/lib/wsconfig/

    There seems to be no folder labelled "1" and no such server.store file.

    Again, I'm really confused.

    Many thanks,

    Mikey.
    April 10, 2007
    Connecting Apache and CF is rather quite easy. In fact i would recomend doing it by hand rather than using the wsconfig tool...

    All you need to do is this:

    Stick some connector code in your conf file:

    LoadModule jrun_module "{path to mod_jrun}"
    JRunConfig Verbose false
    JRunConfig Apialloc false
    JRunConfig Ssl false
    JRunConfig Ignoresuffixmap false
    JRunConfig Serverstore "{server store}"
    JRunConfig Bootstrap 127.0.0.1:{JRunProxyService port}
    AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc .cfr .cfswf

    As you can see, you need to know 3 things,
    1. Where the mod_jrun is - {path to mod_jrun}. You can find a copy in c:\Jrun4\lib\wsconfig.jar\connectors\apache\intel-win\prebuilt\ (select the appropriate one for your version of apache and OS). I would extract it to /modules/ in the apache install folder.
    2. A path for the server store - {server store}. You can put this whereever you like.. I would put it here: C:\JRun4\lib\wsconfig\1\jrunserver.store
    3. The port that JRun's web connector is listening on - {JRunProxyService port}. You can find this in: C:\JRun4\servers\cfusion\SERVER-INF\jrun.xml, look for the port attribute in the jrun.servlet.jrpp.JRunProxyService service node (it will probably be 51020). Make sure that <attribute name="deactivated"> is set to true.

    Obviously, you will need to restart CF and apache.
    BKBK
    Community Expert
    Community Expert
    April 10, 2007
    Did you use the Web server Cofiguration Tool? What was the result?

    April 10, 2007
    BKBK...

    What I was doing was following the infamous ACME guide. When I decided to install these programs I did Apache first. Then during my CFMX7 setup, I configured it for multi server and I have already entered the full path of the Apache binary etc. It SHOULD all be working.

    But as you can see from my httpd.conf file, there seems to be no reference to JRUN etc like there was in my previous installation.

    I'm really confuzed!

    Many thanks. Further input much appreciated.

    Inspiring
    April 10, 2007
    Also you can do this by executing,

    cf_root/runtime/bin/wsconfig.exe -server coldfusion -ws apache -dir "c:\program files\apache group\apache2\conf" -coldfusion -v

    through the command line interface...
    BKBK
    Community Expert
    Community Expert
    April 9, 2007
    I see just now you're on MX7.x. Then how come the path of your configuration file is

    c:/JRUN4/lib/wsconfig/1/mod_jrun20.so

    instead of

    c:/cfusionmx7/runtime/lib/wsconfig/1/mod_jrun20.so?

    Did you perhaps forget to delete the files of a previous installation?

    April 9, 2007
    Hi everyone, thanks for your input.

    I'm on Windows XP. My versions are as follows:

    Coldfusion MX7 & Apache 2.2

    To BKBK - I use to have Coldfusion 6.1 on here and removed it. I've also had CFMX 7 on here before but removed it too (for a totally different reason).

    What I have done now is basically uninstalled everything and cleared the registry with a registry cleaner. So in theory if I run this install again everything should be fine?

    Many thanks for your help.

    Further input is much appreciated.

    Regards,

    Michael.
    April 9, 2007
    Ok Guys,

    I unistalled everything and redid it exactly the same way...now I'm getting something totally different!

    Now, Apache seems fine, I can restart it, stop it etc and it works great. Thing is, when I navigate to http://localhost/CFIDE/administrator/index.cfm for example, instead of it opening in the browser, it asks me if I want to save the file?!!

    It doesn't seem like it's 'serving' the page but rather just locating it on the system like any other file...what's up with that?

    This is really frustrating!

    Any help would be very appreciated. Many thanks.

    Oh and one more thing, I have noticed that the httpd.conf of Apache is actually lacking some of the code it had in the previous installation. See attached my httpd.conf file. It's different at the bottom.

    Any ideas?
    Inspiring
    April 9, 2007
    Hi,

    If you are using CFMX 7 then try this technote..

    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=8001e97
    BKBK
    Community Expert
    Community Expert
    April 9, 2007
    What are your operating system, Apache version and Coldfusion version? In the early days of the Coldfusion MX series there was an issue between Apache 2.0.39 and JRun 4.0/ColdFusion MX