I am using SDL tridion object caching with ApacheMQ. I have deployed apachemq as a window service and it is running fine. During invalidation of messages I am getting the error below
2017-01-19 14:17:24,553 ERROR JMSCacheChannelConnector - JMS Exception occurred during reception of event. Attempting setting up JMS connectivity again
javax.jms.JMSException: Failed to build body from content. Serializable class not available to broker. Reason: java.lang.ClassNotFoundException: Forbidden class com.tridion.cache.CacheEvent! This class is not trusted to be serialized as ObjectMessage payload. Please take a look at http://activemq.apache.org/objectmessage.html for more information on how to configure trusted classes.
at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:36) ~[activemq-client-5.14.3.jar:5.14.3]
at org.apache.activemq.command.ActiveMQObjectMessage.getObject(ActiveMQObjectMessage.java:208) ~[activemq-client-5.14.3.jar:5.14.3]
at com.tridion.cache.JMSCacheChannelConnector.handleJmsMessage(JMSCacheChannelConnector.java:213) ~[cd_cache.jar:na]
at com.tridion.cache.JMSCacheChannelConnector$2.onMessage(JMSCacheChannelConnector.java:84) [cd_cache.jar:na]
at org.apache.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer.java:1401) [activemq-client-5.14.3.jar:5.14.3]
at org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor.java:131) [activemq-client-5.14.3.jar:5.14.3]
at org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.java:202) [activemq-client-5.14.3.jar:5.14.3]
at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:133) [activemq-client-5.14.3.jar:5.14.3]
at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:48) [activemq-client-5.14.3.jar:5.14.3]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.7.0_80]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.7.0_80]
at java.lang.Thread.run(Unknown Source) [na:1.7.0_80]
As per apachemq documentation "http://activemq.apache.org/objectmessage.html" I need to explicitly add the package to trusted list but i am not sure where I am suppose to add this entry in deployer.