Installing WorkLight on my PI
Hickmat 100000QA3T Visits (2483)
Well given I'd got the WebSphere Liberty Profile working very easily I thought I'd have a shot at WorkLight. Having checked the Web I can see this has already been done but such is life and my main driver for doing this was to look at creating a mobile application which I could interface with my GPIO driving code and control some Christmas lights (another project I'm working on which I'll document at some point).
So having given myself this challenge I then thought about how best to achieve this. I had recently installed Worklight on a Linux cloud server using the supplied Liberty Profile and based on my experience with installing the Liberty profile on the PI I concluded that I should be able to just lift the code on to the PI. Having decided on the approach I set about moving the files around.
The first challenge I had was that I was doing this work from my Macbook. As I only have a 4GB SD card in my PI I needed to use a USB stick to give me more space BUT this I wanted to format the filesystem on the stick as ext2 which I've so far not managed to get my Macbook to mount :-( So the answer was to stage the Worklight code via another FAT formatted USB stick. The reason for explaining this is so any reader don't think I'm completely mad for adding in extra steps :-)
Right so down to business... Here are the steps I used to move Worklight from my Linux cloud server to my PI
To start up worklight on the Linux server I used the server program under /opt
http://<Raspberry PI IP Addr
So the sever appeared to be working. That said I had seen a number of warning messages but having checked with my reference Liunx install they seemed to be there as well. Based on this I tried to install an application which I had installed on the LInux server. This this I hit a failure in that the install failed with the error:
In addition to the error when I tried to stop the server via server.bin stop worklightServer the Java runtime failed. Based on this I think I have a lower level error to try and resolve. Just now I've not had chance to look at this but if anyone has any thoughts please feel free to share and if I find a solution I'll update this blog.
Ok I think that's about all for now. Hoping to get a post done over the next few days to cover the experiment I did with controlling LED's from my mobile via the PI.
Cheers for now....