Tapestry Training -- From The Source

Let me help you get your team up to speed in Tapestry ... fast. Visit howardlewisship.com for details on training, mentoring and support!

Wednesday, November 24, 2004

Paint Shop Pitiful HiveMind Example

I surprised folks at ApacheCon by using a radically different example than what was shown in the printed handouts ... PaintShopPitiful, a very simple SWT application that reads in an image file and can perform some simple manipulations on it. The HiveMind part is all about the seperation between the GUI and the filter objects that do the manipulations, as well as the HiveMind services that connect the two together (creating an SWT Menu in the process).

Anyway, the source code (pitiful as it is) is now up in the downloads section as http://howardlewisship.com/downloads/paint-shop-pitiful.zip.

2 comments:

Ben Galbraith said...

Man, Howard, making this comment has not been easy.

First, I download your sample code and try to compile it. Turns out it statically references Hivemind (big surprise there). So I download Hivemind 1.0 and am able to compile the app. But, running it fails complaining about a dependency on commons-logging. So I d/l it and slap it into my CP. Next up: ORO. I get that installed.

But the final error I am not able to overcome:
Exception in thread "main" org.apache.hivemind.ApplicationRuntimeException: Unable to construct service hivemind.ClassFactory: Failure invoking constructor for class org.apache.hivemind.service.impl.ClassFactoryImpl: java.lang.reflect.InvocationTargetException

Hmm... what am I doing wrong? (Apologies if this is something HiveMind's Fine Manual explains).

I could have emailed you, but for benefit of others decided to comment. Blogger required me to create my own Blog in order to leave a comment. Wow, that's the most obtuse comment-security system I've seen in a while.

Best,

Ben

Howard said...

Sorry for all the trouble; if this was a polished example it would download and build everything automatically. I think this is coded against a snapshot of HiveMind 1.1 alpha, which would be the source of your issues.