Why CFMX wont run nicely on my MacBook ... yet
Ok, so its a bit of an alarmist headline, but I went through a whole procedure of installing CFMX to run on JRun and THAT runs (see my previous post) which is fair enough, but I dont like the following:
- putting all my sites in /Applications/JRun4/servers/default/cfusion, where I cant run PHP and other websites (I feel its untidy but that is just me)
- having the context as /cfusion and the url on a port like: http://localhost:8100/cfusion/
- having to start JRun manually.
markdrew:/Applications/JRun4/lib mark$ java -jar wsconfig.jar
2006-04-13 11:56:57.992 java[487] CFLog (0): CFMessagePort: bootstrap_register(): failed 1103 (0x44f), port = 0xf803, name = 'java.ServiceProvider'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2006-04-13 11:56:57.995 java[487] CFLog (99): CFMessagePortCreateLocal(): failed to name Mach port (java.ServiceProvider)<br />
Then I tried the console version of wsconfig 2006-04-13 11:56:57.992 java[487] CFLog (0): CFMessagePort: bootstrap_register(): failed 1103 (0x44f), port = 0xf803, name = 'java.ServiceProvider'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2006-04-13 11:56:57.995 java[487] CFLog (99): CFMessagePortCreateLocal(): failed to name Mach port (java.ServiceProvider)<br />
markdrew:/Applications/JRun4/lib mark$ java -jar wsconfig.jar -ws Apache
Apache web server is not supported on Mac OS X
Ok, so if it is just getting errors, lets do it manually as defined by this document over at macromediaApache web server is not supported on Mac OS X
I wont detail how I did this as the document describes how to manually do all of this, and then I come to the last part, which is where you get the mod_jrun.so from the expanded wsconfig.jar, the options didnt have what I was looking for:

So, being the person I am, I tried them all and got the following error each time:
markdrew:/Applications/JRun4/lib mark$ apachectl restart
/usr/sbin/apachectl restart: httpd not running, trying to start
Processing config directory: /private/etc/httpd/users/*.conf
Processing config file: /private/etc/httpd/users/mark.conf
Syntax error on line 1112 of /etc/httpd/httpd.conf:
Cannot load /Applications/JRun4/lib/wsconfig/1/mod_jrun.so into server: (reason unknown)
/usr/sbin/apachectl restart: httpd could not be started
/usr/sbin/apachectl restart: httpd not running, trying to start
Processing config directory: /private/etc/httpd/users/*.conf
Processing config file: /private/etc/httpd/users/mark.conf
Syntax error on line 1112 of /etc/httpd/httpd.conf:
Cannot load /Applications/JRun4/lib/wsconfig/1/mod_jrun.so into server: (reason unknown)
/usr/sbin/apachectl restart: httpd could not be started
So that is where I am at. If I could get the source to mod_jrun.so and recompile it under my MacBook Pro it might work. I tried the intel, but that didnt work, I tried the linux and the mac versions still with no use. If anybody has any ideas, let me know!
EDIT: Simeon Bateman pointed me to this article on rebuilding the mod_jrun.so! so I shall be giving this a go tonight to see if I can get it all working smoothly!