Mark Drew (Redux)- cf_etc...

a compendium of railo, cfml, cfeclipse and technology topics

Mark Drew (Redux)- cf_etc...

Installing Coldfusion (and JRun) on a MacBook Pro

April 12, 2006 · 23 Comments

I didnt have that many problems doing this installation but a number of people have asked me about this, both here and on Sean Corfield's blog.

So I have gone through the process and taken pictures along the way so you can work with me :)

Check out the Gallery here
Remember that there is more info on deploying Coldfusion on JRun over at Macromedia

Tags: apple · coldfusion · reference

23 responses so far ↓

  • 1 Tink // Sep 22, 2008 at 4:11 PM

    Hey Mark

    Any chance you can get that link working? I've been trying to get CFMX and JRun setup on my MacTel for 4 days now. I've shredded my flat and if i don't get it running soon I'm afraid i will have to start taking it out on my neighbours ;).
  • 2 Mark Drew // Sep 22, 2008 at 4:11 PM

    Hey Tink, add me to your gtalk contact list and I shall walk you through it... I would need to find the actual document ...
  • 3 Maurice // Sep 22, 2008 at 4:11 PM

    Hi Guys
    i have being trying desperatley for the last week to get jrun 4 to run on macbook so ican get coldfusion to run. I can get to the launcher but when i try to launch the admin server it errors. it says to look for a console log which is not there > the only info i have is that in terminal it says error cannot find jvm" I have java 1.4.2 installed > if you have any ideas how i could fix this please let me know. I have follwed all the guides but cant get the jrun server to work. any advice is greatly appreciated
    Thanks
  • 4 Mark Drew // Sep 22, 2008 at 4:11 PM

    @Jason, follow the link in the blog post and it will show you what to do with the cfusion.war and rds.war once you have deployed these web archives you will have deployed coldfusion to Jrun

    @Chris, I use a script that changes the JVM so that JRun can use the right one, I shall be posting it as an attachment, it needs to be run from the terminal as ./setJDK to list the versions and then you do ./setJDK <JDK version>. This script was written by Simeon Bateman and I have found it very useful.

    @Maurice, to run JRun you dont start the JRun launcher you do a command something like

    java -jar /Applications/JRun/lib/jrun.jar -start default

    (where default is the server that you deployed coldfusion to)

    Once it has started (on whatever port) you can access coldfusion doing something like:

    http://localhost:8000/cfusion/cfide/administrator

    Hope that helps
  • 5 Maurice // Sep 22, 2008 at 4:12 PM

    Hey Mark

    Thnks for the response. I tried to run it from terminal but it keeps giving me this error except now it says that it canot create the java virtual machine.
    I have only just got the Macbook so i have not installed any java updates yet so i assume that there is a jvm installed with osx> if you have any other ideas it would be greatly appreciated. Thanks for the help
  • 6 Jason Calleiro // Sep 22, 2008 at 4:12 PM

    I downloaded jrun but the minute i click on the icon it freezes the entire computer
  • 7 Haikal // Sep 22, 2008 at 4:12 PM

    Any particular reason why you did the JRun/CF War install separately?

    I just installed CF7 on my G4 powerbook just yesterday, and if I select the "built-in web server" option, I get the exact same result, but with a little less stuffing around.
  • 8 dave // Sep 22, 2008 at 4:12 PM

    a g4 powerbook isnt the same as a macbook pro, yeah cfm works great on a g4 ppc but not on intel yet. I'm going to try and install the default cfmx7 w/o the jrun part and see if it work by starting the server in terminal. I tried it b4 but I swore it didn't work but will try again, if not I will "be like Drew" :)~
  • 9 Mark Drew // Sep 22, 2008 at 4:12 PM

    It doesnt really work, out of the box, hence the deployment. I might try an EAR deployment rather than war as I hate those context paths.

    The second problem is that I cant get the wsconfig.jar to work to create the webserver connector to Apache. Its something I am looking into, since I absolutely HATE putting all my stuff under the JRun directory. Makes it all messy!

    Why do a few people call me Drew? You can call me Mark you know? we are all friends here :) No need to be formal (and if you are going to be formal, thats MR Drew!)
  • 10 Ted // Sep 22, 2008 at 4:12 PM

    As a side note: I installed CF7 on my Powerbook G4 last week. I had a hassle where it would say that the password supplied was not correct for the bit where it uses sudo to setup the built in web server.Turned out my user password had non alpha numeric characters in it, (i.e. % or ! or #).

    When I changed my password to simple letters and numbers, it worked. I changed the password back after.
    Did this occur for anyone when installing on their MacBook Pro?
  • 11 Jason Calleiro // Sep 22, 2008 at 4:12 PM

    installation went smoothly now after updating os x, but im kinda a begginer. after the install, how do i start my coldfusion server and where do i put my site files?
  • 12 dave // Sep 22, 2008 at 4:12 PM

    "I downloaded jrun but the minute i click on the icon it freezes the entire computer"
    I had that same problem on my imac and took it to the apple store and they ended up giving me a new macbook pro. Pretty much chalked it up to a hd problem because they could boot from a external disk and it would install but not mine, although they did a re-install of osx there and first thing installed jrn and it was fine, go figure. I'd take it back to Apple and let them see it do it. They will want to replace the logic board and then they will think its the firmware update but i'd assume its the hard drive.
  • 13 Mark Drew // Sep 22, 2008 at 4:12 PM

    Jason, have you deployed Coldfusion? if you have the path to your cfml files (or web root in normal talk) is:
    /Applications/JRun4/servers/default/cfusion

    depending how you deployed it of course.

    to start it on a macbook pro for example go to
    /Applications/JRun4/lib and run (from the terminal)

    ./java -jar jrun.jar -start default
  • 14 Jason Calleiro // Sep 22, 2008 at 4:12 PM

    Thank you everyone for all the help so far! Let me retrace my steps so you can know where i stand.
    Got jrun installed.
    Installed coldfusion.
    (Followed everything just like the gallery)
    Jrun is running fine. Got into the admin area.
    Closed out admin window and terminal.
    Installed Coldfusion.
    Tried starting using java -jar jrun.jar start cfusion and got this error "JRun server "cfusion" does not exist, the server root null was not found. Please verify that the /Applications/JRun4/lib/servers.xml file contains valid data for this server."
    Now im stuck.
    Let me know if you guys know what is going on.

    I'm using a new intel macbook.
  • 15 Mark Drew // Sep 22, 2008 at 4:12 PM

    Jason, go into your Application/Jrun4/servers directory and see what folders there are in there, these will be your servers. How I installed it coldfusion was installed under the "default" server so check to see if you have a cfusion directory under that.

    To start it you would then have to say to start the default server rather than cfusion


    HTH
  • 16 Jason Calleiro // Sep 22, 2008 at 4:12 PM

    Thanks Mark.
    I checked in all the folders under jrun and find nothing having to do with coldfusion. all i can find on my harddrive related to cf is in the cfmx7 folder which has..


    cfmx-j2ee-readme.txt
    cfusion.war
    license.txt
    Macromedia_ColdFusion_MX_7_InstallLog.log
    rds.war
    Readme.htm

    this is becoming frustrating... but ill keep trying.
    let me know what you think.
  • 17 Chris S. // Sep 22, 2008 at 4:13 PM

    I too am a little new to ColdFusion and could use some assistance with the proper installation and configuration. I am running on a Macbook Pro and recently downloaded the developer edition of Coldfusion MX 7.1. I am trying to install it with the built in server, however once I go through the installation process and try to login to the admin at http://localhost:8500/CFIDE/administrator/index.cfm I receive an error that says could not connect to the server "localhost". I checked the cfserver.log and it says "Could not create the Java Virtual Machine". Based on my research I thought this might be because I was running Java 1.5, but I tried running 1.4.2 and still had no luck.

    Any help that you could provide would be greatly appreciated. Thanks!
  • 18 mark // Sep 22, 2008 at 4:13 PM

    another desperate plea for help getting JRun up and running on a MBP ! Using Java 5 but have used the jrun updater 6 which I understand provides the 5 compatibility. When i launch the jar i'm getting "Starting JRun 4.0 .." but fails to start any servers with java.lang.NoSuchMethodException which I gather still indicates Java version issues.

    I've pointed jvm.config at the correct JDK, have also amended the symlink for CurrentJDK to be safe, added D-jmx.invoke.getters=true to the jvm.config args but still no dice. have tried reverting to one of the other two JDKs I have (1.3.1 and 1.4.2) but neither works.

    am new to osx, would really appreciate some help
  • 19 Tink // Sep 22, 2008 at 4:13 PM

    My advice would be to sack it off and use CF 8. I spent weeks trying to get it up and running wasted many hours and was unsuccessful.
  • 20 mark // Sep 22, 2008 at 4:13 PM

    probably good advice, but I managed to get Jrun working, so I think i'll torture myself some more and try and get the whole shebang up and running. this is what i used to start servers :

    sudo /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/bin/java -server -Djava.awt.headless=true -jar /Applications/JRun4/lib/jrun.jar -start admin

    taken from this which would appear to be the daddy of all posts on the subject:

    http://blog.webmages.com/geek/cfmx-on-intel-macs/
  • 21 Werbeagentur // Sep 22, 2008 at 4:13 PM

    Great Gallery :) THX for sharing it.
    Many Gracias from Germany, to all!
  • 22 Webdesign Agentur // Sep 22, 2008 at 4:14 PM

    thanks for all the informations
  • 23 Lucky G // Sep 22, 2008 at 4:14 PM

    Hi Got to this blog while looking for information on Axis2 1.3 and JRun4 Update 6. Seems they are no match. Do you ppl ever tried this and know the solution.
    Many thanks in advance
    Lucky

Leave a Comment