From 8646bb1010d2632f5d405fe1761c2b9c99a0a139 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Tue, 8 Aug 2017 20:55:44 +0200 Subject: [PATCH] [AMQ-6788] Explain how to fix the problem in the exception --- .../src/main/java/org/apache/activemq/broker/BrokerService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java b/activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java index c177b76454..f9cd50fe06 100644 --- a/activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java +++ b/activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java @@ -1787,6 +1787,8 @@ public class BrokerService implements Service { this.tempDataStore = (PListStore) getClass().getClassLoader().loadClass(clazz).newInstance(); this.tempDataStore.setDirectory(getTmpDataDirectory()); configureService(tempDataStore); + } catch (ClassNotFoundException e) { + throw new RuntimeException("Kahadb class PListStoreImpl not found. Add activemq-kahadb jar or set persistent to false on BrokerService.", e); } catch (Exception e) { throw new RuntimeException(e); }