Skip to main content
September 16, 2012
Answered

mod_jrun22.so wrong architecture (CF9 and MAMP on Snow Leopard/Lion

  • September 16, 2012
  • 2 replies
  • 5383 views

I have been trying to set up a local development environment on both my Snow Leopard and Lion machines.

I think I'm having problems with the connectors, but the solutions I have located online have not resolved the issue. (The GUI hasn't been able to create the connectors for me either.)

I get this error:

9/15/12 10:36:47.104 PM [0x0-0xe00e].de.appsolute.MAMP: httpd: Syntax error on line 549 of /Applications/MAMP/conf/apache/httpd.conf: Cannot load /Applications/ColdFusion9/runtime/lib/wsconfig/1/mod_jrun22.so into server: dlopen(/Applications/ColdFusion9/runtime/lib/wsconfig/1/mod_jrun22.so, 10): no suitable image found.  Did find:\n\t/Applications/ColdFusion9/runtime/lib/wsconfig/1/mod_jrun22.so: mach-o, but wrong architecture

And am unable to start Apache (MAMP) after manually adding the following to my httpd.conf file:

# JRun Settings

LoadModule jrun_module "/Applications/ColdFusion9/runtime/lib/wsconfig/1/mod_jrun22.so"

<IfModule mod_jrun22.c>

    JRunConfig Verbose false

    JRunConfig Apialloc false

    JRunConfig Ignoresuffixmap false

    JRunConfig Serverstore "/Applications/ColdFusion9/runtime/lib/wsconfig/1/jrunserver.store"

    JRunConfig Bootstrap 127.0.0.1:51800

    #JRunConfig Errorurl url <optionally redirect to this URL on errors>

    #JRunConfig ProxyRetryInterval 600 <number of seconds to wait before trying to reconnect to unreachable clustered server>

    #JRunConfig ConnectTimeout 15 <number of seconds to wait on a socket connect to a jrun server>

    #JRunConfig RecvTimeout 300 <number of seconds to wait on a socket receive to a jrun server>

    #JRunConfig SendTimeout 15 <number of seconds to wait on a socket send to a jrun server>

    AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc .cfr .cfswf

</IfModule>

I have read that there have been issues with Lion, but I get the same results with Snow Leopard.

I have also extracted different wsconfig files from both wsconfig.jar and while extracting them from the ColdFusion9 installer.

Anyone have any additional ideas on what direction to take next in order to create a local developmemnt environment?

Any help would be appreciated. Thanks in advance.

This topic has been closed for replies.
Correct answer 12Robots

I actually just had this problem last night. It seems that CF9 did not come bundled with the 64-bit connector for Apache.  I downloaded it from here: http://www.scottpinkston.org/Downloads/mod_jrun22_64.zip (compiled by a developer I know and trust).

Replace the one in /Applications/ColdFusion9/runtime/lib/wsconfig/1/mod_jrun22.so

Then restart ColdFusion and Apache.

If that does not work, then you may need to go through the ame process I did.

1. Remove the JRun config from Apache's httpd.conf

2. remove the wsconfig/1 folder

3. in /ColdFusion9/runtime/lib/ copy wsconfig.jar

4. Rename the copied jar to wsconfigfiles.zip

4. Unzip that archive, you'll then have a folder called wsconfigfiles

5. In that folder create this folder path wsconfigfiles/connectors/apache/intel-macosx64/prebuilt

6. Copy the new mod_jrun22.so you downloaed above into the prebuilt folder

7. Then return to the wsconfigfiles folder and create a new wsconfig.jar using the command in the next step

8.  jar -cmf META-INF/MANIFEST.MF wsconfig.jar *

9. You MUST do the above command in the wsconfigfiles folder

10. You'll now have a new wsconfig.jar inside of wsconfigfiles.  Use that file to replace the wsconfig.jar file in /ColdFusion9/runtime/lib/ (create a backup of the original, just in case)

11. Restart CF

12. From within /ColdFusion9/runtime/lib/ run the command in the next step

13. sudo java -jar wsconfig.jar

14. Use the Web Server config tool to set up a connection to apache

15. Should work. Restarts may be needed.

Good luck,

jason

2 replies

12Robots
12RobotsCorrect answer
Participating Frequently
September 20, 2012

I actually just had this problem last night. It seems that CF9 did not come bundled with the 64-bit connector for Apache.  I downloaded it from here: http://www.scottpinkston.org/Downloads/mod_jrun22_64.zip (compiled by a developer I know and trust).

Replace the one in /Applications/ColdFusion9/runtime/lib/wsconfig/1/mod_jrun22.so

Then restart ColdFusion and Apache.

If that does not work, then you may need to go through the ame process I did.

1. Remove the JRun config from Apache's httpd.conf

2. remove the wsconfig/1 folder

3. in /ColdFusion9/runtime/lib/ copy wsconfig.jar

4. Rename the copied jar to wsconfigfiles.zip

4. Unzip that archive, you'll then have a folder called wsconfigfiles

5. In that folder create this folder path wsconfigfiles/connectors/apache/intel-macosx64/prebuilt

6. Copy the new mod_jrun22.so you downloaed above into the prebuilt folder

7. Then return to the wsconfigfiles folder and create a new wsconfig.jar using the command in the next step

8.  jar -cmf META-INF/MANIFEST.MF wsconfig.jar *

9. You MUST do the above command in the wsconfigfiles folder

10. You'll now have a new wsconfig.jar inside of wsconfigfiles.  Use that file to replace the wsconfig.jar file in /ColdFusion9/runtime/lib/ (create a backup of the original, just in case)

11. Restart CF

12. From within /ColdFusion9/runtime/lib/ run the command in the next step

13. sudo java -jar wsconfig.jar

14. Use the Web Server config tool to set up a connection to apache

15. Should work. Restarts may be needed.

Good luck,

jason

Adobe Employee
September 20, 2012

Hi Jason

Did you try ColdFusion 9 64 bit installer?

Rgds

Swaraj

12Robots
Participating Frequently
September 20, 2012

Yes. That is what I downloaded and used. Just downlaoded it a few days ago. And when I unzipped the wsconfig.jar it had Apache connectors for all of the architectures *except* Mac OSX 64 bit. When I added that folder and file described above, everythign worked fine.

Jason

Adobe Employee
September 17, 2012

Hi

Please confirm if you are using Mac OS 64 bit, Apache 2.2.21 and Apple JDK 1.6_0_15, 1.6_0_29. In case not please try this environment.

Swaraj

September 18, 2012

Mac OS X 10.6.8 (Intel Core 2 Duo  64-bit)

Apache 2.2.22 (as part of MAMP installation)

Java SE 6 - 1.6.0_33-b03-424 (from Java Preferences Utility)

Are you suggesting that I use those older versions instead of the newer version I have?