When running unit tests with activemq, are you running into error "Failed to start ActiveMQ JMS Message Broker". What could be wrong?
Sometimes when running junit tests with activemq you might run into below error: org.apache.activemq.broker.BrokerService: Failed to start ActiveMQ JMS Message Broker. Reason: java.io.EOFException: Chunk stream does not exist at page: 0 java.io.EOFException: Chunk stream does not exist at page: 0



org.apache.activemq.broker.BrokerService: Failed to start ActiveMQ JMS Message Broker. Reason: java.io.EOFException: Chunk stream does not exist at page: 0 Above error is thrown when a previous build didn't terminate properly or didn't clean up properly. You will have to check for any temporary folders or dangling java processes. To check for any running java process that has not terminated properly and kill those you can use ps -ef | grep java on unix and the process explorer on windows. Once the java process is terminated, search for a folder named "activemq-data" in your build or target folder. Delete the "activemq-data" folder. Then restart the build again and the issue should go away. but may not find anything wrong. If you look carefully through the server side logs you might find below error:

Good luck.