Web DevCenter
oreilly.comSafari Books Online.Conferences.
MySQL Conference and Expo April 14-17, 2008, Santa Clara, CA

Sponsored Developer Resources

Web Columns
Adobe GoLive
Essential JavaScript
Megnut

Web Topics
All Articles
Browsers
ColdFusion
CSS
Database
Flash
Graphics
HTML/XHTML/DHTML
Scripting Languages
Tools
Weblogs

Atom 1.0 Feed RSS 1.0 Feed RSS 2.0 Feed

Learning Lab






ColdFusion MX on Mac OS X, Part 3
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11

Run ColdFusion MX on Mac OS X

Well, girls and boys, that time we have all been anticipating has finally arrived--it's Christmas in August!

  1. From the Mac OS X Terminal window, execute the shell script by entering:

    /opt/coldfusionmx/bin/coldfusionosx start

    Author's Note: You can also stop or restart CFMX by issuing the above command and substituting the parameter (last word) with the desired action.

    When you see the message: Server default ready, ColdFusion MX is running on Mac OS X!

  2. Open a browser and enter the following into the address bar:

    127.0.0.1:8500

    This is the Loopback address to our computer. :8500 is the port where the CFMX Default Web Server listens for requests.

  3. You will see an "Index Of" page with two items listed: Wow, that's really impressive!

    Actually, it is impressive, because it shows us that:

    • the Java Virtual Machine (provided with Mac OS X)
    • JRun Application Server
    • the Macromedia-supplied "Default" Web Server

    are all running on your machine. What you are seeing is an "Index of" files in the Web root of a Web server. The index is displayed because there are no default Web pages currently installed in the Web root.

  4. Click on the CFIDE link and you will see another "Index Of" page.

  5. Click on the administrator link. You will see the CFMX Administrator login screen. This is it folks. This page, and any page from this point on, is being parsed and generated by the ColdFusion MX Web Application Server.

    Log in with the password you entered when you installed ColdFusion (on Linux).

  6. The Login screen disappears, and is replaced with a ColdFusion Administrator screen, followed by a "Welcome to ColdFusion MX" popup window.

  7. In the popup window select the Example Applications >> link.

  8. When the next page is displayed, select the Check for Applications on this server link.

  9. Experiment with the examples provided. Many of the examples use the PointBase relational Database Server provided with CFMX.

    Author's Note: A few things should be mentioned about performance:

    One: consider all that's going on: both ends of a Web application, the client (your browser), and the server or Web Host (Application Server, Web Server, Web Application Server, Database Server) are all running on the same machine along with the Internet protocol (Loopback Connection). You wouldn't run a production Web site configured this way. The components are all competing for resources. The Database Server, for example, would run on different CPU and hard disk matrix.

    Two: your machine is probably way under capacity (RAM, CPUs, Speed, Disk Speed, and so forth) to run a Web Host (not to mention a browser, and all the other applications you are currently running).

    Three: When a ColdFusion template (program) is first requested, it is retrieved from disk, parsed by the ColdFusion MX Web Application Server, then compiled into a Java (Virtual Machine) program, then translated into a Physical Machine program, then executed. ColdFusion MX has a sophisticated caching system, which allows much of this "Overhead" to be avoided for subsequent requests for the same template.

    Four: Some of the ColdFusion MX Services, graphing, for example, start up the first time a template requests the service.

    Five: Every CFMX Web page that you request is being requested for the first time and includes all the associated overhead. This overhead is noticeable (and acceptable) in a Local Integrated Development Environment (IDE), but would virtually disappear in a Production Web site that runs for months (years?) with thousands of hits to the same templates.

    Considering all the above, performance seems pretty good! With a little experimentation, I have found that CFMX performs as well as or better than PHP or Perl in a similar environment--but with a whole lot more to offer! You can experiment for yourself. Other articles at the O'Reilly Mac DevCenter discuss activation of some of the Web Host components available to Mac OSX -- Apache Web Server, PHP, Perl, MySQL, and so on.

  10. OK, we have one more thing to do--develop our own CF application. Remember our little phone list program from part 2 of this series? Let's use that! (It conveniently uses one of the databases included with CFMX.) In the Finder, browse to:

    opt ==> coldfusionmx ==> wwwroot

    You'll see three folders: the CFIDE and cfdocs folders we just saw when we opened our browser to 127.0.0.1:8500. The third, WEB-INF is a CFMX-internal folder that is not directly accessible from the Web. Create a folder named: mycfmxapps to hold your CFMX programs. Folders placed in wwwroot are Web folders, so avoid any spaces or special characters in their names.

  11. Below is our phone List program from part 2, with the first statement added to simulate receiving a request from a form on a prior Web page. Copy this program into a text editor and save it to our newly created mycfmxapps folder as PhoneList.cfm.

    <cfset Form.Department = "Sales">
    
    <cfquery name="getPhone" datasource="cfsnippets">
      SELECT    LastName, FirstName, Phone
      FROM      Employees
      WHERE     Department='#Form.Department#'
      ORDER BY  LastName, FirstName
    </cfquery>
    
    
    <h1>Department Phone List</h1>
    
    
    <table border="1" cellspacing="0" cellpadding="3">
      <tr>
        <th>Name</th>
        <th>Phone</th>
      </tr>
    
    <cfoutput query="getPhone">
      <tr>
        <td>#LastName#, #FirstName#</td>
        <td>#Phone#</td>
      </tr>
    </cfoutput>
    
    </table>
  12. In a browser window, enter:

    127.0.0.1:8500/mycfmxapps/PhoneList.cfm

    You should see the Department Phone List with dynamic content that was retrieved from a database.

Ta-Dah! We just met the objective that we set many weeks ago; we have a complete CFMX IDE running on Mac OS X!

Be sure and try the other example programs (as if I could stop you), experiment with the CFMX Administrator, review the online (to your local Web server) documentation.

Best of all--write and test your own CFMX Web programs entirely on your own Mac computer!

This is really slick! The Best Web Application Development System running on the Best Personal Computer with the Best Personal Computer OS.

Well, you've finally got your powerful new system installed and lots of exciting new things to explore. Enjoy!

In the next article, we will review and refine our CFMX Mac OS X installation. We will:

  • Investigate some additional relational databases such as: MySQL, PostgreSQL, Full PointBase, OpenBase.
  • Discuss what it takes to interface other programs available on Mac OS X. These include: Apache Web server, Flash MX, and DreamWeaver MX.
  • Install and run the Macromedia's showcase Pet Market Blueprint application.
  • Introduce some of the advanced features of CFMX, such as Web Services, Flash Remoting, and JSP interfaces.
  • Look at some exciting CFMX projects being done by others and available to us on a Mac for the first time (because of Mac OS X).
  • Finally, we will summarize what it all means and where you go from here.

Dick Applebaum has been doing Web development since 1997, primarily with ColdFusion -- including his latest challenge to port ColdFusion MX to Mac OS X.


Return to the Web Development DevCenter.



  • Pointbase? And MySQL?
    2003-01-15 08:56:37  lolajl [View]

    Thanks! Followed the steps accordingly, there seems to be a problem in my ability to connect to the database, though. The problem line seems to be the JDBC URL. I doublechedked to make sure the path was correct. When I clicked on Connect, I got a java.sql.SQL.exception error: database does not exist. It seems to think that the database is somewhere else other than this directory. Checked db directory and cfsnippets does reside here as cfsnippts.dbn.
    • Pointbase? And MySQL?
      2003-01-15 12:06:50  dicklacara [View]

      Can you verify the cfsnippets database in the CFMX Administrator?

      If so, you should be able to copy the driver class and URL files from that definition to the corresponding fields in the SQL4X connection.

      Dick
      • Pointbase? And MySQL?
        2003-01-15 12:51:08  lolajl [View]

        Not sure what I'd done wrong before, but copying/pasting the paths worked like a charm. Thanks! I'm starting up a blog that will be devoted solely to Macs and CFMX, located at <http://www.lolajl.net/macfmx/>. It's up now but nothing much in there yet.
  • Converting Legacy Data (Access)
    2003-01-11 13:18:07  jodeo [View]

    Now that I have CF up and running on OSX, I have realized that it does not have any MS drivers except for MS SQL Server.

    I have a few 'old' db's in Access (97) that I must have. I have no db app on OSX at present (not even MySQL - yet).

    My questions are:

    1. Is there a way to convert the data tables in Access over to something compatible?
    2. Is there an Access driver out there for CFMX J2EE?
    3. Are there any other ideas that would make this a straightforward conversion?

    Feel free to email me at oreilly@cranford.ws.

    Thanks.


    • Converting Legacy Data (Access)
      2003-01-11 16:18:36  dicklacara [View]

      My questions are:

      1. Is there a way to convert the data tables in Access over to something compatible?

      2. Is there an Access driver out there for CFMX J2EE?

      3. Are there any other ideas that would make this a straightforward conversion?


      1. There are several ways to convert MS-Access tables to some other database:


        • Run Access and SQL-Server under VirtualPC -- there is a Wizard that will convert the Access db to an equivalent SQL-Server db

        • Export the Access tables to CSV or TSV text files. Write CFMX programs to read these files and insert the data into whatever db you desire.

        • Use a setup available from OpenLink Software http://www.openlinksw.com which allows you to run their program under VirtualPC to interface mdb files with their JDBC driver. The OpenLink driver can be used by CFMX. In effect, OpenLink appears to be a MS-Access Server available (with an IP address) on your network. OpenLink has a free-trial period (30 days). The cost is $500 to purchase the software.


      2. There is no MS-Access driver for anything but windows. In fact, the Jet Engine (the MS-Access database program), itself, is implemented within the driver. So, the driver is the database system and the database system is the driver.


      3. Of all the approaches, I prefer the OpenLink solution. It allows you to create a set of CF programs to do the conversion. You can reformat, validate, normalize, etc. in the process. The process is fast and repeatable -- I used a large MS-Access database that I had converted to SQL-Server several years ago. I had done major reformatting, validation and normalization in the process. I took that same set of programs and converted it to Sybase_ASE -- the whole thing ran on the Mac.


      The OpenLink setup is too involved for this space. I plan to cover this in a later article.

      Dick
  • Thanks Dick! (n/t)
    2003-01-11 18:50:13  jodeo [View]

  • Converting Legacy Data (Access)
    2003-01-11 16:17:37  dicklacara [View]

    Ignore, I goofed.
  • Converting Legacy Data (Access)
    2003-01-11 16:13:28  dicklacara [View]

    Ignore, I goofed.
  • BEFORE YOU INSTALL CFMX on Mac OSX...
    2003-01-11 13:01:57  jodeo [View]

    First, it appears I've done it! On Tomcat, no less. If you have the Tomcat instructions from developer.apple.com and the MM instructions for CFMX, you can get there from here. Being a rather new-to-unix person I took a LOT for granted. Below are some lessons learned.

    Things you need to know:

    1. gnutar: You must use this to untar the Tomcat .tar.gz file. (Initially, I renamed the file, dropping the .gz, and used the standard tar command. Bad.)

    2. If you're reinstalling after a failed first (or 2nd or 3rd... ) attempt of ColdFusion, DON'T reuse earlier files. Do a clean install. I tried taking shortcuts and only got errors sooner.

    3. DON'T BLOCK POP-UPS!!! I'm using Safari and at first use I went to Safari Menu > Block Pop-Up. When you first go to the CF admin page, YOU GET A POP-UP. Unless pop-ups are blocked.

    Now... I just need to find about about getting a serial number for Mac...


    THANKS EVERYONE!
    • BEFORE YOU INSTALL CFMX on Mac OSX...
      2003-01-11 15:38:00  dicklacara [View]

      A prior user posted that any valid serial numbers for JRun and CFMX for J2EE are accepted by the Mac Versions.

      I Checked with Macromedia and this does not violate their License. The Macromedia policy is to give the user flexibility on which platform to deploy.

      There are, however, two considerations:

      1. OS X is not (yet) a supported Production platform for CFMX for J2EE

      2. Macromedia has no way of measuring the platform on which you install -- therefore it can't determine the interest in the OS X platform, which would lead to them releasing a Production version.

      I posted this earlier, but it is worth repeating:

      ColdFusion MX on Mac OS X, Part 3
      Subject: How to get a CFMX Production Version on the Mac
      Date: 2003-01-08 09:45:55
      From: Dicklacara

      ------------------------------------------------------------------------
      According to Macromedia people, those of us who want a production version of CFMX on OS X should
      contact Macromedia via their wish form:

      http://www.macromedia.com/support/email/wishform/

      Please make sure to include the time frame you are looking to deploy OS X in production servers.

      Keep those cards and letters coming!

      Seriously, the main reason that there is a Developer version available is because of requests to the wish form!

      Dick
  • Error Messages
    2003-01-10 21:14:03  jodeo [View]

    As noted in earlier thread, here are some error messages I could use assistance with:

    1. Here's the display in terminal when I run my stop_tomcat.sh script:

    Using CATALINA_BASE: /Library/Tomcat
    Using CATALINA_HOME: /Library/Tomcat
    Using CATALINA_TMPDIR: /Library/Tomcat/temp
    Using JAVA_HOME: /System/Library/Frameworks/JavaVM.framework/Home
    Exception in thread "main" java.lang.NoClassDefFoundError: /System/Library/Frameworks/JavaVM/framework/Home/lib/dt/jar:/System/Library/Frameworks/JavaVM/framework/Home/jre/lib/i18n/jar:/Library/Tomcat/webapps/cfusion/WEB-INF/cfusion/lib/webchartsJava2D/jar

    (Tomcat does not shut down.)

    2. Here's the "root cause' portion of the errors I get when I click Administrator in the Tomcat admin:

    javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE
    at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:530)
    at org.apache.jsp.login_jsp._jspService(login_jsp.java:188)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:550)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
    at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
    at java.lang.Thread.run(Thread.java:491)


    Any ideas?


    THANKS!!!


    Jodeo
    • Cannot find message resources under key org.apache.struts.action.MESSAGE
      2003-08-21 01:36:06  anonymous2 [View]

      Hi ,
      I am getting the folowing error when trying to execute struts example.

      Exception Report:
      javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE
      at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:442)
      at org.apache.jsp.hello_jsp._jspService(hello_jsp.java:460)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:200)


      Root Cause:javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE
      at org.apache.struts.util.RequestUtils.message(RequestUtils.java:819)
      at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:295)


      I think you have faced the same problem can you please help me out.

      Thanks in advance,
      Rgds,
      Dummu.
      csdummu@yahoo.co.in
      • Cannot find message resources under key org.apache.struts.action.MESSAGE
        2003-12-30 01:19:04  anonymous2 [View]

        i had the same error message. Found "Parsing error processing resource path" in the tomcat console.
        Solution:
        Look for repetitions / typo (in the class name / init params?) in your struts-config.xml file. Correct the errors and restart. Voila!
      • Cannot find message resources under key org.apache.struts.action.MESSAGE
        2003-12-28 09:04:58  anonymous2 [View]

        Hi Struts folks!!
        My name is Deepak Kenchamba. I have solved the problem i had with this silly yet nagging error message.
        javax.servlet.ServletException: Cannot find message resources under key <bundle name>

        If you have tried every thing that's been documented in the other sites and still have a problem.
        Try this. Voila!! this might be the solution.

        Along with struts.jar file add

        commons-digester.jar
        commons-beanutils.jar

        files into the "/WEB-INF/lib" folder of you context root.

        Simple, our struts committer better put in friendlier error message so that its useful to the rest of the world.

        I used
        ------
        Tomcat 5.0 Web container
        struts 1.1
        Servlets 2.3 & jsp 1.2

        regards
        Deepak Kenchamba
      • Cannot find message resources under key org.apache.struts.action.MESSAGE
        2003-09-11 04:36:59  anonymous2 [View]

        Hi,
        After analysing the working of struts-validation web-application, one can find that there is one section for pointing-out the location of application.properties file.
        Just insert following line to your Struts-config.xml
        <message-resources parameter="resources.application"/>

        As you can guess, it says that the properties are defined inside /WEB-INF/resources/application.properties file.

        I hope it solves your problem.
        Thanks,
        -LalitC.
    • Cannot find message resources under key org.apache.struts.action.MESSAGE
      2003-08-21 01:35:19  anonymous2 [View]

      Hi ,
      I am getting the folowing error when trying to execute struts example.

      Exception Report:
      javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE
      at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:442)
      at org.apache.jsp.hello_jsp._jspService(hello_jsp.java:460)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:200)


      Root Cause:javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE
      at org.apache.struts.util.RequestUtils.message(RequestUtils.java:819)
      at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:295)


      I think you have faced the same problem can you please help me out.

      Thanks in advance,
      Rgds,
      Dummu.
    • Error Messages
      2003-01-11 00:45:37  dicklacara [View]

      A couple of thoughts:

      Are you ysing Jaguar?

      I installed Tomcat using the procedure at:

      http://www.macdevcenter.com/pub/a/mac/2002/06/18/tomcat.html

      You might want to reinstall Tomcat & then CFMX for J2EE.

      Also, have a look at JRun -- free, easy to install, connects to Apache (no port required), has Clustering and Load Balancing, and iss Certified J2EE-compliant.

      Dick

      P.S. I have both JRun and Tomcat installs of CFMX boot at startup

      Dick
      • Error Messages
        2003-01-11 10:03:49  jodeo [View]

        JRun -- FREE?
        I'm such a dolt. I had no idea. I'll try that and trash my earlier install of Tomcat (after I get JRun running).

        Thanks Dick. You're fabulous!

        PS: I too started with Apple's Tomcat install and didn't quite get it working. After looking at O'Reilly's article I finally found clues that helped me get it going.
        • Error Messages
          2003-01-12 09:29:09  dicklacara [View]

          I don't know that I'd trash the Tomcat install -- It is a good system.

          I have found the O'Reilly articles a little easier to execute than the Apple articles (I think there is more attention to those of us without Unix backgrounds).

          I just installed MySQL, according to Apple's instructions -- you need to read between the lines and/or deviate from the instructions to sucessfully complete the install.

          Dick
  • HELP! X.2.3, Tomcat, Apache and CFMX J2EE
    2003-01-10 07:03:01  jodeo [View]

    I could sure use some help. I have very little unix experience, but can get around. Here's where I am:

    1. I've installed Tomcat 4.1.18 and have it running (off port 8080). However, when I click the Administrator Link in the browser I get a huge page full of errors. Also, the Java/JSP samples seem to work, though I've noticed the 'counter's don't work (i.e., in the number guessing demo, after guessing in four trys [not bad, eh?], it said "You guessed in 1 try.")

    2. Installing CF: I think I fudged this. I succumbed to temptation and double-clicked MM's installer jar file instead of going strictly command line. Also, I deviated a tad by selecting the destination of [root]/Library/ColdFusionMX instead of the vague (to me, anyway) /opt/ directory.

    3. I created a "stoptomcat.sh" script to shutdown Tomcat. When I run it, I get an error message (I'll have to post later; I'm not at my Mac). The starttomcat.sh script works fine (these are the same as found in the O'Reilly article on installing Tomcat on OSX.)

    4. The MM instructions for CF say to create a setenv.sh, (#10 in their list of instructions) but I wasn't sure where to put it. I put it in the /bin/ directory with the other Tomcat scripts, not know if it's working.

    5a. #11b says to define an admin user role for Tomcat. How do I do this?

    5b. Because of the above, I am unable to set the crossContext as instructed.

    Bottom Line:
    Tomcat isn't batting 1000, and ColdFusion isn't even in the game.

    I welcome your feedback at oreilly@cranford.ws; I'll try to check back here as well.


    THANKS!!!
    • HELP! X.2.3, Tomcat, Apache and CFMX J2EE
      2004-02-01 00:49:19  thestudio_bob [View]

      I just installed this myself, and I understand your frustration. I'm not a unix pro, unix novice, unix anything. And I have been seeing the confusiong post all over, so I am going to post my complete instructions, in the hopes that this helps everyone.

      Basically here's the steps and things I learned on the way.

      1. I downloaded and installed the "coldfusion-61-other.jar" file Macromedia. I installed it using the Terminal app. First I moved araoudn until I was in the same directory as the file. Then I typed this command "java -jar coldfusion-61-other.jar -i console". But I noticed that it kept giving me a "not logged in as root user" error. So I logged out of Mac OS X and logged back in using "root" and my password.

      (I'm not sure if you have to activate the "logging in as root" feature or not, but I think you can activate it using NetInfo Manager in the utilities folder. It's under the menu "Seurity", "Enabled Root User". And again, I'm not real familiar with what I'm doing, so I could be wrong on this one)

      Anyway, after I logged in as root, I tried installing it again and I didn't see that error message anymore. I'm sure I could have just double-clicked on the installer at this point, but I was enjoying the console so much, I figured what the heck.

      2. The next thing I did was to decompress the Tomcat file I downloaded from Jakarta Tomcat website. I actaully downloaded version 4.1.29 (The most recent as of this writing). The name of the file I grabbed was "jakarta-tomcat-4.1.29.tar.gz". It was a binary file, not the source.

      This expanded into a big folder, which I renamed "Tomcat".

      At this point I found about 10 different documents saying you can make all kinds of directory's all over your hard drive, but the truth of the matter is you can put this file where ever you want. I made a folder on the top level of my hard drive and called it "WebStuff". This is where I put the "Tomcat" folder and I also moved the coldfusion folder (If you followed most directions, I'm assumming you named this folder "CFMXJ2ee") Whatever you named it, you can just drag it into your "WebStuff" folder.

      3. The 2 files in the coldfusion (CFMXJ2ee) directory called "cfusion.war" and "rds.war" get moved/copied into the "WebStuff/Tomcat/webapps" directory. Rename the "rds.war" file to "CFIDE.war" as it says in the CF instructions.

      4. Now to get tomcat working, I made the the "start_tomcat.sh" and "stop_tomcat.sh" files to easily start and stop tomcat. Here's the code I used for the start_tomcat.sh:

      #!/bin/sh
      export CATALINA_HOME=/WebStuff/Tomcat
      export JAVA_HOME=/Library/Java/Home
      $CATALINA_HOME/bin/startup.sh

      And here's the code for the stop_tomcat.sh:

      #!/bin/sh
      export CATALINA_HOME=/WebStuff/Tomcat
      export JAVA_HOME=/Library/Java/Home
      $CATALINA_HOME/bin/shutdown.sh

      Notice the "WebStuff" folder and "Tomcat" folder. If you have been following my directions, that's the names you us there. If you named your folders different or put Tomcat somwhere else, just put in your pathname there.

      The JAVA_HOME thing should be ok, but double check by going into your hard drive and check in the Library folder and see if a Java folder is in there. If it is, then check to see if it has a "Home" alias in it. (If not, do a search for JAVA and find the one with a HOME folder in it)

      Ok, move these files into the "WebStuff" folder

      The other thing you have to do at this point is make the two files you just created executable. That means more console fun. Open up the terminal app again. Here's were putting the everything into the "WebStuff" folder comes in handy. Type "cd /WebStuff". Bang, your their. Now type "chmod u+rwx,g+rx,o+r start_tomcat.sh stop_tomcat.sh". You can check the permissions by typeing "ls -l". it should look like this.

      -rwxr-xr-- 1 user staff 117 29 Jan 13:37 start_tomcat.sh
      -rwxr-xr-- 1 user staff 118 29 Jan 13:37 stop_tomcat.sh

      And, again I'm not 100% sure what or why I'm doing this, put it works and I'm not complaining.

      5. Start tomcat. In terminal just type "sh start_tomcat.sh". Then you should see about 4 or five lines and then wait a minute or two. Tomcat needs to start up. Now open up your browser and point to "http:localhost:8080". You should see the standard Jakarta Tomcat welcome page.

      If everything works, then look in the "WebStuff/Tomcat/webapps" directory or open the folder and see if the 2 .war files are there with 2 new folders with the same names. ("CFIDE" and "cfusion"). They should be. If not, then you need more help than I can give you. They should have automatically "deployed" when Tomcat started up.

      In terminal, go ahead and stop tomcat by typing "sh stop_tomcat.sh". Again, you should see about 4 or 5 lines here. If you see more, then there's a problem. Most likely your paths are wrong in the start and stop sh files.

      6. Now you need to create that "setenv.sh" file for CF. Here what I used:

      # Establish variables. May differ on your installation.
      # JAVA_HOME specifies the Java JDK root directory.
      # Macintosh OS X maintains a number of aliases for this directory.
      JAVA_HOME="/Library/Java/Home"
      # CF_HOME specifies the directory to which ColdFusion MX is deployed.
      CF_HOME="/Library/Tomcat/webapps/cfusion"
      CF_WEB_INF=$CF_HOME/WEB-INF

      # Establish JVM options
      #CF_SECURITY_JVM_OPTIONS="-Djava.security.manager -Djava.security.policy=$CF_WEB_INF/cfusion/lib/coldfusion.policy -Djava.security.auth.policy=$CF_WEB_INF/cfusion/lib/neo_jaas.policy"
      # Set JVM options for CORBA. Use if vbjorb.jar is not in your JRE's
      # lib/ext directory. If used, append $CF_CORBA_JVM_OPTIONS to CF_JVM_OPTIONS
      # CF_CORBA_JVM_OPTIONS=-Xbootclasspath/a:"$CF_WEB_INF/lib/vbjorb.jar"
      #CF_JVM_OPTIONS="$CF_SECURITY_JVM_OPTIONS"

      #JAVA_OPTS="$CF_JVM_OPTIONS -Xms128m -Xmx256m"

      I commented out everything on the bottom, which is the RDS security stuff. I kept getting errors here, and since this is just a development server, I really didn't need them.

      You need to put this file in "WebStuff/Tomcat/bin" and I wasn't told to do so, but I did that neat permission trick thing on this file too! (Open terminal, go to the webstuff/tomcat/bin directory and type "chmod u+rwx,g+rx,o+r setenv.sh")

      Ok, start up Tomcat again in terminal (you'll need to go up one level if your still in the "bin" directory) type "sh start_tomcat.sh") Again, wait a bit, because the server needs to start up.

      Believe it or not, I'm almost done.

      7. Here was the really, really, really fun part. I opened up my browser and was able to go to ColdFusion by typing "http:localhost:8080/cfusion". Coldfusion then starts up. Just walk through all the screen steps. It's pretty straight-forward.

      If you want to add your own .cfm files you need to add them to the "WebStuff/Tomcat/cfusion/" folder.

      Now, I knew tomcat had this manager and admin tool, because I can see links for them on the "http://localhost:8080/" page. Did anybody else try to click on these? I did, about 100 times. I finally was able to get into the manager, by editing the "tomcat-users.xml" file located in "WebStuff/Tomcat/conf/". Here's what I did to my file:

      <?xml version='1.0' encoding='utf-8'?>
      <tomcat-users>
      <role rolename="standard"/>
      <role rolename="manager"/>
      <role rolename="admin"/>
      <user username="YOUR-USERNAME" password="YOUR-PASSWORD" roles="admin,manager,standard"/>
      </tomcat-users>

      I then, quit tomcat and restarted it again. And low-and-behold I was able to log into the manager. Cool, I was on a role, so I then tried to login to the adminstrator tool.

      I never did get it to work, until I cam across a little blurb on some Forum, somewhere, saying something, about Safari and Camino not that robust when it comes to some javascript. So on a whim I opened up Netscape and tried logging onto the Adminstrator Manager. And wouldn't you know it, it worked.

      Life is good.

      Now if I could only figure out this whole mod_jk or add AJP in the administrator manager thing I would really be happy, but I'm saving that stress for another day.

      Anyway, I hope this saves someone the week I wasted on it. If you see any errors, please let me know.
    • HELP! X.2.3, Tomcat, Apache and CFMX J2EE
      2003-01-10 15:14:54  dicklacara [View]

      You can skip step #10 of the Tomcat install.

      Setp 11.B refers to the file tomcat-users.xml

      Mine looks like this:

      <?xml version='1.0'?>
      <tomcat-users>
      <role rolename="admin"/>
      <role rolename="manager"/>
      <role rolename="provider"/>
      <user username="tomcat" password="mypassword" roles="admin,manager,provider"/>
      </tomcat-users>



      The reason that the Tomcat instructions don't jibe is because MM doesn't know where/how you installed Tomcat -- so it gives more general instructions;

      Dick
  • Java 1.4.1
    2003-01-09 18:07:24  anonymous2 [View]

    Has anyone tried the pre-release 8 with Jrun? I can't get it to do anything with it....won't even start and fail, and say something interesting in the logs.
    • Java 1.4.1
      2003-01-09 18:32:49  dicklacara [View]

      Being under NDA, we can't say too much.

      I had some success with DP 6 during the beta.

      But, i discontinued testing 1.4.1 because I thought it was causing some other prioblems (sealing violations).

      This turned out to be a problem with some modules I had placed in /Library/Java/Extensions to get web services working on the port.

      I never had the time to go back and try DP8.

      I may do this now, though.

      Dick
    • Java 1.4.1
      2003-01-09 18:30:57  dicklacara [View]

      Being under NDA, we can't say too much.

      I had some success with DP 6 during the beta.

      But, i discontinued testing 1.4.1 because I thought it was causing some other prioblems (sealing violations).

      This turned out to be a problem with some modules I had placed in /Library/Java/Extensions to get web services working on the port.

      I never had the time to go back and try DP8.

      I may do this now, though.

      Dick
  • One last thing, how to have jrun start at boot
    2003-01-09 17:26:36  anonymous2 [View]

    Dick,

    what is the best way to have JRun boot at the start of the our macs? Assume some people have valid serials, or will purchase JRun.

  • Help me to install J2ee
    2003-01-09 17:03:36  anonymous2 [View]

    I am getting error message when I try to install it

    [####-###-###:/opt/CFMXJ2ee] cfmx# jar -xvf install_directory/cfusion.war
    java.io.FileNotFoundException: install_directory/cfusion.war (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:59)
    at sun.tools.jar.Main.run(Main.java:181)
    at sun.tools.jar.Main.main(Main.java:899)

    Please help me. I am not really good at this
    • Help me to install J2ee
      2003-01-09 17:07:51  gomdol [View]

      One more thing. Where can I find GUI to start and stop JRun server?

      Thank in advance.
      • Help me to install J2ee
        2003-03-30 15:59:16  anonymous2 [View]

        to start the web service you have to go into jrun4 folder and then into lib folder then click on the jrun.jar file If its not that one its one of the jar files in there
      • Help me to install J2ee
        2003-01-10 01:45:41  lolajl [View]

        You need to point your browser at 127.0.0.1:8000/ - at the port that was defined when you installed JRun.
  • Uninstalling your fabulous port.
    2003-01-09 13:57:25  anonymous2 [View]

    With the advent Macromedia's official releases for OSX - how can one completely uninstall the ported version?

    Thanks!
    • Uninstalling your fabulous port.
      2003-01-09 14:47:10  dicklacara [View]

      Good question -- though you misspelled fabulous -- the correct spelling is "Ugly".

      1) Copy any applications you have saved under the port wwwroot.

      2) Delete /opt/coldfusionmx

      3) Delete any files that you copied to /Library/Java/Extensions -- do not disturb any other files that you see there.

      With a tip of your hat, a smile and a wink, bid His "Ugliness" a hearty "Good Day"!
  • [ot]
    2003-01-09 11:40:41  anonymous2 [View]

    can someone recomend and ide that works well with JRun on the mac?

    • [ot]
      2003-01-09 15:13:24  dicklacara [View]

      I use BBedit -- just 'cause I am used to it.

      JEdit is aklso very good and free.

      DWMX and Studio probably are better integrated as they are Macromedia products.

      Dick
  • Apache, JRun and CFMX for j2ee
    2003-01-09 11:39:41  anonymous2 [View]

    Dick,

    You mentioned that you can merge apache and jrun so to speak....so that you do not have to call a port number.

    Can you give me a gentle push in the right direction on how to do this?

    thankyou!

    So it is my understand that the cfmx for j2ee is much faster than the standalone version we ported with you? Do either one take advantage of a dual processor mac?

    Only thing left now is the flash com server.....=)

    I can feel a clean break from the pee-cee by the end of the year...at least for my private goofing around.

    • Apache, JRun and CFMX for j2ee
      2003-01-09 15:06:02  dicklacara [View]

      To connect Apache:

      1) get a CFMX server deployed and running.

      2) From a terminal window:

      su root
      password, when prompted
      /Applications/JRun4/bin/./wsconfig


      Then wait a few moments for the GUI to start

      It will default to localhost.

      select the (running) cfmx server.

      the path to the Apache configuration file should be:

      /etc/httpd/

      Click OK!

      Then you access the cfmx server with:

      http://127.0.0.1/cfusion/........

      Yes CFMXJ2EE is faster than standalone & should take advantage of 2,4,8,whatever CPUs you can get on the Mac.

      There is a new Performance Report at:

      http://www.macromedia.com/desdev/mx/coldfusion/whitepapers/cfmx_jrun_perf_brief.pdf

      Flash Com Server is not written in Java -- so it may be a while!

      Dick




    • Apache, JRun and CFMX for j2ee
      2003-01-09 15:02:44  dicklacara [View]

      See other post!
  • JRun problems start and stop
    2003-01-09 11:35:54  anonymous2 [View]

    I am having trouble with jrun servers not stopping and after they eventually stop, not being able to start them again. I anyone else having this problem?

    I am doing nothing fancy, just stop and start throught the consol....you know typing ./jrun in the bin.

    • JRun problems start and stop
      2003-01-09 14:53:50  dicklacara [View]

      How many servers do you have?

      I did this extensively during beta, without problems.

      I would suggest that you use a different Terminal window for each server.

      You can also start the servers thru the JMC -- but the Terminal window gives a better picture of what is happening.

      If you can't resolve this, email me offline at dicklacara@mac.com. Be sure to include a copy of the Termilal messages.

      Dick
  • Cfmx for j2ee vs standalone enteprise cmfx
    2003-01-09 09:29:45  anonymous2 [View]

    are there performance or functional differences between the two products?

    Does the standalone run faster than the j2ee version?

    How are the products different than one is a standalone, and the other runs on a j2ee platform?

    • Cfmx for j2ee vs standalone enteprise cmfx
      2003-01-09 10:12:07  dicklacara [View]

      I answered some of this in earlier posts, but here goes:

      The J2EE version is optimized for performance and runs faster than the Standalone version.

      According to Macromedia, the performance difference is most significant on larger installations with multiple CPUs.

      Based on my experience with the CFMX Standalone server used in the port, and the CFMX for J2EE in the beta -- they, indead are separate products. There are differences in the way the are deployed (directory tree), and there are different options for clustering, and other advanced options. For example, with CFMX for J2EE under JRun it is trivial to setup duplicate CFMX servers and cluster them and attain automatic load-balancing.

      The CFMX for J2EE contains all the bits necessary to run Web Services

      The JRun for Mac OS X product allows you to connect [a CFMX server or a cluster] to the OS X Apache web server. If you connect to Apache, your CFMX URLs don't need a port number -- just the CFMX context root. For example:

         http://127.0.0.1/cfusion/mycfmxapps/PhoneList.cfm

      instead of:

         http://127.0.0.1:8101/cfusion/mycfmxapps/PhoneList.cfm

      So, your cfm, JSP, PHP, HTML can all share the same web server -- nice!

      I only use the port when I need to do something for the articles -- I much prefer the J2EE product, and I think that you will too.

      Strategicly, this is good for Apple and Macromedia -- Apple gets a J2EE-certified app server with Jrun.

      Macromedia gets a entry (for CFMX developers) on the OS X platform.

      I suspect, that if /when Macromedia releases a production product for the Mac it will be CFMX for J2EE.

      If this happens, the Xserve/JRun/CFMX for J2EE combination should compare pretty well to the offerings from other major vendors of enterprise solutions.

      Dick
  • Help with Macromedia's Instructions (#2)
    2003-01-09 07:17:52  anonymous2 [View]

    I'm trying to get the CFMX for OSX installed on my Mac. I've downloaded JRun, and now I'm trying to figure out #2. It seems that I don't have the java directory in the /usr directory. It refers to the JDK bin directory. Where can I get this? The direction says that the installer is available on the Macromedia website but this link doesn't give me the path or where to look further. Would like to get this up and running soon. Thanks!
    • Help with Macromedia's Instructions (#2)
      2003-01-09 09:52:57  dicklacara [View]

      You can leave off the Java_Home/ part of the command -- OS X sets the correct path as a default.

      You can also skip step #9 (Install under JRun) or step #10 (Install under Tomcat).

      You can manually deploy the war files under Tomcat (similar to JRun), or automatically deploy per the instructions, if Tomcat is set to auto-deploy war files.

      Dick
      • Help with Macromedia's Instructions (#2)
        2003-01-09 10:19:46  lolajl [View]

        Thanks! It also became clear to me that I'd need to be actually in the directory where I'd placed the file.
  • tomcat
    2003-01-08 15:32:25  anonymous2 [View]

    is my understanding that coldfusion would have installed ontop of tomcat all along using the cfmx for j2ee?

    it seems you can do this on the mac instead of using jrun....

    also what is the performance diff between cfmx standalone and the j2ee version?

    are they really seperate producst? or is this a scam by macromedia?
    • tomcat
      2003-01-08 17:29:18  dicklacara [View]

      I don't think that there was a version of CFMX For J2EE available before now that would have installed on Tomcat on the Mac. Prior installers would abort if not being installed on the Target platform.

      During the latest Beta of the CFMX for J2EE, there was a separate version that was used for the Mac.

      In any case, before now, there was no supported developer porduct for the Mac.

      According to Macromedia, the performance difference is most significant on larger installations with multiple CPUs.

      Based on my experience with the CFMX Standalone server used in the port, and the CFMX for J2EE in the beta -- they, indead are separate products. There are differences in the way the are deployed (directory tree), and there are different options for clustering, and other advanced options. For example, with CFMX for J2EE under JRun it is trivial to setup duplicate CFMX servers and cluster them and attain automatic load-balancing.

      The CFMX for J2EE contains all the bits necessary to run Web Services.

      Finally, if I belived that a company was trying to scam its customers, I would not use or recommend their products as a basis for building a web site.


      Dick
  • How to get a CFMX Production Version on the Mac
    2003-01-08 09:45:55  dicklacara [View]

    According to Macromedia people, those of us who want a production version of CFMX on OS X should
    contact Macromedia via their wish form:

    http://www.macromedia.com/support/email/wishform/

    please make sure to include the time frame you are looking to deploy OS X in production servers.

    Keep those cards and letters coming!

    Seriously, the main reason that there is a Developer version available is because of requests to the wish form!

    Dick
  • serial numbers
    2003-01-08 09:15:13  anonymous2 [View]

    I am not sure I am violating my linecence agreement for using my serials, since they are good for pc, linux, or unix.

    The other thing is that I am an aliance macromedia partner.....so I get these things for free.

    I would like macromedia to know that I am using the mac....how would you suggest I do this?

    • serial numbers
      2003-08-03 20:11:51  anonymous2 [View]

      I'm chapped that Macromedia does not allow people that are "switchers" like me to migrate
      our products from the PC versions to the Mac versions. I plan on raising hell with them about it this week. :-)

    • How to let Macromedia know that you are using the Mac
      2003-01-08 17:43:50  dicklacara [View]

      If you contact me offline at dicklacara@mac.com, I will tell you who to contact at Macromedia.

      I don't have permission to post the email address on a public forum.

      Dick
    • serial numbers
      2003-01-08 17:38:57  dicklacara [View]

      According to Macromedia, you are not violating your license agreement -- they allow you the flexibility to determine which platform to use.

      However, if you ask for support for a product running on an unsupported platform (e.g. OS X Production system) you will likely not be supported.

      I am told that the reason that Macromedia did not release a production OS X version is that Macromedia did not think there was significant potential sales to justify the expense of setting a Mac OS support infrastructure.

      Supporting a developer system requires significantly smaller resources.

      By releasing a developer product, Macromedia responded to requests and now has a presence -- it is up to us (the market) to help prove that there enough potential sales to justify a production produce.

      Dick

    • serial numbers
      2003-01-08 09:44:44  dicklacara [View]

      See my next post:

      How to get a CFMX production version on the Mac

      Dick
  • Pee-cee? What is that
    2003-01-08 08:15:33  anonymous2 [View]

    Today is the day that I can finally get rid of that damn pee-cee......my webserver is now 100% mac....100% quite, 100% no reason to ever think about DOS again!

    The angels sing in heaven.....bill gates go to hell!
    • Pee-cee? What is that
      2003-01-08 08:58:02  dicklacara [View]

      I don't want to cool your enthusiasm, but until Macromedia releases a production product, you won't get any support for a production CFMX web site on the Mac.

      If you are the person who successfully entered pc serial numbers for JRun and CFMX then you may be hurting the issue. Macromedia is watching very closely to see if there is enough interest to ramp up to sell a production product for the Mac.

      By using pc serial numbers, you show up as a pc user and not someone who wants to run on the Mac.

      I suggest you contact Macromedia and tell them you want to run legitimately on the Mac.

      Dick
  • Serial numbers
    2003-01-08 08:14:32  anonymous2 [View]

    Just and FYI both CFMX and JRUN demos downloaded from macromedia took my pc serial codes that I have.

    There is a god!
    • Serial numbers
      2003-01-08 09:00:51  dicklacara [View]

      If this is true, you can enter pc serial numbers for JRun and CFMX then you may be hurting the issue. Macromedia is watching very closely to see if there is enough interest to ramp up to sell a production product for the Mac.

      By using pc serial numbers, you show up as a pc user and not someone who wants to run on the Mac.

      I suggest you contact Macromedia and tell them you want to run legitimately on the Mac.

      Dick
  • About time too!
    2003-01-08 03:09:32  anonymous2 [View]

    At last, macromedia has come through with an OSX version of CFMX. Now I have my port up and running, is there any advantage in removing it and installing the 'proper' version?
    • About time too!
      2003-01-08 04:16:26  dicklacara [View]

      You Betchum!

      The official version has:

      1. implied support and update
      2. web services work
      3. a faster (optimized) CFMX
      4. ability to connect to the Apache web server
      5. greater ability to integrate with Java, JSP, servlets, etc. that comprise a J2EE enterprise deployment.
      6. ability to run multiple CFMX servers each isolated from the others
      7. ability to cluster multiple CFMX servers and load-balance them


      --- to mention a few advantages.

      You can remove the port by deleting the
      /opt/coldfusionmx
      folder (Be sure to save your own CFMX apps).

      Then delete the pbserver42RE.jar file you copied to
      /Library/Java/Extensions

      Dick
  • Macromedia releases CFMX for OS X
    2003-01-07 16:58:00  anonymous2 [View]

    Perhaps this is the reason for the delayed Part 4...

    http://www.macromedia.com/macromedia/proom/pr/2003/jrun_osx.html

    Thanks Dick for all your time and experience. Thanks to all those who pushed Macromedia along. Thanks to Macromedia for making it happen!

    I'm sure there's still some good info we could all get out of the next part of the series anyhow.

    : )
    • Macromedia releases CFMX for OS X
      2003-01-07 18:19:11  dicklacara [View]

      Yes!

      This is really a sweet combination of products -- you can download and install both in about 1/2 hour.

      You can deploy CFMX for J2EE on JRun and/or Tomcat -- both work well.

      There will be a part 4.

      I hope that someone will use the 30-day unlimited-access trial to run some stress tests and generate some performance numbers.

      The "Ugly port" is dead!

      Dick
  • I know you've been asked many times..
    2003-01-06 07:04:54  anonymous2 [View]

    but is there any steer as to when part 4 of this will be published?

    looking forward to it..

    ta

    PBH
    • I know you've been asked many times..
      2003-01-07 18:13:53  dicklacara [View]

      Ahh, Part 4. Yes there will be a part 4. but it now needs to be updated to reflect the recent announcements by Macromedia.

      I will wait a few days until the dust settles, then you shall have your Part 4.

      Dick
  • Everything was good until gnutar
    2002-12-29 23:26:25  anonymous2 [View]

    I installed CFMX under RedHat Linux 8.0. Everything seemed to go fine and the install finished. I downloaded OpenBase and followed the directions exactly. When I rant the gnutar of cfmxinst.bin it expands a bunch of files and then ends on:

    /Library/OpenBase/bin/gnutar: Error exit delayed from previous errors

    Did I do something wrong? Do I need to go back and do this whole thing over with Linux 7.2? I only used 8 because I had the iso's already. Help is appreciated. I'm so close!
    • Server running, but not recognizing new directory
      2002-12-30 12:14:13  swankboy [View]

      That was me in the previous post. Despite the Terminal error code the server is installed and running. Problem is the new directory I created under wwwroot isn't showing up even after restarting the server. All the other included .cfm documentation shows up fine. It's just not recognizing the new directory I've created. Any help on this?
      • Server running, but not recognizing new directory
        2002-12-31 06:36:43  dicklacara [View]

        Gnutar always gives those messages, so there was nothing you did wrong -- the install was OK.

        In a Terminal window, navigate to wwwroot:

        cd /opt/coldfusionmx/wwwroot

        Then list the contents of wwwroot:

        ls -l

        You should see a listing similar to the one below (the directory I created is mycfmxapps:
        drwxrwxrwx   10 cfmx  wheel   340 Dec 12 10:05 CFIDE
        drwxrw-rw- 21 cfmx wheel 714 Dec 2 04:34 WEB-INF
        drwxrwxrwx 25 cfmx wheel 850 Jul 22 11:13 cfdocs
        drwxrwxrwx 127 cfmx wheel 4318 Dec 6 06:19 mycfmxapps
        If you created your directory properly, you should see it listed with the proper permissions in the first column: d indicates a directory. Followed by three sets of permissions, rwx (read, write, execute) for the Owner, Group and All Users.

        If this looks OK, with your browser navigate to:

        http://127.0.0.1:8500/

        You should see a list similar to:
        Index of /
        ------------------------------------------------------------------------
        .DS_Store 6148 12/14/02 12:00 PM
        CFIDE/ dir 12/12/02 10:05 AM
        cfdocs/ dir 07/22/02 11:13 AM
        mycfmxapps/ dir 12/06/02 06:19 AM
        ------------------------------------------------------------------------
        And, you should be able to see your the contents of your directory by navigating the browser to:

        http://127.0.0.1:8500/mycfmxapps/

        HTH

        Dick
        • Server running, but not recognizing new directory
          2002-12-31 15:38:56  swankboy [View]

          I'm noticing two differences:

          One, when I go to list the directory in terminal this is what I get:

          drwxr-xr-x 10 swankboy bin 340 Dec 29 17:18 CFIDE
          drwx------ 19 swankboy bin 646 Dec 30 03:47 WEB-INF
          drwxr-xr-x 25 swankboy bin 850 Dec 29 19:24 cfdocs

          ...even though I have a mysfmxapps folder in the Finder window in the wwwroot directory. Also I notice that the permissions are considerably different than what you listed.

          When I go to the address in my browser I see:

          Index of /
          ------------------------------------------------------------------------

          CFIDE/ dir 12/29/02 05:18 PM
          cfdocs/ dir 12/29/02 07:24 PM


          No .DS_Store file or mycfmxapps/ folder displaying...

          Currently I'm installing cfmx under Linux 7.2 to redo everything (I got the iso's off the redhat site). I figured I'd do it this time _exactly_ as you described. Thanks for the great directions, I'll really be happy when this is functioning perfectly.

          I run Apache server on my OS X machine, is there a reason you didn't install under Apache? I'm just curious. I doubt it will work as per your instructions to do so, so I did it to install it's own standalone as you instructed. Thanks again.

          Daniel

          **************

          Okay, I just got done installing CFMX in Linux 7.2 and moving the cfmxinst.bin file over to OS X. When I run gnutar now it doesn't even expand at all. The files all scroll and it looks like it's doing something, but the files are nowhere to be found. I once manually expanded the .bin file using Aladdin Expander and moved it to my home directory, but when I created the coldfusionosx file with bbedit and saved it I couldn't see this file in terminal. i don't know what is going on. I ran Norton's and Disk Utility to make sure nothing is wrong with my disk, but everything appears fine. Help is much appreciated.
          • Server running, but not recognizing new directory
            2003-01-01 06:50:28  dicklacara [View]

            Ahh, you must be using Jaguar.

            This was reported in a prior post & a resolution was also posted.

            If you followed instructions, the cfmxinst.bin file does get expanded into the /opt directory/

            For some reason, Jaguar wants /opt to be invisible.

            Here's how to make it visible (from the previous post).

            Upgrading to Jaguar causes the /opt folder to be invisible to the Finder -- It is still intact, you just can't see it from the desktop.

            To make it visible again, do the following:

            Open a Terminal window.

            Assume the root ID by entering:

            su root

            Enter your (Mac OS X) Administrative password when asked

            Change to the root file level:

            cd /

            Edit the .hidden file with pico by entering (note the dot before the file name):

            pico .hidden

            with the arrows, navigate down and delete the line containing:

            opt

            save the updated file by entering:

            Control-o

            followed by:

            Return

            Exit pico by entering:

            Control-x

            Reassume the cfmx user ID by entering:

            su cfmx

            From the Apple menu select Force Quit... (or press Command+Option+Escape).

            Select the Finder and click Relaunch

            When the finder is relaunched, you should see the opt folder on Macintosh HD, just as it was before installing Jaguar.

            Dick
  • Data Source Verification
    2002-12-20 11:20:49  anonymous2 [View]

    I had very little trouble a setting up the cold fusion server. It works beautifuly... except I can not get the database to connect. I was originally(when I ran CF in virtual pc ) using MS access, but since there was no support in MX I have been trying to make a MySQL database connect with little success.

    Where I used a MySQL database named Guestbook I was given an error message:
    --------------------------------------
    Connection verification failed for data source: Guestbook
    []java.sql.SQLException: SQLException occurred in JDBCPool while attempting to connect, please check your username, password, URL, and other connectivity info.
    The root cause was that: java.sql.SQLException: SQLException occurred in JDBCPool while attempting to connect, please check your username, password, URL, and other connectivity info.

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

    I would appreciate any suggestions / solutions

    Jim
    • Data Source Verification
      2003-03-04 16:28:13  anonymous2 [View]

      Hey Jim,

      Try guestbook in lower case. For whatever reason, I haven't quite figured out why, but this fixed it for me. I know for a fact that in my db it has capitalized letters (I camelCased it), but I had to enter the datasource in all lower case.

      Hope this helps,
      Daniel
    • Data Source Verification
      2002-12-24 03:05:39  dicklacara [View]

      Jim

      As with the requests for other dbs, I need more specifics.

      What version of MySQL?

      What are the CFM admin settings for the DSN -- URL, Driver, etc.

      Is the MySQL db up and available?

      Did you recycle CFMX after starting the MySQL DB?

      What JDBC driver are you using?

      Can you access the MySQL DB by means other than CF?

      Dick
  • Openbase
    2002-12-19 19:42:54  emills [View]

    Great work,

    The ability to run coldfusion mx on my mac is awesome. I only have one problem. I'm having trouble using openbase with coldfusion mx. The DSN is setup, but when I try to run a query I get errors. Has anyone else run into this problem.
    • Openbase
      2002-12-24 02:58:04  dicklacara [View]

      One of the first databases I tested with the CFMX port was OpenBase.

      What version of OpenBase are you using?

      What errors do you get?

      What is the setup info for the DSN -- URL, Driver, etc.?

      DICK
  • Almost working ...
    2002-12-08 20:55:22  anonymous2 [View]

    Hello,
    The coldfusionosx shell starts normally, except "postgresql.jar" does not appear (compared to your snapshot) and when I try the url in a browser I got the following message :
    "500 There is no web application configured to service your request
    There is no web application configured to service your request "

    Where is the trick from ???

    Note : Great article!!!! Thanks.
    Nicolas
    • Almost working ...
      2002-12-09 02:45:47  dicklacara [View]

      The jar files for OpenBase and PostgreSQL were listed by the shell script because those databases were installed on my system -- they are not necessary for CFMX, so that is not the problem.

      About halfway down the shell script output, you scould see lines similar to:
      12/07 01:12:01 info JRun Web Server listening on *:8500
      12/07 01:12:01 info Deploying enterprise application "Macromedia ColdFusion MX" from: file:/opt/coldfusionmx/
      12/07 01:12:02 info Deploying web application "ColdFusion Web Application" from: file:/opt/coldfusionmx/
      This indicates that the JRun server is listening on port 8500 of the current host, and that CFMX has been made available for use.

      Once the shell script has finished executing, you will get an output line something like:

      Server default ready (startup time: 11 seconds)

      You then need to access CFMX with the URL:

      http://127.0.0.1:8500/

      I have seen the 500 error message occur when you try to access the above URL and the JRun server is listening, but CFMX hasn't finished deploying (the shell script has not finished startup).

      If you wait until you get the "Server default ready" message, then retry the URL, you should be OK.

      If none of this works, contact me offline or post the output of your startup shell script.

      Dick
  • Yes Virginia, there really is a Part 4 ;)
    2002-12-08 01:14:04  anonymous2 [View]

    In time for Christmas?
    • Yes Virginia, there really is a Part 4 ;)
      2002-12-08 16:40:45  dicklacara [View]

      I certainly hope so!

      The article has been submitted, and is being edited as we speak!

      Dick
  • CFMX Installer aborts on RH Linux 8.0
    2002-12-01 10:17:15  anonymous2 [View]

    I can't get the CFMX installer to run on Linux 8.0. When I run the installer the terminal window looks like this:

    Extracting the JRE from the installer archive...
    Unpacking the JRE...
    Extracting the installation resources from the installer archive...
    Configuring the installer for this system's environment...

    Launching installer...

    /tmp/install.dir.1243/Linux/resource/jre/bin/i386/native_threads/java: error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory

    Does the CFMX installer work with RH8.0, or did I not install something that I should have?
    • CFMX Installer aborts on RH Linux 8.0
      2002-12-01 14:58:25  dicklacara [View]

      According to the Macromedia web site:

      http://www.macromedia.com/software/coldfusion/productinfo/system_reqs/

      The system requirements are:

      Red Hat Linux 6.2 - 7.2
      SuSE Linux 7.2, 7.3
      TurboLinux 8 Server

      Are you using one of these?

      Dick
      • CFMX Installer aborts on RH Linux 8.0
        2002-12-05 12:39:25  anonymous2 [View]

        Dick,

        I downloaded RHL 7.2 and everything worked fine, except for a problem with permissions. CFMX will only run if I start it from the Administrator account that I was logged in as when I gnutar-ed it. Not a big deal. Thanks for a great set of articles, very well written and well documented. I'm looking forward to the database article.

        -Robin
        • CFMX Installer aborts on RH Linux 8.0
          2002-12-05 14:18:59  dicklacara [View]

          I can understand why that would be true, and actually would ecpect it.

          CFMX is creating a lot of files (logs, caches, Java Class files, Administrator settings, etc).

          I would expect that any other user would not have write and/or execute permissions to many of these files

          That's why the install and port procedures instructed you to setup a separate user to run CFMX.

          Dick
  • CFMX installed as root
    2002-11-27 06:48:03  anonymous2 [View]

    I made a mistake in my instalation, and it seems my copy of CFMX is running as root. This is bad.....is there a way I can simply change this?
    • CFMX installed as root
      2002-11-27 07:15:34  dicklacara [View]

      I don't understand how you could do that , the installer aborts with an error message if you try to install as the root user.

      Contact me offline at dicklacara@mac.com and we will see if we can figure out how to fix this.

      Dick
  • 127.0.0.1:8000
    2002-11-27 06:36:37  anonymous2 [View]

    CFMX is the version I installed. Does anyone else see this service on thier machine? I am wondering were it came from....

    Tom
    • 127.0.0.1:8000
      2002-11-27 07:17:54  dicklacara [View]

      Are you also attempting to install JRun?

      If so, contact me offline, at dicklacara@mac.com.

      I will try t o figure out what caused this.

      Dick
  • http://127.0.0.1:8000/
    2002-11-26 23:14:28  anonymous2 [View]

    What the heck is this? Does anyone else see this service On their machine after installing CFMX,,,,was it there before?

    I just would like to know what is running on my machine.....is it part of apple or cfmx or some other thing I installed?
    • http://127.0.0.1:8000/
      2002-11-26 23:34:25  dicklacara [View]

      What version of CFMX are you installing?

      Dick
  • Enterprise CFMX works on OS X
    2002-11-26 23:05:02  anonymous2 [View]

    I installed my Enterprise version from cd and it took my serial on the mac......nice....can't eblieve it really works....and it is pretty fast.....

    I now hellbent to get JRun to work.....does anyone know anyone who has gotten it to work?

    • Enterprise CFMX works on OS X
      2002-11-26 23:25:49  dicklacara [View]

      You installed on Linux, and pported the files, Right?

      I would expect it to accept the serial number as that is contained , encrypted, in the install files,

      BTW, The Trial verersion is a full enterprise version, that reverts to a 2 IP enterprose version (called the developer version) after 30 days if you don't supply a serial number.

      So, the CD version and the Trial/Developer version are both the same.

      JRun 4 is another issue -- your best chance is to do a Linux install and attemtto port it.

      I hope you realize that then Mac CFMX port won't run on JRun.

      JRun uses a different version of CFMX called CFMXJ2ee that is designed for JRun and several other J2ee application servers.

      If you are successful porting JRun from Linux to Mac OS X, then you could install CFMXj2ee for JRun on Linux -- likely the ear deployment option.

      Then transfer the ear file to Mac OS X.

      Your best chance of success may be to manually unzip the ear file, unzip the resulting war files and the manually deploy the resulting applications.

      A lot of work -- and it may not work.

      There are a lot of advanced features in JRun -- clustering, failover, etc, that will likely not work in the ported product.

      AFAIK, you can't connect to Apache, because the connector is written in Intel-specific C.

      If this is what you are after, you might be better served (pun intended) by attempting to deploy your CFMXJ2ee port on Tomcat. -- i
      think you need the war files for that.

      That's as much as I know about getting either of these ported to Mac OS X.

      Let us know (maybe write an article)

      Dick
  • JRUN [OT]
    2002-11-26 17:46:45  anonymous2 [View]

    When I try to install the linux installer on os x of JRUN,

    I get the following erorr......anyone have any creative ideas?

    Please enter the JRun 4 product serial number. A serial number is not required
    to install the JRun 4 Developer Version. Enter 0 to default to Developer
    Version.


    Enter Serial Number: 0
    Calling GetSerialNumber...
    JavaExe:
    Java version: 1.3.1
    InstUtilJarFile: /tmp/6106.tmp/instutil.jar
    RETURN_VARIABLE:0
    Exception in ip.substitute: java.io.IOException: : not found
    • JRUN [OT]
      2002-11-26 23:06:48  dicklacara [View]

      As I responded to a previous post, I don't think you can install the Linux JRun 4 trial system on Mac OS X,

      The installer program is pretty tricky, and covers its tracks.

      Your best bet is to inswtallit on Linux and attempt to port the files across to OS X.

      -- it may not work

      Depending on what you are after, you may be better off installing Tomcat and running it along side CFMX.

      There is an article on how to do this on the MacDevCenter.

      Let us know if you have any success!

      Dick

  • Webservices
    2002-11-25 23:33:29  anonymous2 [View]

    Webservices don't work you said? Do you have any Idea why this is? Do you think it can be overcome?

    This is important to me since i do a lot with flash and remotting....
    • Webservices
      2002-11-26 08:45:31  dicklacara [View]

      I and others have been able to get "Consuming" web services to work. The reason that it doesn't work out of the box is that some Axis modules are not included with OS X (and are part of RH Linux).

      The missing modules are readily available and can be downoaded and added to your existing CFMX OS X installation. I plan to cover how to do this in a later article.

      To my knowledge, noone has gotten "Publishing" web services too work on the OS X port of CFMX.

      The dependency of web services on external modules has been a source of problems for CFMX. I understand that Macromedia is investigating ways to remove these external dependencies. This would, likely be fixed in an updater to CFMX.

      The first (and only) updater for CFMX included a version that would install on OS X ( so you didn't need to start from scratch).

      It maybe just wishful thinking, but I hope to be able to use all aspects of CFMX web services on OS X, in the near future.

      That said, One of the first users of the port was Christian Cantrell (Co author of CFMX FlashRemoting).

      Around May, Christian gave a presentation on Flash Remoting to the FlashForward UG.
      This presentation was given entirely in CFMX on Mac OS X, on Christian's TiBook.

      I may be wrong, but it would appear that you can do Flash Remoting without the need to "Publish" web services.

      Dick

  • Data on number of CFMX users
    2002-11-25 23:23:48  anonymous2 [View]

    is there any hard data on weather the app server coldfusion is growing in support or shrinking?

    I did a search on dice.com for coldfusion jobs, and there seems to be like 1/10 thenumber of java, and 1/30 that of asp.

    Please don't flame me, just trying to understand CFMX a little better.
    • Data on number of CFMX users
      2002-11-26 08:20:16  dicklacara [View]

      I think the future is very bright for CFMX.

      I was going to post your question to CF-Talk List -- one of the best forums I have ever used.

      Instead, why don't you ( and anyone else interested in CF) join the list and post your
      questions directly -- this list has all levels of expertise, from rank beginners to experts in CF, Java, C, etc.

      The participants are very helpful are very tolerant of newbies and OT or SOT questions.

      The hosts are Michael and Judith Dinowitz -- and they are dedicated to the promotion and use of CF.

      the URL is:

      http://www.houseoffusion.com/cf_lists/

      Select CF-Talk from the menu.

      Enjoy!

      Dick
  • CFMX acceptance
    2002-11-25 23:19:12  anonymous2 [View]

    Does anyone have any idea if the number of cf users is growing or shrinking?

    Is this platform increasing in popularity or declinging in the face of .NET and Java?
    • CFMX acceptance
      2002-11-26 08:20:41  dicklacara [View]

      I think the future is very bright for CFMX.

      I was going to post your question to CF-Talk List -- one of the best forums I have ever used.

      Instead, why don't you ( and anyone else interested in CF) join the list and post your
      questions directly -- this list has all levels of expertise, from rank beginners to experts in CF, Java, C, etc.

      The participants are very helpful are very tolerant of newbies and OT or SOT questions.

      The hosts are Michael and Judith Dinowitz -- and they are dedicated to the promotion and use of CF.

      the URL is:

      http://www.houseoffusion.com/cf_lists/

      Select CF-Talk from the menu.

      Enjoy!

      Dick
  • Mac as a webserver [ot]
    2002-11-25 17:52:38  anonymous2 [View]

    I know this is off topic....but a question to you all.

    The mac has oracle, sybase, and others, apache, php, java, j2ee, perl, ect, ect.....

    is there a reason why x-nix people would not use a mac as a server? Is it fast enough, secure enough?

    Is it too expensive? Do you think that the mac will start making its way into the server market at all?

    Tom
    • Mac as a ws [ot]
      2002-11-25 19:07:17  dicklacara [View]

      Some random comments:

      When Apple first announced Xserve, there were some interesting posts on CF-Talk, one of the lists I really like -- it's participants are some of the major players in CF development and hosting.

      The nay-sayers said that the hardware lacked SCSI disks, and that Apple had no history as a general-purpose server vendor, but other than that they were impressed with the specs -- I got the feeling that they were impressed, but not convinced -- a wait and see attitude,

      The yea-sayers were really impressed with the specs, the ease-of-use, the (implied) capabilities and the very low cost of ownership. (OS X Server software doesn't charge per CPU on the server or number of clients attached -- so the server software cost is negligible).

      Something that most people don't realize is that OS X includes a complete Java runtime and development environment, as a standard feature -- AFAIK, nobody but Sun does that.

      The Sybase and Oracle announcements, while very low-key, got some attention in the server marketplace -- If these "heavyweights" think that OS X is a viable platform, shouldn't we too? Most Noticible was the IBM survey to see if there was enough interest to release DB/2 on Mac OS X.

      The recent announcement that Apple will package MySQL with OS X Server software is also significant -- Apple (and others) can now package complete dynamic web applications for the OS X platform, in several languages.

      AFAIK, there is currently no officially-blessed J2ee-compliant application server for OS X -- so this is a weakness.

      I read somewhere, that since the XServe announcement that Apple is the fastest growing (percentage increase) vendor of servers -- of course they are coming from a very small base, but still---

      I spoke on the phone, for about an hour, with Darryl Salas of Sybase. He said that they had made a major investment and effort to make Sybase_ASE on OS X, easy to setup and administer. He said that they had met most of there objectives and felt that the Sybase OS X combination was better in these capabilities than any other major database. This is significant -- it could drastically reduce one of the major costs of owning a database

      Sybase includes a feature that uses Rendezvous to recognize and automatically connect (with proper authorization) to any Sybase database on the network (wired or wireless).

      I can envision going into a client's board room for a presentation, with my TiBook. I would automatically connect to the clients DB, do a little Ad Hoc programming in CFMX (The Phone list) with the client's live data -- and no wires! It would be so cool, and so easy, that I'd have to work to get anyone to believe it.

      For me, the major missing piece is a supported CFMX product on Mac OS X. Macromedia people are quite aware of what Apple is doing and the acceptance of its OS X products -- I hope they can (and will) justify releasing CFMX for Mac OS X.

      So, is there a potential for Macs as servers -- in my opinion, there certainly is. What the Mac has done for the 'Nix desktop (ease-of-use) it can do for the server -- and it is sorely needed!

      If Apple can match the technological, reliability, support capabilities of other vendors, and offer ease-of-use and cost-of-ownership advantages -- their potential in the server market is unlimited.

      I think that are very close to achieving the above -- next they need to get the word out and sell their superior solution.
    • Mac as a webserver [ot] (double post)
      2002-11-25 18:52:02  dicklacara [View]

  • Linux installation crashes
    2002-11-25 14:50:33  lanegood [View]

    I'm trying to do this running OSX 10.2.2

    When trying to install 7.3, I get to the part to the part where I am supposed to install disk two, and I get a message that the CDRom is in use by another app. The only other app i'm running is vpc.

    When i try the same thing trying to install rhl 8.0, the system simply crashes. Redhat directs me to bug report 75377 which tells me to to create a floppy:

    "An update disk for Red Hat Linux 8.0 is available at
    http://people.redhat.com/~katzj/8.0-cdread.img that should correct this problem.
    If you download this image and place it on a floppy disk (using dd or rawrite
    as with a boot disk), and then boot with 'linux updates' from the syslinux
    prompt, you will be prompted to provide this disk."

    I have no floppy on this mac, and need help in interpreting this message.
    • Linux installation crashes
      2002-11-25 19:30:32  dicklacara [View]

      I don't know how to answer this one.

      Others have installed on Linux 7.3 and others have installed on Jaguar.

      Many, including myself, have had to fiddle with the second CD to get VPC/Linux to recognize it.

      I don't know if this is specific to Linux 7.3 and 10.2.2 or just a CD Drive issue.

      I would stick with RH 7.3.


      First, see the earlier post on this forum "Redhat install can't find CDROM"

      If that is not your problem, then try the following:

      When it ejects the first CD, you can try various things to get it to accept the second.

      1) switch to the finder, insert the second CD, wait for it to spin up.
      switch back to VPC, then drag the mounted CD image to the VPC CD image (or)
      capture the cd from the menu

      2) if this doesn't work, try again.

      3) Eject the 2nd CD with VPC (if you can) or from the Finder.
      switch back to VPC
      Insert the second CD and wait for it to spin up
      VPC should automatically capture the CD

      4) Try various combinations of the above to see if you can get the CD recognized
      by VPC


      I have done about 30 installs of Linux 7.2 on VPC. I invariably have problems with the
      second CD. By fiddling, reinserting, I have always been able to get the CD mounted.

      Let me know how it goes -- success or failure -- we will get you installed, some how.

      Dick

  • Macromedia Wish List - Do your part!
    2002-11-24 06:35:26  dicklacara [View]

    Many recent posts have asked if this or that will run (or can be ported) to Mac OS X.

    We appreciate the questions , and have tried to answer them the best we can.

    But, it always comes back to this: Mac OS X is not a currently supported platform for Macromedia Server products.

    I am told that the reason is that Apple is a late entry into the general-purpose server marketplace, and there is not a large enough target for Macromedia to build a business case.

    They are aware of the Mac developers, and the fact that server products for developers help sales, because the applications require deployment on some platform (if not Mac OS X).

    They are also aware that such companies as Oracle and Sybase have released products for Mac OS X.

    They are aware that IBM is considering the Mac as a platform for their DB/2 product.

    I think that they are also aware that the Mac OS X server market, while small, is growing faster than other vendors.

    I suspect that a company with the business savy of Macromedia is constantly watching the marketplace and looking for business opportunities.

    We can help them to help us!


    Macromedia has a formal method for fielding requests for enhancements and future products

    http://www.macromedia.com/support/email/wishform/

    If you would like to see a Macromedia product enhanced or made available on Mac OS X, submit a request!

    Every time I publish this URL, there is a surge of requests from Mac users -- and the MM people really notice.

    Dick
  • OpenBase
    2002-11-23 21:04:36  anonymous2 [View]

    can anyone coment on openBase as a database choise to use with cfmx? how does openBase stack up to the other rdbm?
    • OpenBase
      2002-11-24 05:36:32  dicklacara [View]

      OpenBase works nicely with CFMX -- at least in the developer environment.

      OpenBase has a very nice GUI for managing the database.

      The OpenBase develper community:

      developer@openbase.com
      http://www.openbase.com

      is quite a good forum, and it is monitored by very talented and responsive OB personnel.

      When I first interfaced CFMX with OB, I encountered a problem in the way that the OB JDBC driver returned column names from a query.

      I posted the problem to the OB list, got immediate response from OB personnel, and within days had an updated version of OB that resolved the problem.

      Now, That's responsive.

      I don't have the answer to "how does openbase stack up to the other rdbm".

      But, I suggest you join the OB forum and post the question -- you'll get some good information!

      Dick
  • JRUN 4 on OS X
    2002-11-23 21:03:32  anonymous2 [View]

    Is it possible? has anyone done it? I am thinking of trying.....

    Also it will be interesting if FLASHCOM server goes unix.

    Oracle, and JRUN on the same box, now that would be cool.....
    • JRUN 4 on OS X
      2002-11-24 06:15:42  dicklacara [View]

      Part of this is a repost from an earlier response.

      When JRun 4 was first released, I downloaded and installed it (it did not abort on OS X), It seemed to work OK. Some months later, I downloaded a later version, but it wuld not unpack/install on OS X.

      You could try the Linux version, using a procedure similar to the CFMX port.

      Then, you would also need to port Linux CFMXJ2ee for JRun to run on Mac OS X.

      AFAIK, there is a similar 30-day trial and then it/they revert to to a 2-IP developer version.

      It would be a pretty cool system, if it works!

      However, I suspect that some of the advanced JRun features are platform dependent, so you may need to manually deploy applications, and you may not be able to use things like clustering, failover, etc.

      I have heard that FlashCom Server will likely be available on 'Nix platforms. But this does not mean it can be ported to Mac OS X. I am told that it is *not* written in Java, so binaries for other platforms will not run on Mac OS X -- pity!

      Oracle and JRun on the same OS X box would be really cool!

      These are all good questions. and it would be great to have a J2ee-compliant app server with the power of JRun 4 running on Mac OS X.

      If you see a need for this, the best way to help make it happen is to submit a request to the Macromedia Wish List:

      http://www.macromedia.com/support/email/wishform/

      Every time I publish this URL, there is a surge of requests from Mac users -- and the MM people really notice.
  • Enteprise CFMX on OS X
    2002-11-23 20:59:31  anonymous2 [View]

    If I have the install cd for the enteprise edition,,,,could I install it following your instructions with a bit off modification?

    How about the full install of JRun could that be done in a similar way.

    Can they be used with apache with a few modifications?

    • Enteprise CFMX on OS X
      2002-11-24 06:09:22  dicklacara [View]

      If you have the Linux install CD, you should be able to find the file that is the equivalent of the one we download in the instructions.

      You will still need to install under Linux, because the Installer/unpacker recognizes OS X as an unsupported platform and aborts.

      There should be no advantage to the CD over the Download -- both ar enterprise editions, and both will revert to Enterprise Developer versions (2 IP addresses) after 30 days, or until you supply a serial number.

      When JRun 4 was first released, I downloaded and installed it (it did not abort on OS X), It seemed to work OK. Some months later, I downloaded a later version, but it wuld not unpack/install on OS X.

      You could try the Linux version, using a procedure similar to the CFMX port.

      Then, you would also need to port Linux CFMXJ2ee for JRun to run on Mac OS X.

      AFAIK, there is a similar 30-day trial and then it/they revert to to a 2-IP developer version.

      AFAIK, JRun has a configurator that allows you to connect to several web servers, including Apache.
      So, this could work if JRun doesn't check for unsupported platforms at runtime.

      It would be a pretty cool system, if it works!

      However, I suspect that some of the advanced JRun features are platform dependent, so you may need to manually deploy applications, and you may not be able to use things like clustering, failover, etc.

      These are all good questions. and it would be great to have a J2ee-compliant app server with the power of JRun 4 running on Mac OS X.

      If you see a need for this, the best way to help make it happen is to submit a request to the Macromedia Wish List:

      http://www.macromedia.com/support/email/wishform/

      Every time I publish this URL, there is a surge of requests from Mac users -- and the MM people really notice.

      Dick
  • CFMX on OS X BUGS?
    2002-11-23 20:59:21  anonymous2 [View]

    Are there any known issues for CFMX on OS X?

    Is there any reason I could not use this to host a small site?
    • CFMX on OS X BUGS?
      2002-11-24 05:43:47  dicklacara [View]

      There are some bugs in the administrator, but no show stoppers,

      I have not, yet, been able to get Publishing of Web Services to work.

      As to hosting a small site, No!

      1) it is a violation of the license agreement you agreed to when you downloaded and installed CFMX.

      2) After 30 days, the unlicensed CFMX product reverts to a "Developer Version". This only supports 2 IP addresses to acccess the CF server -- 127.0.0.1 (localhost) and the first external IP address. The only way to bypass this is to retart CF.

      I guess you could buy a License for the Linux version of CF, but it would be unsupported on Mac OS X.

      That said, I hope that Macromedia will re-evaluate the business case and publish a CFMX product for Mac OS X.

      Recent events, such as the release of Sybase_ASE and Oracle9i for the OS X platform are certainly encouraging, and I am sure that Macromedia is aware of this growing support for OS X.

      One way to help is to add your comments to the CFMX wishlist at:

      http://www.macromedia.com/support/email/wishform/

      This really helps -- and Macromedia does read the requests.
      Dick
  • Works perfectly
    2002-11-19 06:35:41  anonymous2 [View]

    It took a while, but I have a successful install on a G4 1 GHz. Thanks Dick.
  • mouse doesn't work
    2002-11-15 08:05:18  lanegood [View]

    I have installed on MAC G4 dual 500 using connictix Virtual PC. I chose 3
    button mouse
    USB during installation. My mouse is a Wacom EC-100-00 USB.

    The mouse won't move after RH8 boots up unless I hold down the apple key, and
    then
    the mouse will move, but it will not allow me to select any icon by clicking.
    • mouse doesn't work
      2002-11-15 19:06:58  dicklacara [View]

      My God! what an ordeal you have had.

      AFAIK, you can quite easily update the Linux install by rebooting from the CD & taking the appropriate actions.

      I took the default Linux mouse assignment.

      I have the Apple mouse and am able to use CTL-Click.

      I also have had no problems on a Mouseless TiBook laptop.

      Maybe, you were just not meant to use CFMX on Mac OS X, sigh!

      Dick
  • Redhat install can't find CDROM
    2002-11-14 15:11:06  lanegood [View]

    If a CD drive is connected to a third or fourth IDE (ATAPI) controller, it can not be used to install Linux.

    If you have two hard drives on one and two, turn off the machine and disconnect the second hard drive in order to do the installation. The cdrom will automatically be assigned to two when you turn the machine back on.

    Do the install.

    Turn off the machine and reconnect the hard drive.
    • Redhat install can't find CDROM
      2002-11-14 16:38:00  dicklacara [View]

      Did this fix the problem you were having?

      Are you now able to do the Linux install?

      Dick
      • Redhat install can't find CDROM
        2002-11-15 08:04:00  lanegood [View]

        Install was completed.
  • db suggestions
    2002-11-13 18:33:14  anonymous2 [View]

    since MS Access is not a guud production choice (the current project i am working on will use it, but it is non-profit and not demanding...i see it as being ok...) what would be a suggestion for use with coldfusion.

    i guess i could use filemaker, but is that guud quality...
    • db suggestions
      2002-11-13 22:07:22  dicklacara [View]

      You actually have a broad choice of RDBMSs, but it does depend what OS Platforms are available where you deploy your production CFMX Site.

      Filemaker is not fully SQL-Compliant, and like MS-Access was not designed to be a multi-user online production database.

      MySQL, presently does not run well on windows systems.

      You will, likely, want to run the same (or similar) RDBMS on your Mac OS X Development system.

      For Windows platforms (for the RDBMS server) MS-SQL-Server is most prevalent, PostgreSQL, Sybase and Oracle are also popular..

      For Linux platforms (for the RDBMS server) you have MySQL, PostgreSQL, Sybase and Oracle.

      In between the Open Source (free) MySQL and PostgreSQL and the high-end (Sybase, Oracle) there are quite a few proprietary packages of at many different prices. These include: PointBase Embedded, PointBase Server, OpenBase, FrontBase, etc,

      Of all all of the above, only MS-Access and MS-SQL-Server do not have versions which will run on your Mac OS X Developer system (interfaced with CFMX).

      Part 4 of the series will discuss MySQL, which is a good place to start.

      The poll at the end of Part 4 will include all of the above except MS-SQL-Server. So you can choose which RDBMSs are covered in later articles.

      HTH

      Dick
  • Windows to Mac port
    2002-11-13 14:35:30  anonymous2 [View]

    If I were to install CF on winxp in VPC would it still be possible to port the code somehow over to Mac OS X.

    And I really need MS Access support (w/o cost) so that would be a plus if anyone has been successful at that.

    Thank you.
    • Windows to Mac port
      2002-11-13 17:51:32  dicklacara [View]

      My first encounter with CFMX was as a member of the prerelease beta team. I signed up because I thought that Mac OS X was likely a part of the beta. It was not.

      When I expressed my disappointment, some Macromedia beta members (particularly Jesse Noller) expressed the opinion that a CF 'Nix product could probably be made to run without too much effort.

      I asked about porting a Windows version (I did not have Linux). The answer was that because of file system differences, os facilities (such as the registry), script files, organization, etc. it would take a lot more work and was a lot less likely to be successful.

      The Linux port was the recommended approach.

      My impression is that you could spend a lot more $ and hours trying to port a win version that may not work -- Linux is virtually free.

      As to the need to run MS-Access on any non-windows platform:

      This is a common request.

      Here's the short answer: No, MS-Access runs *solely* on the windows platform.

      No one has developed a driver to interface MS-Access because all the logic of MS-Access is in the ODBC driver, itself -- they would be converting MS-Access to the other platform. I don't know if MS will not allow this, of if they just have made it too expensive -- but it is not available.

      It should be noted that MS-Access is a poor choice for a production online database, for lots of reasons. It was not designed for that purpose; and as few as 1 concurrent user can lockup a MS-Access database, requiring a lot of fiddling to get it going again.

      That said, because of its ubiquity, MS-Access is an excellent vehicle to use to create an online db with a more robust RDBMS. Also, to periodically create a copy of an online db for offline use.

      With that in mind, there is a way that you can interface CFMX on a non-windows (Mac OS X, Linux, Unix, etc.) platform with MS-Access databases on a (real or emulated) windows platform.

      The procedure for doing this is too complex to cover here, and it is not free.

      At the end of Part 4 there will be a poll of the next topics tha`t are available. Interfacing MS-Access databases is one of these topics.

      So, if the interest warrants, it will be covered in the near future.

      HTH

      Dick
  • redhat version 8
    2002-11-13 10:56:16  lanegood [View]

    When installing redhat in chapter 7, after item, selecting keyboard, I get an error message saying redhad linux cd was not found. I have the cd mounted and captured in the icon second left on the bottom with the red arrow, then released mouse to put in the cd. I had to do that to accomplish steps 1-6. What next?
    • redhat version 8
      2002-11-13 13:11:49  dicklacara [View]

      Sometimes VPC doesn't recognize the CD.

      Eject the CD (Menu or CD icon popup) then reinsert it -- it should spin up and capture the CD automatically.

      You might need to do this a few time to get the CD recognized properly.

      Dick
      • redhat version 8
        2002-11-13 14:54:00  lanegood [View]

        Thank you Dick. I tried this dozens of times now, and it just doesn't recognize the CD.
        • redhat version 8
          2002-11-13 17:57:34  dicklacara [View]

          I suggest you start over with the Linux install -- at this point you have not wasted much time.

          First see if you can recognize thd CD in the finder.

          Then, insert the CD and let it spin up and show on the desktop before trying to capture with VPC.

          Then do not eject or insert a new CD unless told to do so by the Linux install.

          Finally, when inserting the second CD, wait a few moments after the disk appears on the desktop, for VPC to fully recognize that it is a valid CD.

          Other than that, get another CD -- the one you have might be defective.

          Dick
          • redhat version 8
            2002-11-14 08:15:36  lanegood [View]

            I have restarted several times, and I'm using the red hat cd to boot, and booting is successful off of install disk 1. That is the disk that leads my installation up to the point where it asks what type of media contains the packages to be installed.

            I can see the CD in the finder. I can hear it spinning. Is there another CD other than the 3 install disks that I supposed to be using?
            • redhat version 8
              2002-11-14 12:15:59  dicklacara [View]

              Sorry, I am at a loss!

              I used RH 7.2 and that came on 2 CDs.

              I had a few problems with VPC recognizing CDs in this and other installs.

              But I was always able to get around the problems by ejecting and reinserting the CD several times.

              I don'tt know what to suggest other than:

              1) get a hold of RH 7.2 and use it

              2) Install RH 8 & CFMX on a real PC

              It is important to remember that the version of Linux is not really important, except that it must be recognized by the CFMX installer as a supported version -- we aren't going to use the Linux for anything other that a base from which to port the installed CFMX Directories.

              Sorry I can't be of more help!

              Dick
              • redhat version 8
                2002-11-14 13:43:02  lanegood [View]

                I just found the answer:

                if a CD drive is connected to a third or fourth IDE controller, it absolutely can not be used to install Linux, but with some tweaking the drive can be recognized by Linux after the installation has completed.

                My cdrom is on the third controller. I'm going to temporarly disconnect my second hard drive and put my cdrom on the second IDE.
                • redhat version 8
                  2002-11-14 14:55:23  dicklacara [View]

                  Let us know how it goes -- post the results!

                  Dick
  • Part 4 coming soon???
    2002-11-13 06:23:56  anonymous2 [View]

    Any idea when we could expect the next part of the series?
    • Part 4 coming soon???
      2002-11-13 07:38:25  dicklacara [View]

      It is being edited as we speak, hopefully end-of-week or next week!

      Dick
  • Move existing .gif to new sql database
    2002-11-07 11:22:04  rlsjhsbell [View]

    How do I move several, pre-existing .gif files into an SQL database without referencing the path?
    • Move existing .gif to new sql database
      2002-11-09 11:26:55  dicklacara [View]

      You didn't say which SQL database.

      Many SQL databases do not have the capability to store Binary Large OBjectS (BLOBS), so this may not even be possible with your particular SQL database.

      For those databases that do handle BLOBS, it is usually recommended that you *Not* store images in the database:

      1) it is far slower and less efficient than using t the file system to store images.

      2) it puts a tremendous burden on the database server

      3) it has an adverse effect on other database operations.

      4) The total number of images that can be stored in a database is far less than can be stored in the file syste,

      5) Your CFMX (or other language) application needs to retrieve the image and pass it to the web server, placing an extra (and unnecessary) burden on your CFMX (or other) Web Application server.

      6) A Web Server (like Apache) is designed to retrieve images from the file system and serve them to a client browser -- it does this much more efficiently than any scenario involving a Web Application Server (CFMX), a web application (your CFMX template) and a DAtabase server.

      Many people think that by storing images in a database:

      1) they can control access to the images

      2) they can record accesses of the images

      3) they can search on image attributes

      All of these can be accomplished much more efficiently by storing the image path, statistics and attributes in the database, while storing the actual image in the file system.

      Finally, storing images in a database, by itself, does not provide security or prevent copying of images -- once they are received by the client browser, they can be saved and copied at will.

      DIck
  • cfswitch / cfcase ???
    2002-11-05 13:52:23  adolph [View]

    Has anyone had any luck using cfswitch and cfcase? I don't think it is working on my deployment. The following code doesn't display anything but the form using cfswitch/cfcase, but it does work fine with cfif/cfelseif/cfelse....

    <cfparam name="switch_value" default="1">
    <cfswitch expression="switch_value">
    <cfcase value="1">
    <h1>Value = 1</h1>
    <cfset switch_value="2">
    </cfcase>
    <cfcase value="2">
    <h1>Value = 2</h1>
    </cfcase>
    </cfswitch>
    <cfswitch expression="switch_value">
    <cfcase value="1">
    <h1>Value = 1</h1>
    </cfcase>
    <cfcase value="2">
    <h1>Value = 2</h1>
    </cfcase>
    </cfswitch>
    <form method="post">
    <input type="text" name="switch_value" value="<cfoutput>#switch_value#</cfoutput>">
    <input type="submit" name="Submit" value="Submit">
    </form>
    • problem was with cfswitch syntax
      2002-11-05 14:18:07  adolph [View]

      Sorry for needlessly adding another comment line....

      I had a syntax error. If you want cfswitch to evaluate a specific variable, you should use <cfswitch expression="#variable#">, not <cfswitch expression="variable">. I was a little confused by the documentation in Programming ColdFusion, pg. 32, 33, 791.

      So the solution was:

      <cfparam name="switch_value" default="1">
      <cfswitch expression="#switch_value#">
      <cfcase value="1">
      <h1>Value = 1</h1>
      <cfset switch_value="2">
      </cfcase>
      <cfcase value="2">
      <h1>Value = 2</h1>
      </cfcase>
      </cfswitch>
      <hr>
      <cfswitch expression="#switch_value#">
      <cfcase value="1">
      <h1>Value = 1</h1>
      </cfcase>
      <cfcase value="2">
      <h1>Value = 2</h1>
      </cfcase>
      </cfswitch>
      <form method="post">
      <input type="text" name="switch_value" value="<cfoutput>#switch_value#</cfoutput>">
      <input type="submit" name="Submit" value="Submit">
      </form>
      • Works for me
        2002-11-06 10:27:55  anonymous2 [View]

        Your program works for me -- thou the logic is a little strange.

        Dick
    • It works fine with cfif...
      2002-11-05 13:55:12  adolph [View]

      using the following code:
      <cfparam name="switch_value" default="1">
      <cfif switch_value eq "1">
      <h1>1</h1>
      <cfset switch_value = "2">
      <cfelseif switch_value eq "2">
      <h1>2</h1>
      </cfif>
      <hr>
      <cfif switch_value eq "1">
      <h1>1</h1>
      <cfset switch_value = "2">
      <cfelseif switch_value eq "2">
      <h1>2</h1>
      </cfif>
      <form method="post">
      <input type="text" name="switch_value" value="<cfoutput>#switch_value#</cfoutput>">
      <input type="submit" name="Submit" value="Submit">
      </form>
  • Mapping urls to other directories
    2002-10-30 15:18:43  anonymous2 [View]

    i emailed dick about this, and he asked me to post this up.

    if you want to map an url, eg http://localhost:8500/web to a directory on your mac, eg /websites then you can do so by editing the jrun-web.xml file (with a text editor) in the WEB-INF directory (/opt/coldfusionmx/wwwroot/WEB-INF)

    eg

    <virtual-mapping>
    <resource-path>/web</resource-path>
    <system-path>/websites</system-path>
    </virtual-mapping>

    with the text between resource path being the path at the URL, and the system-path being the path on your system!

    just posting this as it might be of use to someone!!

    Ryan
  • protecting the CFIDE directory
    2002-10-21 18:53:52  anonymous2 [View]

    I would for only certain persons on my network to have access to the CF Administrator.

    Is there a way to authenticate Users in the default CF web server (either by username/password or by IP address)? Something similar to the Authentication methods in Apache? There doesn't seem to be much documentation at Macromedia on the subject.
    • protecting the CFIDE directory
      2002-10-22 01:46:18  dicklacara [View]

      The developer system is a single-user system --localhost, plus 1 external IP address (for testing).

      The developer version is not suitable for use on a network, and to do so would be a violation of the license agreement,

      That makes this question academic for the developer system.

      In a licensed multi-user system (30-day Trial, development or production) authentication is provided by a combination of the underlying OS's file permissions and htaccess (or similar service) provided by the web server.

      Since the OS X port of CFMX cannot be interfaced to any web server except the CFMX-supplied default web server, web server authentication is not applicable to the OS X 30-day Trial system.

      I can't speak for Macromedia, but, for the reasons above, it is unnecessary to provide any authentication for the developer system.

      Dick
  • Access Problem
    2002-10-16 12:14:00  anonymous2 [View]

    Hi,
    First of all Thanks soooo much for this Dick, the installation wasn't easy for me - but i got to learn a bit more than i had known about UNIX commands and in the end it worked - which is great. I've set CF to work with mysql on my powerbook, which is working great. But i can't seem to get the Access driver to work. Do I have to create an ODBC to JDBC connection? or is their an existing driver that would work?

    I know access isn't made for Mac but i would like to use the examples from the Ben Forta books - which use access files - any suggestions would be much appretiated. Thanks Again - Looking forward to part 4!
    Jimmy
    • Access Problem
      2002-10-16 19:19:00  dicklacara [View]

      There is a way to do this -- I just converted a large MS-Access db to Sybase ASE, using CFMX on Mac OS X.

      However, it is a bit involved -- MS-Access runs only on win machines. The reason that noone has written a MS-Access driver for Linux, Unix, OS X, etc is that most all the logic of MS-Access is in the ODBC Driver, itself.

      This means that you need to run win (real or emulated) to run MS-Access.

      Then, you need 3rd-party software to interface non-win CFMX to the win MS-Access.

      It is beyond the scope of this forum -- I plan to cover MS-Access and FileMaker in a later article.

      Patience -- there is so much that we can now do, it is hard to prioritize.

      Dick
  • Dick, This Rocks!
    2002-10-11 17:22:08  adolph [View]

    Yet another successful install:
    1. Installed on RH8 on a P3 500.
    2. FTPed to my iBook 500.
    3. Was thrown for a loop by the undocumented error on gnutar and /opt's invisibleness.
    4. Didn't run script as cfmx at first, leading to permission errors.
    5. Remembered and it runs like a top.

    I'm thinking about installing Payflow Pro for CF java over this weekend. This is really, really exciting. The most difficult thing about the install was (1) dealing with installing RH on my office PC and (2) dealing with the uncertainty of the error messages.

    Thanks Dick!
  • change default web server to Apache?
    2002-10-09 14:48:57  anonymous2 [View]

    Is this possible?

    I followed the instructions in the ColdFusion installation manual, and kept getting the error:

    web server Apache is not configured for Mac OS X

    The instructions say to use the java distribution that comes with Coldfusion, but I used the one installed with OS X

    I would really like to use the same web server for PHP/ColdFusion/Whatever development; not have to switch ports. Any help would be appreciated.
    • change default web server to Apache?
      2002-10-10 06:53:11  dicklacara [View]

      This has been discussed in previous posts.

      No, you can't use Apache (or any other) web server with CFMX on Mac OS X -- only the Default web server installed by CFMX.

      The reason for this is that interfacing CFMX (actually the underlying JRun) with another web server uses a platform-specific C++ connector module.

      There is no connector-module for the Mac.

      The connector is used to efficiently interface a 3rd-party web server, while protecting MacroMedia's intellectual property -- so this capability probably won't be available for the Mac until/if Macromedia releases a Mac CFMX product.

      Sorry, but that's the way it is.

      Dick

      P.S. If you wanted to get creative, you could trap all Apache "page not founds", and write a PHP program that redirects any .cfm page requests to port 8500
      • change default web server to Apache?
        2003-01-03 10:14:06  lanej0 [View]

        One way I've "worked around" this is to use Apache's proxy ability. In essense, you can intercept requests going to a specific address, pass them to a certain port and then pass the reply back. It's a bit of work, just so you don't have to type :8500 at the end of your URL, but it can be done. I guess that if you need to have a sexy URL because you're using CFMX on a production box, this is a good solution.

        The only real side effect I've found is some funny business that takes place with session variables sometimes and also with obtaining the referrer IP (it will always be localhost).

        If you're really interested in this approach, let me know, and I'll post some sample lines from my httpd.conf to get you up and running. I'm checking back here on a fairly regular basis for Part 4... anytime O'Reilly gets around to editing it.
  • Database question
    2002-10-07 07:13:26  mrbitter [View]

    In order to use database with CF on Jaguar, what Database utility does anyone recommend? I've got Access in Virtual PC with SQL Server 7 running, but I can't find a workable DB. Has anyone got the DB function to work with Jaguar?
    • Database question
      2002-10-10 06:37:37  dicklacara [View]

      So far I have been able to run the following databases with CFMX under Mac OS X 10.2.1 Jaguar.


      • PointBase Embedded (CFMX Examples, etc).
      • PointBase Server (CFMX PetMarket Blueprint)
      • FileMaker
      • FrontBase
      • MySQL
      • OpenBase
      • OpenLink to MS-Access under VPC Emulation
      • Oracle
      • PostgreSQL
      • Sybase


      Free or trial versions are available for all of the above except MS-Access.

      All of these run native on Mac OS X, except MS-Access.

      FileMaker and MS-Access are not recommended for online production -- rather the are used as a source for conversion of an offline database to a more robust RDBMS,, suited for online production.

      Some of these dbs come with a GUI SQL client, which allows you to interactively create and execute SQL queries against the database -- great for development & debugging.

      There are several general-purpose SQL clients which will work with any JDBC-compliant db (all of the above except MS-Access).

      I will discuss the ViennaSQL client in the next article, as well as interfacing CFMX with several of the above databases.

      The next article, part 4, is at O'Reilly, being edited -- it is 3 times the word-count limit, and needs to be broken into several parts.

      Dick
  • Pet Market App
    2002-10-06 15:42:16  anonymous2 [View]

    I have been unable to get the app to work. I downloaded unix version and tried the car file installation via the admin to no avail. So I changed car to zip and did everything manually. I was able to start the database using the shell script, however I could never get the cf admin to connect to it using jar file. I followed all instructions on the site. Please help. Does a native osx version exist? Thanks, Will
    • Pet Market App
      2002-10-10 06:20:20  dicklacara [View]

      As I stated in a previous post, the PetMarket BluePrint install is messy -- but it is not because of OS X.

      You need to locate the pbclient42RE.jar file, and copy it to /Library/Java/Extensions

      If you have further questions, contact me offline -- I am not prepared to write up the complete install through a series of forum posts.

      I will cover this, as promised in a later article!

      Dick
  • Macromedia Pet Market Blueprint
    2002-10-03 10:54:13  anonymous2 [View]

    Macromedia wants to hear from Mac users who successfully get the Pet Market app running on OS X.

    Quoted from the Pet Market FAQ:

    Will there be a Pet Market version for the Macintosh?
    The client-side portions of Pet Market can be explored with Macromedia Flash MX and Macromedia Dreamweaver MX on the Macintosh. There currently is not a shipping version of ColdFusion MX for the Macintosh. However, some developers have succeeded in getting both ColdFusion MX and JRun 4 working on OS X. If you are successful in getting Pet Market to run on ColdFusion or a J2EE server on the Macintosh, we would love to hear from you.
    email: thale@macromedia.com

    Pet Market App:
    http://www.macromedia.com/desdev/mx/blueprint/

    Project FAQ:
    http://www.macromedia.com/desdev/mx/blueprint/articles/faq.html
    • Macromedia Pet Market Blueprint
      2002-10-03 15:00:38  dicklacara [View]

      I got this working some time ago & contacted the folks at MM -- they probably forgot to update their web page.

      It installs directly under OS X. The install is a little tricky (not OS X's fault), but it runs very well!

      I was planning to include the procedure in part 4, but so many databases are available to interface with CFMX on OS X, that I pushed it to a later article.

      Dick
  • trouble with Terminal(?)
    2002-09-30 17:47:20  anonymous2 [View]

    I can't get past this step:

    "We need to assume the identity of the root user to install the CFMX files: Enter the following, and your Mac OS X user password (when prompted):

    su root"

    The password prompt displays, but does not seem to accept any entry. Should I see something when I type? dashes? bullets? anything? Nothing I type seems to do anything. I've triple-checked the password.

    • trouble with Terminal(?)...continued
      2002-09-30 19:03:32  edgedesign [View]

      ok.....it seems I should not be seeing anything when I type a password, but I still cannot get to the root directory. I went forward to the next set of instructions and decompressed CFMX into the cfmx user directory. Everything seems in order in the cfmx user directory, but I cannot get the Shell Script to execute. I get the following:

      [Macintosh:~] cfmx% chmod 755 /opt/coldfusionmx/bin/coldfusionosx
      chmod: /opt/coldfusionmx/bin/coldfusionosx: No such file or directory

      it seems like this code would search for 'coldfusionosx' in the cfmx user directory. Not sure what to do next. Move the 'opt' folder? recompress in the 'root'?
      • trouble with Terminal(?)...continued
        2002-10-01 03:42:15  dicklacara [View]


        Here's an illustration of a terminal session.





        01 Last login: Tue Oct 1 02:51:16 on ttyp7
        02 Welcome to Darwin!
        03 [TiBook:~] cfmx%
        04 [TiBook:~] cfmx% su root
        05 Password:
        06 [TiBook:/Users/cfmx] cfmx#
        07 [TiBook:/Users/cfmx] cfmx# pwd
        08 /Users/cfmx
        09 [TiBook:/Users/cfmx] cfmx# cd /
        10 [TiBook:/] cfmx# pwd
        11 /
        12 [TiBook:/] cfmx#




        The code above illustrates a Terminal session to Install ColdFusion MX on Mac OS X. I pre-pended line numbers so I could refer to each command.



        • Lines 01 - 03: display when terminal window opened (I hit enter on line 03 to illustrate a prompt line with no cammand enterd after the prompt).
        • Line 04: Enter the su root command to assume the root user identity.
        • Line 05: You will be prompted for a password. Enter the password and hit enter. (Nothing will be displayed when you type after the password prompt).
        • Line 06: The prompt line will change indicating that you are operating under the root user's identity. (I hit enter on line 06 to illustrate a prompt line with no cammand enterd after the prompt).

          • I use Jaguar and the character after the user (cfmx) changes to a #
          • In OS X 10.1, the username changes to root

        • Line 07: Enter pwd (Print Working Directory) to display the current directory path.
        • Line 08: The current directory path is displayed. (Even though we assumed the root user's identity, we remain in the cfmx user's default directory path).
        • Line 09: Enter the cd / command to change to the root directory path.
        • Line 10: Enter pwd to display the new current directory path.
        • Line 11: The current directory path is displayed. (The / indicates we are at the root directory). This is where we will expand the compressed file with gnutar
        • Line 12: I hit enter on line 12 to illustrate a prompt line with no cammand enterd after the prompt.


        You are now properly setup to issue the gnutar command.



        HTH



        Dick

        • trouble with Terminal(?)...continued
          2002-10-01 06:32:04  edgedesign [View]

          This is outlined very clearly...thanks.

          My problem seems to be that I cannot gain access to the root (line06). I've tried the cfmx user password, my main user password, any other password I have ever used....nothing. Is there a work-around if the password does not take?
          • trouble with Terminal(?)...continued
            2002-10-01 06:36:50  edgedesign [View]

            ...since I could not gain access to the root, I went forward with instructions and decompressed the files into 'user/cfmx/opt/'

            Can I move this foder to the root? Does it stay here? Do I need to gain access to the root via Terminal and do over?
            • root accessed...trouble launching script
              2002-10-01 10:21:18  edgedesign [View]

              After some research via AppleCare help in Sherlock, I found that root access had not been enabled nor assigned any password (it's disabled by default). I used the NetInfo Manager to enable root access/password and then expanded the 'cfmxinst.bin' file from the root as outlined.

              However, I'm still stuck getting the 'coldfusionosx' script to launch. I pasted the code into BBEdit then saved with Unix line feeds into the 'bin' directory. I keep getting a file not found error:

              [Macintosh:/] cfmx% chmod 755 /opt/coldfusionmx/bin/coldfusionosx
              chmod: /opt/coldfusionmx/bin/coldfusionosx: No such file or directory

              I've triple-checked the directory path, pasted code, file name, etc. Could it have to do with some other file setting? File Creator or Save State?
              • root accessed...trouble launching script
                2002-10-02 03:02:55  dicklacara [View]

                OK, let's try this.

                From a terminal window enter:

                cd /opt/coldfusionmx/bin

                Then enter ls -l

                If you have saved the coldfusionosx file properly, you should see something like:



                *
                *
                -rw-r--r-- 1 cfmx wheel 2284 Oct 2 02:52 coldfusionosx
                *
                *



                The permissions ( -rw-r--r-- ) is what we're about to change.

                Now enter chmod 755 coldfusionosx

                Then enter ls -l

                If you have successfully changed the permissions, you should see something like:



                *
                *
                -rwxr-xr-x 1 cfmx wheel 2284 Oct 2 02:52 coldfusionosx
                *
                *



                Now you should be able to continue with the procedure.

                Dick
                • root accessed...trouble launching script
                  2002-10-02 05:21:56  edgedesign [View]

                  I'm getting this after entering 'ls -1'

                  [Macintosh:/opt/coldfusionmx/bin] cfmx% ls -1
                  cfencode
                  cfmx-init.sh
                  cfstat.sh
                  cfusion
                  coldfusion

                  The 'coldfusionosx' file is definately in the bin directory. I tried other save options from BBEdit (even TextEdit) to see if it made any difference - always UNIX line feeds, but as 'BBEdit, SimpleText, generic text file, MPW Shell, etc. I double-checked the script.
                  • root accessed...trouble launching script
                    2002-10-02 09:16:13  dicklacara [View]

                    The coldfusionosx file is obviously not in the /opt/coldfusionmx/bin directory -- the ls -l shows the contents of that directory and coldfusionosx isn't among the contents you show.

                    Double check that you are saving the BBEdit file to the /opt/coldfusionmx/bin directory -- that is on your Macintosh HD in the folder /opt/coldfusionmx/bin.

                    Also, make sure the file name does not start with a period.

                    Dick
                    • root accessed...trouble launching script
                      2002-10-02 11:01:18  edgedesign [View]

                      Somewhere along the way CF was installed into the CFMX user directory which was causing my confusion. This is the one I could see in the Finder and the one where I was saving the 'coldfusionosx' file.

                      I understand now that we're looking for CF in the root directory and this is where I should save the 'coldfusionosx' file. It seems that CF did install into the root, but is invisible in the Finder. I can see it 's there with Terminal, but I cannot save to the bin from my text editor. I deleted CF from the CFMX user directory and went back a few steps and expanded the file again using 'gnutar'. I still cannot view the directory from the Finder, but it is there. I noticed this in Terminal after the long list of expanded files:

                      /usr/bin/gnutar: Error exit delayed from previous errors



                      • root accessed...trouble launching script
                        2002-10-02 13:14:08  dicklacara [View]

                        Ahh, you must be using Jaguar.

                        This was reported in a prior post & a resolution was also posted.'

                        For some reason, Jaguar wants /opt to be invisible.

                        Here's how to make it visible (from the previous post).

                        Upgrading to Jaguar causes the /opt folder to be invisible to the Finder -- It is still intact, you just can't see it from the desktop.

                        To make it visible again, do the following:

                        Open a Terminal window.

                        Assume the root ID by entering:

                        su root

                        Enter your (Mac OS X) Administrative password when asked

                        Change to the root file level:

                        cd /

                        Edit the .hidden file with pico by entering (note the dot before the file name):

                        pico .hidden

                        with the arrows, navigate down and delete the line containing:

                        opt

                        save the updated file by entering:

                        Control-o

                        followed by:

                        Return

                        Exit pico by entering:

                        Control-x

                        Reassume the cfmx user ID by entering:

                        su cfmx

                        From the Apple menu select Force Quit... (or press Command+Option+Escape).

                        Select the Finder and click Relaunch

                        When the finder is relaunched, you should see the opt folder on Macintosh HD, just as it was before installing Jaguar.

                        Dick
                        • root accessed...trouble launching script
                          2002-10-03 04:15:22  edgedesign [View]

                          FINALLY!...Everything worked perfectly.

                          The visible CF files that I somehow installed into the CFMX directory really threw me off for a while.

                          Lessons learned:

                          1) 'root' control/password may need to be enabled by some people before expanding the 'cfmxinst.bin' file (installing CFMX into OS X). I found instructions via Sherlock >> Apple Care.

                          2) Jaguar users will need to make the 'opt' file visible in order to save the 'coldfusionosx' script file to the 'bin' directory.

                          3) Terminal does not display any characters (bullets, asterics, etc.) as you type in passwords.

                          Dick, thanks so much for sticking with me and all of your help.
                          • root accessed...trouble launching script
                            2002-10-03 04:30:55  dicklacara [View]

                            Welcome to the growing number of Mac CFMX developers.

                            We both learned a bit more that we originally planned!

                            Enjoy!

                            Dick
  • ok... here is a description of my travails
    2002-09-27 12:11:05  punkish [View]

    I used an old Linux box running RH 7.x to install CFMX. Here is what I got...

    1. Did not have enough space on the linux box, tried to change the tmp directory as instructed by the installer program, but the installer failed to install.

    2. Installed a new hard disk. Installed CFMX successfully, but instead of under /opt/cfmx installed it under /mnt/hdb1/cfmx. Additionally, instead of using the built in server decided to use Apache.

    3. Tarballed and brought the install tree to my iBook and all hell broke loose because on my iBook I untarred everything under /opt/cfmx.

    4. Everytime I tried to start cfmx, it would look for and then create /mnt/hdb1 on my iBook. After much looking around I went it and changed the reference to $CF_DIR in about a thousand places from the hard-coded (by the installer) /mnt/hdb1 to /opt. Eventually, that got working and I was able to hit and run cf scripts against JRun on port 8500. But, this was soooooooooooooooo slow.

    5. Modified the httpd.conf file to load the mod_jrun.so appropriately and run cf the correct way... against the Apache on my iBook. Failed. Seems like the mod_jrun.so that comes with cfmx install is built for Linux only... hence, Apache fails to start.

    Bottomline... this is still very tricky unless done pretty much exactly how it is detailed in this article. As is, hitting against JRun on port 8500 is so slow it is unusable.

    Anyone know if I can get mod_jrun.so for OS X from somewhere? Is this something I can build myself?

    Tia.
    • ok... here is a description of my travails
      2002-09-27 14:37:06  dicklacara [View]

      My responses are intermingled.

      >>I used an old Linux box running RH 7.x to install CFMX.
      >>Here is what I got...

      This should be OK

      >>1. Did not have enough space on the linux box, tried to
      >>change the tmp directory as instructed by the installer
      >>program, but the installer failed to install.

      Known problem with CFMX Linux installer -- needs 500 Meg to install

      >>2. Installed a new hard disk. Installed CFMX successfully,
      >> but instead of under /opt/cfmx installed it under
      >> /mnt/hdb1/cfmx.

      this can be compensated for, see below.

      >>Additionally, instead of using the built
      >> in server decided to use Apache.

      The CFMX OS X port will not run with anything but the default server --
      there is a Platform-speciff C++ file that makes the connection between
      JRun and any web server but the default. This is not available on Mac OS X,
      and CFMX cannot interface with Apache (or any other web server, except
      the Default) without it.

      >>3. Tarballed and brought the install tree to my iBook and
      >>all hell broke loose because on my iBook I untarred
      >>everything under /opt/cfmx.

      That should also be OK -- see below

      >>4. Everytime I tried to start cfmx, it would look for and
      >> then create /mnt/hdb1 on my iBook. After much looking
      >> around I went it and changed the reference to $CF_DIR
      >> in about a thousand places from the hard-coded
      >> (by the installer) /mnt/hdb1 to /opt.

      this is the below referenced above

      The 4th line if the coldfusionosx startup script sets CF_DIR -- you should be OK using the script.

      #!/bin/sh

      # Set some environment variables.
      CF_DIR=/opt/coldfusionmx

      If not, you can untar CFMX to whatever directory tree that it resided on Linux, then change line 4 of the above script.

      I originally installed on /home on Linux and ran on /home on OS X.

      The only problem with this is you constantly have to interpolate -- all the doce (mine and Macromedia's) are written assuming /opt.

      >> Eventually, that
      >> got working and I was able to hit and run cf scripts
      >> against JRun on port 8500. But, this was
      >> soooooooooooooooo slow.

      This is not full JRun 4, but one tailored for distro with CFMX.

      >>5. Modified the httpd.conf file to load the mod_jrun.so
      >> appropriately and run cf the correct way... against the
      >> Apache on my iBook. Failed. Seems like the mod_jrun.so
      >> that comes with cfmx install is built for Linux
      >> only... hence, Apache fails to start.

      Again, no Apache without a C++ Connector for the Mac (not available).

      >>Bottomline... this is still very tricky unless done pretty
      >> much exactly how it is detailed in this article. As is,

      Yes this is true... we are bybassing several platform-specific C++ programs, and do not have all the options of a supported platform.

      >> hitting against JRun on port 8500 is so slow it is
      >> unusable.

      That is because you don't have the Default web server.

      >>Anyone know if I can get mod_jrun.so for OS X from
      >>somewhere? Is this something I can build myself?

      Nope, Nope!

      >>Tia.

      Go back and Linux install with the default web server & redo the port -- it should give you a running CFMX Developer system on OS X, which is the objective of these articles.

      Dick
      • ok... here is a description of my travails
        2002-09-28 21:51:53  punkish [View]

        ..

        >>Additionally, instead of using the built
        >> in server decided to use Apache.
        >
        >The CFMX OS X port will not run with anything
        >but the default server --
        >there is a Platform-speciff C++ file that
        >makes the connection between
        >JRun and any web server but the default.

        yeah, mod_jrun.so... shucks.

        ..

        >>4. Everytime I tried to start cfmx, it would
        >>look for and
        >> then create /mnt/hdb1 on my iBook. After
        >>much looking
        >> around I went it and changed the reference
        >>to $CF_DIR
        >> in about a thousand places from the hard-coded
        >> (by the installer) /mnt/hdb1 to /opt.
        >
        >this is the below referenced above
        >
        >The 4th line if the coldfusionosx startup
        >script sets CF_DIR
        >-- you should be OK using the script.
        >
        >#!/bin/sh
        >
        ># Set some environment variables.
        >CF_DIR=/opt/coldfusionmx
        >
        >If not, you can untar CFMX to whatever
        >directory tree that it resided
        >on Linux, then change line 4 of the above script.
        >
        >I originally installed on /home on Linux and
        >ran on /home on OS X.


        well, only partially correct. Actually, the install hard-codes the path in
        several files. I grep-ed for "/mnt/hdb1" (the path I had installed on
        under the Linux box) and found the following relevant files that had to
        be modified as well...

        bin/jvm.config

        lib/neo-query.xml
        lib/startk2server

        runtime/bin/jvm.config
        runtime/install_data/getmchn.sh

        runtime/servers/default/SERVER-INF/jrun-resources.xml
        runtime/servers/default/SERVER-INF/jrun-resources.xml
        runtime/servers/default/SERVER-INF/jrun-resources.xml

        wwwroot/WEB-INF/jrun-web.xml

        additionally, a symbolic link to jvm.config under /bin had to be reset.

        In addition, there were a bunch of binary files (classes under
        wwwroot/WEB-INF/cfclasses/ that were also matched by grep, but I have left
        them alone for now).

        Additionally, it seems that the program wants to read in
        runtime/lib/license.properties while starting up, however, that file is
        sitting under lib/license.properties.


        >> hitting against JRun on port 8500 is so slow it is
        >> unusable.
        >
        >That is because you don't have the Default web server.

        still very slow. It seems that the first time I hit any cfm script it
        takes forever. While CF compiles and caches the pcode of the cfm scripts
        on their first run, the delay in my case seems to be way too much.

        Anyway, thanks for a great article... it was very helpful learning all this.

        pk/
        • ok... here is a description of my travails
          2002-09-29 07:56:46  dicklacara [View]

          It is true that there are many hard-coded (by the installer) references to the directory path.

          Many of these are XML files that contain initial values that are updated under normal operation of CFMX.

          Others reference the JVM which is is installed as part of the CFMX install. In our startup shell, we bypass this JVM to use the one that is part of Mac OS X -- this makes any changes to files regarding paths to the JVM unnecessary.

          The wwwroot/WEB-INF/cfclasses/ directory is where CFMX stores the templates it has compiled from CFML to Java classes -- these are generated every time a template is changed (or if a Java class for a template is not found) -- so any changes to these should be unnecessary.

          However, it is safest to mirror, on OS X, the directory path used to install on Linux.

          The delay when a CFMX template is hit for the first time (and after any modification) is as you stated to:

          1) Generate Java source code from the CFML
          2) Java Compile the Source code into a Java class file (bytecode)
          3) JIT compile the bytecode into an executable
          4) Cache the executable.

          This only happens the first time a template is hit or after a modification -- so it will have little effect in a production system.

          It is, however an issue with developers who are changing templates all the time.

          There are several ways to work with this, so the delays are tolerable:

          1) modularize your code, using the various features of CFMX, so that changes are localized to fewer and smaller templates. For example CFMX has the concept of a CFC (ColdFusion Component), where a group of related functions can be packaged as a separate module (a CFC) and invoked from other CF templates. So, you could code your business logic or database interface as CFCs. Presumably, these would rarely change. Your presentation logic, which is is more like to change, is smaller (no business or db logic) and compiles faster.

          2) after changing many templates, batch compile these -- the CF-TALK list has included several threads about this.

          Dick
  • Problems with Port number
    2002-09-27 07:22:43  mrbitter [View]

    When I restart Jaguar, CFMX starts too, but when I try to access 127.0.0.1:8500, it says a connection failure has occured. I have PHP and MySQL installed, but from the previous messages, everything should work.

    Any thoughts?
    • Problems with Port number
      2002-09-27 09:01:26  dicklacara [View]

      What do you mean CFMX starts too?

      Did you create a /Library/Startupitems entry for CFMX?

      What happens when you try to start CFMX through a terminal window with the following?:

      /opt/coldfusionmx/bin/coldfusionosx start

      Dick


      • Problems with Port number
        2002-09-27 11:54:32  mrbitter [View]

        I found the problem.
        It was the nut behind the mouse. (Me)

        Thanks for your help anyway. Can't wait for the next article.
  • Filemaker 6 can interface CFMX
    2002-09-25 16:43:42  dicklacara [View]

    A much earlier post asked if FileMaker 6 can be interfaced to CFMX.

    The answer is yes -- I have tested both running on Mac OS X, but you should be able to use win and Linux, also.

    I haven't done any extensive tests with FM 6, but you should be able to manipulate FM databases with CFMX to migrate them to a more robust online database.

    I will publish the interface procedure in a later article.

    Dick
    • Filemaker 6 can interface CFMX
      2002-10-03 10:59:20  edgedesign [View]

      Looking forward to more info on this.
  • J2EE
    2002-09-25 08:36:56  anonymous2 [View]

    I was wondering does the introduction of Cold Fusion for J2EE make it easier to use cold fusion on a mac. If it make sense to go in this direction.will you being doing a Jboss ColdFusion how to?
    thanks

    • J2EE
      2002-09-25 13:20:20  dicklacara [View]

      I just checked (yesterday) to see if the CFMX J2EE package and JRun4 would install on OS X.

      CFMX J2EE uses the same installer logic as CFMX -- checks the underlying OS and aborts the launch if it is not a supported OS.

      The JRun 4 installer does not perform this OS check, but fails when asking for the license code -- I think that this is a bug in the JRun installer.

      So, it looks like CFMX will (still) only install on a supported platform.

      Dick
  • It works! but sample apps don't
    2002-09-25 06:27:27  anonymous2 [View]

    I never thought I'd be using CF natively on a Mac. This is truly amazing.

    But...none of my data sources will verify in CFADMIN. So, none of the sample apps will work. I will try to recreate some DSs...
    • It works! but sample apps don't
      2002-09-25 13:15:37  dicklacara [View]

      Did you copy the PointBase JDBC driver where Mac OS X can find it as desctibed on:

      page 11

      Install ColdFusion MX on Mac OS X

      Step 6 (below)

      You must bounce CFMX after doing this so the driver will be found.

      Dick

      ColdFusion MX for Linux ships with a developer version of the PointBase database system. It is used in the example programs and documentation code snippets. We need to make a copy of the PointBase driver and put it where the Mac OS X Java can find it. In the finder navigate (through our nice new CFMX installation) to:

      opt ==> coldfusionmx ==> runtime ==>
      servers ==> lib

      Copy the PointBase jdbc driver: pbserver42RE.jar to
      Library ==> Java ==> Extensions

      You may see other items in this folder.

  • Databases & CFMX
    2002-09-21 18:59:55  dicklacara [View]

    Databases & CFMX

    This was supposed to be a major part of the next article -- it will be the only topic.

    Some exciting things have happened:

    -- Jaguar was released
    -- An updater was released for CFMX for OS X
    -- Sybase is available for Mac OS X Jaguar
    -- Oracle is available for Mac OS X Jaguar
    -- MySQL is available for Mac OS X Jaguar
    -- PostgresSQL is available for Mac OS X Jaguar
    -- OpenBase is available for Mac OS X Jaguar
    -- PointBase is available for Mac OS X Jaguar

    Is there a theme, here?

    We now have 2 of the 4 top (installed base) RDBMS systems runnung on Mac OS X Jaguar.

    We have the most popular open-source RDBMSs running on Mac OS X Jaguar

    We have the some of the most elegant and exciting proprietary RDBMSs running on Mac OS X Jaguar.

    All of the above can be interfaced with CFMX running on Mac OS X Jaguar.

    Anyway, pardon my clumsy attempt to make a point -- I delayed the next article so that I could test everything on Jaguar -- then new db products, or new versions of existing db products kept popping up for Jaguar.

    I got Sybase running with CFMX, last Wednesday, and Oracle running today.

    I am going to focus all my efforts (and articles) on Jaguar, because that's where all the new stuff will run.

    -- if they will only stop releasing new RDBMSs, I'll be able to finish the next article! %^)>

    Dick








    • Databases & CFMX
      2002-10-01 03:05:00  lolajl [View]

      Wonderful! I'm looking forward to your latest article. I'll be installing CFMX as soon as I get the necessary software.
  • CFMX and DWMX
    2002-09-21 12:53:59  anonymous2 [View]

    I have installed CFMX on Jaguar successfully.

    1. I used just Windows XP, and not DOS, to copy files. Probably it doesn't matter, how the files are transfered.
    2. I used Red Hat 7.3. No problems.

    Today I tried to connect from DWMX to CFMX, but something went wrong. Anyone tried it? Will the both apps co-operate together?

    Is it possible to use Filemaker 6 with CFMX?

    PS. I am a novice with ColdFusion.

    --
    wm
    (Wojciech Miskiewicz)
    • CFMX and DWMX
      2002-09-21 18:37:44  dicklacara [View]

      A lot of points/questions there.

      Yes, there are alternative ways to copy files between a valid (Linux, Solaris, etc.) installation and the Mac. As I stated in the article, these won't work for everybody.

      I will try to address the DWMX and Filemaker questions after the next article is published.

      Dick
  • Enable MySQL in ColdFusion
    2002-09-21 09:23:22  junehao [View]

    Find a JDBC driver (such as mm.mysql) for MySQL and place it into /Library/Java/Extensions and you are all set. Restart CF server and go to Administration : Datasource, you'll see MySQL is on the dropdown list.

    mm.mysql-2.0.14-bin.jar can be found here http://www.mysql.com/downloads/api-jdbc-stable.html
    • Enable MySQL in ColdFusion
      2002-09-21 18:33:15  dicklacara [View]

      Yes, that will certainly work.

      I use a slightly different approach that allows use of a 3rd-part GUI SQL client.

      The advantages are:

      interfaces any jdbc compliant db

      displays schema information

      allows interactive query creation/testing/debugging.

      Dick

  • VPC DOS file sharing -- NOT
    2002-09-20 21:01:26  anonymous2 [View]

    Another VPC wrinkle: my VPC 5 upgrade (upgrade only, no OS) does not include any of the additions required for file sharing, and apparently the v 5 additions do not support DOS. When I go to the file sharing portion of the settings dialog it simply says "not installed". Updating to 5.0.2 didn't help either. Obviously people have gotten this to work. What's the trick?
    • VPC DOS file sharing -- NOT
      2002-09-21 18:25:36  dicklacara [View]

      I don't understand this. The VPC I use is VPC 5.x with no OS.

      It comes with DOS.

      If you have a ligitimate upgrade from a prior VPC (with DOS), I assume that you would get DOS in the upgrade.

      Maybe this is an issue to take up with Connectix -- I have found them to be a very fair and reasonable company.

      Dick
  • Apple Laptop Keyboards Unsuitable for Unix Users
    2002-09-18 02:29:16  anonymous2 [View]

    Apple laptops are effectively unusable for unix users.

    I am a long-time Unix user. That means I need to have the Ctrl key to the left of the A key. This is a genuine need, not merely a want; it is based upon ergonomics. The Ctrl key is heavily used in unix, and it must be easily accessable. It cannot be off in the lower left corner of the keyboard where it is difficult to get at, and where it distorts the position of your left hand such that you can't easily type other keys while holding the Ctrl key down.

    Apple desktop keyboards are now all USB. They are all OK. The CapsLock key can be re-mapped into a Ctrl key.

    Unfortunately, even in this modern age, all Apple laptops have built-in ADB keyboards. The ADB keyboard is broken-by-design. It is, in general, not possible to remap the CapsLock key into a Ctrl key.

    There are some exceptions, but they are horrible kludges. They are
    horrible kludges because the original design of the ADB keyboard was a horrible kludge. The correct solution would be for Apple to re-design their laptop motherboards to use built-in USB keyboards. This hasn't happened yet. If you run Linux, use Debian's solution. For Mac OS X users, uControl works. There are no solutions (that I know of) for either NetBSD or OpenBSD. Please note once again that the "solutions" above are in fact kludges, because of the original bad design of the ADB keyboard.

    Apple is (currently) ignoring Unix users! This is not merely speculation on my part. In an on-going email exchange I am having with an Apple employee (whom I won't name) in their marketing department, the Apple marketing person directly stated to me that Apple was catering to their historic Mac customers, and is purposely ignoring the Unix market. He also claimed that Apple would soon start paying more attention to the Unix market. I won't hold my breath. Apple has been ignoring Unix users for more than 10 years. I expect that trend to continue. (Also note that my Apple contact indicated that Macs would never ship with a 3-button mouse, even though Apple intended to port almost all X-window software and deliver it either on a CD/DVD or installed directly on each Mac's hard drive. How Unix friendly is a 1-button mouse with X programs that often require 3 buttons?)

    Apple has now lost two opportunities to sell me hardware. I really wanted an Apple laptop for their superior battery life, and for the PowerPC with Altivec CPU. (The Altivec is vastly superior to the x86 line for DSP.) Because I can't live with the broken-by-design built-in ADB keyboard in all Apple laptops, Sony and IBM sold me laptops instead. If Apple fixes this problem, they will sell me a PowerBook next year; if they don't, I'll still be running OpenBSD on x86 hardware, and wishing I could use a Mac.

    • Apple Laptop Keyboards Unsuitable for Unix Users
      2002-09-18 13:07:18  dicklacara [View]

      Correct me if I am wrong, but isn't the standard layout for most computers to have the key to the left of the "a" key be the Caps-Lock or Shiftlock key?

      Where does the control key reside on a standard PC keyboard?

      Dick
  • CFMX Update available - Updater runs on Mac OS X
    2002-09-16 20:39:50  dicklacara [View]

    Damon Cooper and Brent Baker, of the Macromedia CF R&D team, have put
    together a slick package that can be used to update a CFMX installation
    that has been ported to Mac OS X. The package is a GUI updater written
    entirely in Java, and runs just fine on Mac OS X. This updater package
    is experimental and is not supported in any way by Macromedia.

    You can download the package at:

    ftp://ftp.allaire.com/outgoing/damonc/

    There are 2 files:

    cfmx_updater.jar - a command-line executable version

    cfmx_updater.zip - a compressed, double clickable version

    You can use either one, I have tested both.

    I prefer the double- clickable cfmx_updater. zip -- simply download,
    unzip, double-click and answer a few questions and you are done -- what
    could be simpler.

    Detail instructions for the command-line executable are shown below --
    it takes a few extra steps, but uses the same GUI.

    1. Open a Terminal window and change directory to where you downloaded
    the cfmx_updater.jar file, for example:

    cd /Users/cfmx/Desktop

    2. Set the CLASSPATH environment variable so that Java can find the
    cfmx_updater.jar. Enter:

    setenv CLASSPATH cfmx_updater.jar

    3. Launch the updater program. Enter:

    java install

    Once either updater program is launched, A GUI Installer starts and you
    answer a few questions to install the update.

    Anyway, thanks to Damon and Brent for putting together this
    experimental package. It makes updating CFMX on Mac OS X a breeze.

    A VSO (Virtual Standing Ovation) to Damon and Brent!

    Dick

  • yellow dog linux
    2002-09-04 09:08:23  btickle [View]

    I am curious to do a comparison between OSX and YDL running CFMX. But I can't hack the install script to get cfmx to run. Is it possible?
    • yellow dog linux
      2002-09-04 12:44:12  dicklacara [View]

      You may not be successful getting CFMX to run on YDL.

      Here's what happens in a normal Linux/Unix install on Intel/Solaris:

      1) CFMX is Installed (mostly Java, some Platform-specific C++ code
      2) JRun is Installed (mostly Java, some Platform-specific C++ code
      3) A Platform Specific JVM/JRE is installed

      None of the platform specific code will run on a Mac.

      With Mac OS X, we use the installed Mac JVM/JRE instead of the one installed by CFMX

      We avoid the C++ modules by limiting what we can do (Verity, Apache interface, etc)

      We hack a shell script to reflect the above.

      We heed to place copies of some things where Mac's Java can find them.

      So, I don't think you can use the JVM/JRE installed by CFMX

      I don't know what YDL provides in the way of a JVM/JRE (if any) and whether it meets the requirements of CFMX -- not very likely, because the reason that CFMX installs a JVM/JRE is because it can't count on whats available on any of the supported platforms.

      You would have to visit the CF Docs at the Macromedia site to see if you can determine what JVM/JRE is needed, and then see if you could find the appropriate system for YDL on the Mac.

      Once that is done, then you would need to hack the CFMX-supplied startup shell script /opt/coldfusionmx/bin/coldfusion to do the equivalent of what we did with the /opt/coldfusionmx/bin/coldfusionosx shell script.

      You might need to examine /opt/coldfusionmx/runtime/bin/jvm.config for more hints of what needs to be done.

      Then you probably need to copy everything we put in /Library/Java/Extensions to a place where the YDL JVM/JRE can find it.

      Other than that I have no Ideas,.

      But if you are just looking to benchmark CFMX on Mac OS X vs CFMX on Mac YDL, maybe you can save you some effort.

      No formal tests, mind you, but CFMX OS X (with no special tuning options set) running on my 800MHz, G4 TiBook with 512 Meg RAM, 40Gig Hard drive consistently outperformed Faster Intel CPUs with more RAD, etc. running RH 7.x according to a recent thread ON CF-Talk. I don't know what other applications the others were running, but I had Apache, CFMX Default Web Server, BBEdit, Mail, Sherlock Browsers, -- all the stuff I normally run.

      I would suspect that OS X Unix is far better tuned for the Mac hardware than YDL.

      HTH

      Dick
      • yellow dog linux
        2002-09-05 00:06:22  btickle [View]

        Hmm. Sounds like a lot of hard work just to discover it doesn't run as fast as what I've already got. My OSX installation is running so well in fact I'm tempted to put a full blown version on a server machine and see how it handles it. Now if only I had an Xserve ...
        • yellow dog linux
          2002-09-05 00:53:29  dicklacara [View]

          Unfortunately, you can't interface CFMX on Mac OS X with a full-blown web server such as Apache -- you are limited to the Macromrdia-provided Default web server. This is not suitable for production.

          Also the Developer version of CFMX will only accept requests from clients on localhoes and 1 external IP address -- so you can't use it in production.

          As to performance on Mac OS X, I think you are right to assume that CFMX runs faster on OS X than on YDL.

          Below is some more information that will nhelp reinforce that assumption.

          Dick

          Mac OS X provides a highly-optimized, tightly integrated implementation of Java 2 Standard Edition 1.3, including the client version of the HotSpot virtual machine. As the only high-volume desktop operating system to ship with Java 2, Mac OS X is emerging as the best place to develop and deploy your Java applications.
          Cool, Refreshing Graphics
          Java has never looked this good. All Java applications use Aqua, the amazing liquid look and feel native to Mac OS X. Windows are double-buffered for faster refresh, and support live-resizing and dragging. All drawing is done using Quartz, the Mac OS X PDF-based imaging model, providing amazingly crisp anti-aliased text and better performance for complex drawing operations.
          Blazingly Fast Threading
          In Mac OS X, Java threads are implemented directly on top of native Mach threads, allowing efficient scheduling using true preemptive multitasking. This also allows threaded applications to automatically use multiple CPUs, for blazingly fast performance.
  • problems creating, uncompressing tarball
    2002-09-03 22:36:59  nicko5 [View]

    Thank you so much for the article.

    I'm having some difficulty on my installation, basing mine on comments from these discussion boards. I've done a clean install of RHL 7.3 on a separate machine, and installed CFMX there. I've created the tarball, and transfered it in several ways to my OS X machine -- once thru an intermediary FTP server (separate offices) and once through a laptop. (in both cases we FTPed the file to an IIS5 ftp on W2k).

    I'm getting errors at OS X installation, such as "gnutar: Child died with signal 11" or "gnutar: error exist delayed from previous errors." Once, it made it through (some large portion), but then died.

    Suggestions? I'm going to try reinstalling on the linux box, with the assumption the install went bad. is it alright to move the cfmxinst.bin file across various (MS) filesystems?

    Nick
    • problems creating, uncompressing tarball
      2002-09-04 06:05:13  dicklacara [View]

      Nick

      Couple of things:

      1) This may not be related, but CFMX has some problems with RH 7.3. I don't know if they are install or runtime problems. I know it works with RH 7.2, so if you have that, you can avoid potential problems.

      2) If you have a separate machine and the necessary hardware/software (network, IP connection, etc). you can use either NFS or FTP to transfer between the Linux box and the Mac. You don't really need to compress/decompress the files -- it just makes the transfer faster and cleaner for the dropbox technique I used in the article. The important thing is to replicate the Linux directory tree on the OS X system.

      3) I always got the "gnutar: error exist delayed from previous errors." error message. I originally had an image of the Terminal window (with the error) in the article -- when I deleted it, I should have mentioned the error.

      I just did a gnutar (Jaguar) and here are the bottom lines:



      opt/coldfusionmx/runtime/pointbase/tools/server/server_console.lax
      opt/coldfusionmx/runtime/pointbase/tools/server/start_server.ico
      opt/coldfusionmx/runtime/pointbase/tools/server/start_server.lax
      opt/coldfusionmx/runtime/pointbase/tools/server/URLs.dat
      opt/coldfusionmx/runtime/pointbase/URLs.dat
      opt/coldfusionmx/runtime/pointbase/worldmusicdb
      opt/coldfusionmx/runtime/readme.htm
      opt/coldfusionmx/runtime/relnotes.htm
      opt/coldfusionmx/runtime/logs/
      opt/coldfusionmx/CustomTags/
      opt/coldfusionmx/verity/
      opt/coldfusionmx/verity/collections/
      gnutar: Error exit delayed from previous errors
      [TiBook:/volumes/FireWire 160 GB] cfmx%



      Hope this helps

      Dick
  • missing PC DOS Boot Disk
    2002-08-28 13:51:33  dadoonan [View]

    My install of VPC 5.0 does not have a PC DOS Boot Disk.

    I have the install CD for VPC 4.0 and the Upgrade CD for VPC 5.0 neither has an individual file called "PC DOS Boot Disk".

    How do I go about finding / creating such a file?

    Thanks,
    David
    • missing PC DOS Boot Disk
      2002-08-29 03:23:16  dadoonan [View]

      Dick,

      Rather than fumble around trying to find/create the needed boot disk, is there any reason why I can't just use the version of VPC win98 that I currently own, and just restart it into DOS?

      david
    • missing PC DOS Boot Disk
      2002-08-28 18:30:23  dicklacara [View]

      I was unaware of the fact that a PC DOS Boot Disk image was not included with every version of VPC-- it depends on the version (for which OS) you order.

      This is explained in the "Installing Other OSes Read Me" file in the "Installing Other OSes" folder.

      I don't know it the readme file is included with all versions.

      I tried, but am unable to access the connectix web site to see if the file is available there.

      If you can't get a DOS boot disk image as described in the above readme file, contact me directly and I will try to help.

      Dick



      • missing PC DOS Boot Disk
        2002-08-29 02:53:28  dadoonan [View]

        I've found a couple different boot images. While they allow me to boot from them, they are boot disks only, they do not create the prompt to copy files to C: as described on Page 4 of the above instructions.

        There is a boot image provided with the WIN98 version of VPC I have, but it is a WIN 98 boot disk not a PC-DOS boot disk. Like the boot images I downloaded, it does not create the prompt to copy files to C:.

        I also poked around the connectix site and could not find the PC-DOS disk image available for download.

        Can I boot into DOS in VPC and create my own boot disk? I've read through "DOS for Dumimies" and can't find any instructions for doing so?

        Or do I need to shell additional money to buy VPC for DOS?


        Thanks,
        David
        david@mohilldesign.com
  • Alert! invisible opt folder resolved (Jaguar)
    2002-08-24 14:49:05  dicklacara [View]

    Upgrading to Jaguar causes the /opt folder to be invisible to the Finder -- It is still intact, you just can't see it from the desktop.

    To make it visible again, do the following:

    Open a Terminal window.

    Assume the root ID by entering:

    su root

    Enter your (Mac OS X) Administrative password when asked

    Change to the root file level:

    cd /

    Edit the .hidden file with pico by entering (note the dot before the file name):

    pico .hidden

    with the arrows, navigate down and delete the line containing:

    opt

    save the updated file by entering:

    Control-o

    followed by:

    Return

    Exit pico by entering:

    Control-x

    Reassume the cfmx user ID by entering:

    su cfmx

    From the Apple menu select Force Quit... (or press Command+Option+Escape).

    Select the Finder and click Relaunch

    When the finder is relaunched, you should see the opt folder on Macintosh HD, just as it was before installing Jaguar.

    Dick
  • Alert! Jaguar install makes /opt invisible
    2002-08-24 05:02:33  dicklacara [View]

    The Jaguar install, for some reason, makes the /opt folder invisible in the Finder.

    It is still intact, accessable in the Terminal window, and can be accessed by BBEdit.

    It just doesn't show up on the Macintosh HD in the Finder.

    Don't panic!

    I was able to start coldfusion fine with:

    /opt/coldfusionmx/bin/coldfusionosx start

    I am investigating, and will post more info as it becomes available.

    Dick
  • WARNING!! OS 10.2 Install Deletes 'opt'
    2002-08-23 16:45:48  getburl [View]

    I just installed the OS 10.2 update and tried everything I could to protect the 'opt' folder but the install still deleted it. What a horrible set back.
    • WARNING!! OS 10.2 Install Deletes 'opt'
      2002-08-23 23:57:32  dicklacara [View]

      Do you still have the cfmxinst.bin file in your /Users/cfmx/Public/Drop Box folder?

      If not, do you still have it in your VPC Dropbox?

      If not, Do you still have the Linux VPC Machine with /opt/colddfusionmx?

      There are several natural fallback spots to recover from.

      Dick
      • WARNING!! OS 10.2 Install Deletes 'opt'
        2002-08-27 21:41:17  getburl [View]

        Yes, pure panic. You were right, it is all there.
  • password problems
    2002-08-23 10:13:05  jwhanson [View]

    Well it seems as if everything is working fine with the install of CFMX on OSX and then when I finally get to the point where I get to log on my password doesn't work. I'm sure I'm typing the right password that I used during the linux install. I've even tried reinstalling in linux with a different password and I still can't log onto the CFMX once it's installed on OSX. I feel like I've followed each step with precision any ideas what the problem might be or how to get around it.

    I've also tried running CFMX on the virtual pc to see if the login is working at that point but I can't get to the page because it times out before I get there.

    thanks,
    Jeff
    • password problems
      2002-08-23 10:49:46  dicklacara [View]

      You need to use the password that you specified during the CFMX install on Linux, rather than the password you specified for the cfmx user you defined when you installed Linux.

      Specifically the password you entered in:

      Page 8
      Install ColdFusion MX on Red Hat Linux
      Step 12

      Dick
      • password problems
        2002-08-23 11:11:05  jwhanson [View]

        I'm using the password that I typed into the CFMX install. That is why I'm clueless as to what the problem might be.
        • password problems
          2002-08-23 12:25:06  dicklacara [View]

          I posed the question to the CF-Talk list and got the following URL:

          http://www.houseoffusion.com/cf_lists/index.cfm?method=messages&threadid=12847&forumid=4#67340

          The procedure specifies a windows directory structure:

          c:\Program Files\ColdFusionMX\lib\neo-security.xml

          The equivalent for our installation is:

          /opt/coldfusionmx/lib/neo-security.xml

          This will turn Administrator security off & allow you access to the Administrator (after restarting CFMX).

          Once in the Administrator, use the "Security Settings" to enable Administrator Security checking and enter a New password.

          That CF-Talk list is really great!

          Dick
  • Does CFMX end up in user CFMX/Public/Drop Box?
    2002-08-22 15:22:35  loganwatts [View]

    When everything is said and done are the 'CF developer server trial' files in the /Public/Drop Box directory on the CFMX user? What is 'opt'?

    Thanks a bunch,
    Logan
    • Does CFMX end up in user CFMX/Public/Drop Box?
      2002-08-22 18:18:38  dicklacara [View]

      If you followed the procedure, the:

      /Users/cfmx/Public/Drop Box

      contains the Trial download and the compressed archive containing the entire Linux installation (hundreds of directories and files)

      You can see for yourself by going there in the Finder or entering the following into a Terminal window:

      ls -l /Users/cfmx/Public/Drop\ Box

      (the backslash escapes the blank character, so the path name will be correctly interpreted)

      Now, when we expand this archive (at the root file level), it automatically creates a mirror image of the directory structure we created when we installed on linux -- it was installed in /opt.

      /opt is a directory that typically is used to hold system-type software that is not part of the Unix distribution

      Apple uses /Applications in a similar manner to hold Application programs that are available to any user who logs on the system

      CFMX is not aware of the OS X tie-in between programs in /Applications and user files (created by the programs) stored in the users Documents directory.

      I chose to follow the convention used by CFMX on Linux.

      Dick





      • Does CFMX end up in user CFMX/Public/Drop Box?
        2002-08-23 06:24:47  loganwatts [View]

        Thanks...Sorry, I am new to server software structure. So, if you wanted to delete the CFMX files would you just navigate the finder to:

        /Users/cfmx/Public/Drop Box

        and delete all of these files? What about the mirror in the 'root file level'?

        Thanks,
        Logan
        • Does CFMX end up in user CFMX/Public/Drop Box?
          2002-08-23 07:25:00  dicklacara [View]

          Again, if you followed directions, there should be only 2 files in /Users/cfmx/Public/Drop Box:

          cfmxdnld.bin 115 MB
          cfmxinst.bin 100 MB

          These are the compressed files. You can delete them , once you have a successful install (see below).

          If you have hundreds of subdirectories and files in /Users/cfmx/Public/Drop Box, then you made a mistake in the install procedure -- you decompressed the cfmxinst.bin file to the wrong place. (pretty easy to fix)

          Delete the folder labeled opt within /Users/cfmx/Public/Drop Box.

          Resume the installation procedure at Page 10, Install ColdFusion MX on Mac OS X.

          Take care to do step 3 -- this will cause the opt folder to be created at the root file level (your hard disk) rather than within /Users/cfmx/Public/Drop Box.

          If you still have problems, email me directly!

          Dick
  • Why the need to install CFMX on a separate user?
    2002-08-22 14:20:22  ndoshi [View]

    This may seem like a stupid question but why do you need to install CFMX to a separate user on OSX?
    • Why the need to install CFMX on a separate user?
      2002-08-22 17:56:21  dicklacara [View]

      Not stupid, a good question.

      No, you actually don't need to install CFMX on a separate user.

      But it is a good practice -- the same way that the MySQL and PostgreSQL databases require separate users -- to isolate them from other users.

      If you recall the Linux install, we installed CFMX as the root user but the install sets ownership and permissions for a named user -- we chose cfmx.

      When you start CFMX on Linux the shell script temporarily assumes the id of cfmx, starts the CFMX system, then reverts to the original userid.

      This is similar to the way OS X installs software updates while you are logged in as a regular user,

      I chose to mimic the way that the Linux install works for the following reasons:

      1) It's good practice and reasonably safe

      2) It is easier to do the port (no changing ownership and groups).

      3) I hope that CFMX will one day be available for OS X -- if/when it is, it will likely be set up this way.

      4) it's never too soon to "do it right"

      Dick
  • Will this port affect Apache and PHP?
    2002-08-22 12:08:21  npetersen [View]

    I am a CF developer by day and have been developing in PHP on the side in OSX. I wanted to know if this port of CFMX and its built-in web server will have any affect on Apache and PHP?

    By the way - great article, I have been hoping for CF on OSX for a long time now.
    • Will this port affect Apache and PHP?
      2002-08-22 17:41:19  dicklacara [View]

      The CFMX web server has no effect on Apache and vise versa -- the two can co-exist quite nicely!

      Dick
  • CFMX on Jaguar - Confirmed
    2002-08-22 10:34:31  lanej0 [View]

    I managed to get my hands on a copy of Jaguar through the purchase of an eMac (crazy Apple). At any rate, I had installed CFMX on my PowerBook under 10.1.5 and I've now upgraded to Jaguar. Works just fine (CFMX that is, Jaguar I have a bone to pick...). I can post a screen shot of the CF Admin, but why don't you all just save me some time and take my word for it.

    Thanks for this article Dick. You're my new hero.
    • CFMX on Jaguar - Confirmed
      2002-08-22 10:46:53  dicklacara [View]

      Great to know that!

      I have Jaguar on order -- I tried to get a beta and/or a journalist loaner from Apple to validate the port-- no luck!

      I guess CFMX is one more reason to upgrade to Jaguar!

      Dick

  • can the package be made available?
    2002-08-22 09:31:59  arieltlmermaid [View]

    I'm thrilled to find this article... thanks to Dick and to O'Reilly!

    My question:
    Is there a way for someone who's gone thru this process to just capture the 'package' that gets moved to the mac and save a bunch of labor (mine grin) or does one have to go thru all these steps on their own? What are the issues?

    I've just really begun to scratch the surface with CF at the office (on a W2k box (YUCK!))... tho I'm already building some apps that are blowing away my co-workers! And we have some kind of agreement so that we're allowed to have a copy of the software to use at home - so I don't think I'd be breaking any licensing issues.

    I LOVE this tool and would love to be able to do the same things on my iMac 800 at home.

    One of the things I want to start doing is using these concepts i'm learning at the office to do custom web development outside the office. I need CF on the Mac to do that!

    Any ideas?

    Thanks!
    • can the package be made available?
      2002-08-22 10:53:49  dicklacara [View]

      I was told by Macromedia people that distributing the port is a violation of the license agreement.

      There was a recent thread on CF-Talk* about this with the suggestion that people enter their requests to:

      http://www.macromedia.com/support/email/wishform/

      Macromedia is listening & these requests do have an impact.

      Dick

      * CF-Talk is the premire resource for CF deveopers. This and other valuable resources are available (free) at:

      http://www.houseoffusion.com/

      • can the package be made available?
        2002-08-23 10:23:28  arieltlmermaid [View]

        Thanks for the feedback. I was afraid there'd be some kind of issue like that preventing the sharing of the 'port'... bummer!

        I also appreciate the link to the CF-Talk* newsletter... we actually have a similar service here at my office and it has the same name.

        I also did as suggested and went to the macromedia site and gave them my request for OS X support.

        Wonderful help!

        Thanks Dick

        Mitch
  • Excellent Work!
    2002-08-17 19:11:40  sfisherii [View]

    This is really cool. Until I found this article I was on the verge of doing something I vowed I would never do again once I purcheased my mac a couple years ago, and that is buy a PC, just so I could run CFMX.

    Everything worked perfectly except, the opt folder that was created was locked. Even logged in as administrator I wasn't able to access the folder. I rebooted in OS9 so that I could add the shell script to the bin folder. But then I thought that if I have to chmod this shell script then I can chmod the folders. After rebooting in OSX, using the terminal window as root, I was able to chmod the bin folder as well as the wwwroot folder. everything works like a champ now.

    I don't know if this locking of the folders is supposed to happen or not. It surprised me because you didn't mention anything like this happening in the article. And I don't know if it has anything to do with me using the demo version of Open Base or just maybe I missed something else along the way. Thanks again and I can't wait for some more great articles if the future.
    • Excellent Work!
      2002-08-18 18:16:02  dicklacara [View]

      Glad to help you avoid buying a PC! -- Excellent Work!

      If you followed the instructions, the /opt folder was originally created by the Linux root user. Then the CFMX install created the coldfusionmx folder tree acting as the cfmx user.

      The tar-gnutar process retains the ownership and privileges of the original directory tree.

      So, I don't know how the opt folder got locked -- but you resolved it.

      AFAIK, the Demo version of open base does not use the /opt folder.

      One thing that could have caused problems is this:

      In both the Linux and Mac OS X installs, there are several places where you are told to assume the identity of the root user with a su root command. Shortly after you are told to reassume the identity of the cfmx user with a su cfmx command.

      It is very important that you not run as the root user unless you need to -- and then reassume a non-root user identity ASAP.

      If you don't, bad things can/will happen.

      I should have emphasized this in the article!

      Dick
  • ColdFusion MX on Mac OS X
    2002-08-15 15:48:17  ghank@lawlead.com [View]

    Let me see if I go this straight. There are 2 things
    preventing someone from using ColdfusionMX in MacOSX:
    1. The instalation binary is for X86 based Linux
    2. The ColdFusion MX startup script is written in C for and X86 linux box, however someone has kindly made one for MacOSX

    So basically what is prevent Macromedia from making a MacOSX version is making a new installer! What are they (Macromedia) waiting for? This seems like a very small bit of work for gaining several more users and perhaps several more paid licensees. Am I missing something here?
    • ColdFusion MX on Mac OS X
      2002-08-15 18:39:49  dicklacara [View]


      Technically, it is a little bit more involved than what you describe, but essentially you are correct.

      Here is part of an answer that I posted to a prior post, which applies to your questions:

      MacroMedia releasing a CFMX product for Mac OS X:

      MM people will tell you that it is a simple matter to make CFMX work on Mac OS X. That, in itself, does not justify them releasing and supporting a product. They need to make a profit and a return on their investment of resources. MM does not make any money on the Developer version -- it's free. They make their money selling CFMX for installation on production Web servers.

      By most measures, Apple is a late entry into the general-purpose Web Server market -- there is not a large install base of Mac Servers that MM Marketing can target.

      That said, there is a lot of interest in CFMX on Mac OS X -- inside and outside of MM.

      I, for one, believe that a business case can be made to release a supported Developer version for OS X. The theory being that it would attract new CF Developers, and that New CF Developers will drive the sales of CF Server software (regardless of the fact that they are developing on OS X and deploying on some other platform).

      My opinion is that a offering free Developer version for Mac OS X, is a relatively inexpensive way for MM, to gage the market interest and potential -- small interest, little lost -- great interest -- maybe there is an opportunity that needs to be addressed.

      I hope you enjoy the port!

      Dick
  • Creating a new schema or new tables on Pointbase DB
    2002-08-14 22:38:17  roman_rm [View]

    I was wondering if there was in the Coldfusion administrator a tool for creating databases (like cfsnippets) or at least tables in Pointbase. I suppose it is possible to write ColdFusion code to create tables and populate them with the initial data, but I was wondering if there was a tool somewhere in the administrative interface where you could run SQL commands to do this (I looked around but couldn't find one).

    Does anyone know?

    Roman/
    • Creating a new schema or new tables on Pointbase DB
      2002-08-15 03:01:56  btickle [View]

      Sorry I don't think there is. I use two tools for creating databases, tables and perfoming sql requests on Mac. The first is webmin. This is an invaluable tool for general service administration and for locally hosted mysql databases. Go to www.webmin.com
      Table creation and sql code writing I use MacSQL 2.2.3 from runtime labs (www.rtlabs.com). I can then cut and paste the code from MacSQL straight into my coldfusion queries; it works very well indeed.