I think Macromedia’s server products are great. And if I as an
individual had money growing out my … then I cant see any reason why
I woudnt throw all my money at them and have lots of cool toys.
But unfortunatly that is not the case for me. I have the
non-comercial license for flex, and I have built a few demo apps and
widgets. But as my server is a shared host, I dont have any
public facing server that I can put that one that wouldnt violate my
non-comercial use license. At least thats the way it plays out in
my head while i am trying to stay on the legal side of the fence.
So as an alternative I decided that I wanted to demo the new OpenLaszlo 3.0
server product. Seems like a simple enough task right? So I
grab down the war file from the openlaszlo site and I create a new
instance in jrun. Fire up the instance and try to deploy, but it
hangs. Lost of little indescript errors that mean nothing to
me. Thats Ok, doesnt really bother me. All of the
documentation on the site has them running the demos on tomcat. I
have had tomcat installed in the past, so no biggie there. But I
see they have a packaged installer for OSX. Sounds great
right? So i pull that down and run the installer. All seems
well. I hit the CLI and try to fire it up. Big nasty error
and a segmentation fault. Huh? Ok Now What?. Well
thats enough for today I decided and went back to start up my cfmx
instance running on jrun. Segmentation Fault. Yep thats
right. Jrun hosed too. By as best as I can tell a bunked up
OpenLaszlo installer.
Feeling a little discouraged, I hit the IM list to see if anyone else
had tried to run it. I got a couple "Why would you" and "Ha, you
sucker" type comments. But Rob Rohan visited with me for a bit,
and althouh he hasnt run openlaszlo shared with me that he
usually runs Jetty for these things.
I thought that didnt sound so bad so I grabbed the jetty zip, and
deployed on my G5. Still a segmentation fault when firing it
up. But that is not going to deter me now. I am
commited. So I transfer the Jetty zip file and my laszlo.war file
over to my powerbook. Unzip. Stash the .war file in the
appropriate directory. run the start.sh script. all looking
good so far… I fire up firefox and hit port 8080 (deafualt for
jetty but easy to change) and bang. I have laszlo running.
Kicked through the demos made a quick app. all worked
fine. Happy Sim! Then it was time to work again.
I was very happy with how easily Jetty just dropped in and ran.
Now its not to say that Jrun or Tomcat are bad products, but it was
very nice to not have to run and installer or worry about server
directories and things. For local testing and demoing java
products I cant think of an easier way than with Jetty.