Cfcompile for MAC OS X?? Well, it works now.

Posted by Luis Majano
Mar 01, 2006 00:00:00 UTC
I have been recently using the cfcompile utility, but under windows and linux. And since I am a Mac convert now, I have been doing all my development on MAC. However, I found out that the installer does not even place the utility in the bin directory of the CFMX installation.

Basically, cfcompile is not supported on MAC OS X (Am I right here???). So I decided to fool around a bit to see if I could figure out why. Well, basically, I created a new case in the script for the Mac OS "Darwin" and made sure that it would point to the correct places to compile the source into java bytecode.

I am attaching the full script for you to try out. Here is a sample of the case for the -deploy argument:



/bin/sh -c "${Setting: _JAVACMD not found} -cp $CLASSES -Dcoldfusion.classPath=$CFUSION_HOME/lib/updates,$CFUSION_HOME/lib -Dcoldfusion.libPath=$CFUSION_HOME/lib Compiler -deploy -webinf $WEBINF -webroot $webroot -cfroot $CFUSION_HOME -srcdir $srcdir -deploydir $deploydir"


I removed the su, since in Mac OS, the cfmx engine runs under the install user. So there was no need to su to that specific user.

I in no way support this tinkering, do at your own risk. I may be doing it wrong or badly, however, it has worked for me.

I am attaching the for you to download.

Hope you enjoy it.

Oracle XE production release Mini Review

Posted by Luis Majano
Feb 28, 2006 00:00:00 UTC
I just recently installed beta 3 of Oracle Express and was amazed with it. I have been doing Oracle development alongside ColdFusion for about 6 years now. Oracle is not an easy puppy to install and configure, especially under Linux or any Unix flavor. However, in windows, although performance lacking, but installation heaven.

Oracle release the production version of XE on Feb 24 and I should be trying to upgrade to it this week.


Administration Home

Object Browser Home

As for the beta 3 here is my mini-review:

With Oracle Database XE, you can now develop and deploy applications with a powerful, proven, industry-leading infrastructure, and then upgrade when necessary without costly and complex migrations.

Oracle Database XE can be installed on any size host machine with any number of CPUs, but this free version of the world's leading database will store up to 4GB of user data, use up to 1GB of memory, and use one CPU on the host machine.

The installer is pretty straightforward and easy to setup. The only weird thing I experienced was that I was unable to connect to other databases I had setup on my 10g Client install. Since XE replaces the system paths, everything looks at this new Oracle Home. So I basically had to move all my entries on my tnsnames.ora to the one in the XE directory. Simple and logical.

Apart from that little glitch, the database purrs!! I was connected to it through Toad, Coldfusion, DB Solo, and Aqua Data Studio with no problems. The database web tool is extremely intuiative and easy to use.

This database is a great starter database if you haven't messed in the Oracle World. Every feature is there as far as I can see, except well the 4gb of data limitation.

Here is a great blog by Tug, who has created a viewlet that shows you how easy it is to install this wonderful database.


Flash Player 8 Mac OS Gateway bug using Flash Remoting and CFMX 7

Posted by Luis Majano
Feb 16, 2006 00:00:00 UTC
This is a recorded bug that is solved by the CFMX7 cumulative hot fix 2. However, the bug is still active only on MAC OS X standalone flash player or projector.

Thanks to Dave Stanten at Adobe, for sending me the technote and resolving this issue: Tech Note

ColdFusion MX 7 Gateway Connection URL

If you are using Flash Remoting to access ColdFusion code, you may run into an issue where ColdFusion constructs an invalid URL when appending a jsessionid. If this occurs, the web server that is accessing your code could throw errors. The solution is to simply add a question mark (?) to the end of the gateway URL. Change /flashservices/gateway to /flashservices/gateway?. This ensures that the URL is created correctly.

I only had this problem with flash player 8 and 7 for the MAC, but standalone only. If I used the flash player plugin within a browser I was ok or if I used any form of the flash player on Windows.

Also, the tricky part is that the Coldfusion logs report the following, which is due to the malformed URL's:

[Flash Remoting MX]->Request received was not Flash-based (not of the binary AMF protocol)

So lookout for this tricky bug if you come upon it. A single character can make a difference. :)

Happy Remoting!!!

Could not resolve CFC datatype: Error when viewing a cfc?wsdl

Posted by Luis Majano
Feb 06, 2006 00:00:00 UTC
Here is a little tricky bug on CFMX 7 dealing with web services and our favorite buddies, Coldfusion Mappings. 100% reproducible and I think Macromedia had a fix for 6.1, but not for 7, at least I don't know about it.

Here is what it comes down to. Let's say you have a CFC on your server on the following physical location:


And the apache or IIS web root points to "remotes", thus, to call this webservice wsdl you would use


Now let's say that you have a CFMX mapping to any directory, it actually doesn't matter, but with the name "giftshop".

When you go now to the wsdl URL you get this nasty error:

AXIS error

Sorry, something seems to have gone wrong... here are the details:

Fault - Error attempting to create Java skeleton for CFC web service; nested exception is:

coldfusion.xml.rpc.CFCInvocationException: [coldfusion.xml.rpc.SkeletonClassLoader$UnresolvedCFCDataTypeException : Could not resolve CFC datatype: /giftshop/webProducts.cfc]


faultCode: {}Server.generalException


faultString: Error attempting to create Java skeleton for CFC web service; nested exception is:

coldfusion.xml.rpc.CFCInvocationException: [coldfusion.xml.rpc.SkeletonClassLoader$UnresolvedCFCDataTypeException : Could not resolve CFC datatype: /giftshop/webProducts.cfc]





The problem lies that CFMX confuses the webroot path with the coldfusion mapping, it can't distinguish between them and actually follows the mapping. Once you remove or rename the CFMX mapping, the error disappears and you have a wsdl compilation.

Does anybody now if a fix is on the way? or already out? Please let me know.

WOW!! A Delorean!!

Posted by Luis Majano
Jan 27, 2006 00:00:00 UTC
This post is totally geeky, but anyways, coming to work today I ran by a gas station where a Delorean was parked. WOW!!! Those childhood Back To The Future memories ran wild!!

What an incredible car!! I came directly to work to find some cool pictures and actually they are still selling the car in EBAY!!! and for some good money too. Below is a cool picture of this classic car.

Does anybody want to donate me a Delorean!!!

What's incredible is that they are selling these 1981 cars for about 10 to 12 THOUSAND dollars stil!!

Check this ebay auction out

If anybody feels in the chartity mood, please buy me a Delorean

How to Install Apple's Front Row on my Powerbook

Posted by Luis Majano
Jan 20, 2006 00:00:00 UTC
I just recently got my new powerbook g4 and it rocks. However, now the new ones came out, intel based and I am hitting myself on the head. They include an integrated ichat and specially Front Row with a remote.

Some googling later, I came up with this article from Andrew Escobar on how to enable Front Row for the powerbook. Awesome blog!! I followed the steps and wallah!! Front Row on my powerbook. All I need now is a remote!! Or maybe just trade it in for the MacBook Pros!!

Here is the link:

Click Here

Bye for now.

Mac Tip Of The Day: Scrolling a web page on the powerbook trackpad?

Posted by Luis Majano
Jan 18, 2006 00:00:00 UTC
I am totally amazed day by day by my new apple powerbook. It is an incredible machine. However, when browsing the net without an external mouse, it was really tedious to track to the up/down scroll arrows and click on them, everytime I wanted to scrolll on a site. However, thanks to my geekiness and curiosity, I found out that two finger scrolling is enabled on this incredible machine.

So all you need to do to scroll on a page using your browser or any application by the way,

you just have to place two fingers, any fingers you like, one hand, two hands, whatever, and scroll up or down. Wallah!!!! you got virtual two-finger scrolling. This is truly amazing!!!

Mac Tip Of The Day: Enabling the trackpad tap click

Posted by Luis Majano
Jan 18, 2006 00:00:00 UTC
Thanks to a collegue of mine at work, Tom, he needed help on why the mac's trackpad does not produce a click when you tap it like any other pc. Well, the answer is that the mac does not have this feature enabled by default, neither the draggin using the trackpad.

So in order to enable this feature, you must do the following.

1. Open the System Preferences.

cflogin and the Application.cfc

Posted by Luis Majano
Jan 12, 2006 00:00:00 UTC
I have been fooling around a bit with cflogin for the past day and found an interesting note on it. In order for the cfauthorization to take effect, the cflogin take must be called on every request.

For example I was trying to do a login and implementing the cflogin on a cfc. When I returned to my template, my cfauthorization variable was set on session, but my isAuthUser() was returning blank.

After an hour of basically playing around, I returned the cflogin to the Application.cfc and wallah. The security functions return values. So that's a relief.

So if you want to implement a cflogin security, make sure you are calling the cflogin tag on every request, in order for the security variables to take effect.

Finally Blog CFC 4.0.2!!

Posted by Luis Majano
Jan 08, 2006 00:00:00 UTC
Well, Finally I got some time to update my Blog CFC installation by Raymond Camden to 4.0.2 from my 3.9 install.

I had forgotten how much I had to tweak, with all the layout changes I did. Anyways, Raymond?s code is great and everything is as it should be.

I will be redesigning the whole site soon, but I wanted to get this upgrade out of the way. I am planning on moving the site to my coldfusion framework, TeXtus. Which I will be unveiling in a few weeks.

This will change somehow my blogCFC install, but I am trying to implement it into the site and not a separate app. This way, my site can revolve around many apps, in one single framework.

Anyways, hope you enjoy the upgrade!! And give ray a visit.

bye for now.

Site Updates


Entries Search