javaactivemq-classicspring-jms

Activemq unable to send JMS message due to NoClassDefFoundError


I am having problems with my activemq application. After starting it if I send a dummy JMS message to queue it throws below error:

org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter

I have added javax.xml.bind dependency too, but no luck


Solution

  • After a lot of trial & error, i found that my env variable was set to jdk 11 which doesn't support javax/xml/bind , i switched it to jdk8 ( organization std ) and it worked.