Uncategorized
If I could offer you only one tip….
Ladies and Gentlemen of the Flex 2/Coldfusion Remoting Development Community, If I could offer you only one tip for your future, Staring ColdFusion from the command line would be it.
When you start coldfusion from the command line not only does it give you a good idea of what actually happens when CF starts up, but there is a great deal of information that also gets displayed in that little window. When using Flex 2.0 remoting that information can save you from loosing your hair and gaining ulcers.
All of the information that is passed from CF to Flex and from Flex to CF gets output in that screen in a wonderfully easy to digest manner. Including when you pass an object from flex to coldfusion, you can see what exactly is being passed and how cf sees it. Why would this be important? Well what if CF doesnt realize that it needs to turn the data from your User.as file into a User.cfc object? The only error you are going to get in cf is that the argument passed to your function is not of the right type. But you wont know why
So for you windows folks you will mostly likely be running something like this from your command line:
JRun4injrun -start cfusion
or for mac users something like:
/Applications/JRun4/bin/jrun -start cfusion
Both of those assume you are running the multiserver version of CF, and you can exchange the word “cfusion” for whichever cf instance you would like to start up.
I have talked to many developers now that are troubleshooting remoting problems and this is one of the first things I have them do. Quite often it is the only step I have to help them with because once they see the output they often can figure out their woes
Good Luck in your Remoting Adventures!
20 Apr 2006 Simeon

Ditto. It has saved my ass. I usually just start the .bat file in the bin directory of CF… I’m too lazy to drop to dos and type.
Can you also use a different jvm.config using this way?
Kev, I think you would just add -config customjvm.config before the -start option
I run CF in command-line mode all the time on my dev server, it’s such a time saver. On OS X (or any *nix I suppose) you can modify the {cf_root}/bin/coldfusion file to make it start in console mode by altering this line (around line 68):
eval $CFSTART >> $CF_DIR/logs/cfserver.log 2>&1
to read:
eval $CFSTART 2>>$CF_DIR/logs/cfserver.log
This returns control of the shell to you, but will continue to print messages to your tty.
Of course, you could use SeeFusion to get quite a bit of the same info, and then a whole lot more
Shan