I'm trying to use the TomEE internal ActiveMQ, but this error crashes:
Failed to build body from content. Serializable class not available to broker. Reason: java.lang.ClassNotFoundException: Forbidden class ru.path.dto! 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.
I changed the TomEE settings, but it didn't help:
tomee.serialization.class.blacklist = -
tomee.serialization.class.whitelist =
What am I missing?
The message for the failure states (in part):
Please take a look at http://activemq.apache.org/objectmessage.html for more information on how to configure trusted classes.
The cited documentation indicates that the org.apache.activemq.SERIALIZABLE_PACKAGES
system property should be set. I see no evidence that you're actually setting this system property.
The settings you're using are for the Ejbd Transport. This is not valid for the embedded instance of ActiveMQ.
Try this instead:
-Dorg.apache.activemq.SERIALIZABLE_PACKAGES=ru.path.dto