shutdown « Exception « Spring Q&A

1. ActiveMQ embedded broker, exception in shutdown hook

I get the following error on shutdown, using an embedded broker:

Exception in thread "ActiveMQ ShutdownHook" java.lang.NoClassDefFoundError: org/apache/activemq/broker/BrokerService
Have I misconfigured something possibly? I used the config spelled out on the activemq page ...

2. Clean Shutdown due to exception...

Clean Shutdown due to exception... Hi *, I have the JDK5 special exceptionHandler which forces a shutdown when a given exception is thrown: Code: