You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by Purushothaman <pr...@gmail.com> on 2017/04/26 00:48:38 UTC
NoClassDefFoundError in ActiveMQ 5.14.3
Hi,
I have been trying to integrate a custom security plugin in ActiveMQ to
perform our product specific authentication for JMS connections. I have
placed the plugin as a jar in ACTIVEMQ lib directory. I have also added the
below line within the Broker section in ActiveMQ configuration.
<broker ....>
<plugins>
<bean xmlns="http://www.springframework.org/schema/beans"
id="authenticationPlugin" class="com.activemq.plugin.authenticationPlugin"/>
</plugins>
</broker>
However, the plugin initialization seems to fail consistently with a
NoClassDefFoundError. I confirmed that the class reported in the error is
already part of the jar file. I also, enabled verbose class logging in
activemq and confirmed that the reported class is loaded by class loader.
[Loaded com.messaging.common.rest.RestClient from
file:/opt/amq/lib/javalib-activemq-1.0.1-jar-with-dependencies.jar]
[Loaded java.lang.ExceptionInInitializerError from
/usr/lib/jvm/java-1.8.0-oracle-1.8.0.111-1jpp.4.el7.x86_64/jre/lib/rt.jar]
The ActiveMQ version which we have deployed is 5.14.3
Can someone please help?
Thanks,
--
View this message in context: http://activemq.2283324.n4.nabble.com/NoClassDefFoundError-in-ActiveMQ-5-14-3-tp4725232.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
Re: NoClassDefFoundError in ActiveMQ 5.14.3
Posted by Purushothaman <pr...@gmail.com>.
Found the issue. It was a bug in the code. There was an exception while
initializing one of the static member within the class , which was causing
the error.
--
View this message in context: http://activemq.2283324.n4.nabble.com/NoClassDefFoundError-in-ActiveMQ-5-14-3-tp4725232p4725260.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.