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.



  • 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
  • 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
  • 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
  • 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
  • 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.
  • 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!
  • 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
  • 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
  • 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
  • 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>
    • 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>
    • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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.
  • 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
  • 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.
  • 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
  • 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
  • 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.
  • 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
  • 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
  • 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

  • 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 webserver [ot] (double post)
      2002-11-25 18:52:02  dicklacara [View]

    • 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.
  • 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
  • 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
  • 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

  • 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

  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
      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
    • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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 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-01-08 09:44:44  dicklacara [View]

      See my next post:

      How to get a CFMX production version on the Mac

      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

    • 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-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 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
  • 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
  • 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.
  • 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
  • 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
  • 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:02:44  dicklacara [View]

      See other post!
    • 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




  • [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
  • 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"!
  • 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-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.
      • 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
  • 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.

  • 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: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
    • 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
  • 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
      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
    • 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.
  • 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
    • 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
    • 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.
    • 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-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-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-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!
  • 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