You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by offbyone <ry...@iridiumsuite.com> on 2012/08/21 23:33:08 UTC

5.7 problem java.lang.NoClassDefFoundError: org/slf4j/helpers/NOPMakerAdapter

When trying to start a broker I get this error on brokerService.start():

BrokerService brokerService = new BrokerService();
brokerService.setPersistent(false); //Simpler for testing
brokerService.setSupportFailOver(false);
brokerService.addConnector("tcp://127.0.0.1:61616");
brokerService.start();


Exception in thread "main" java.lang.NoClassDefFoundError:
org/slf4j/helpers/NOPMakerAdapter
	at org.slf4j.impl.StaticMDCBinder.getMDCA(StaticMDCBinder.java:52)
	at org.slf4j.MDC.<clinit>(MDC.java:74)
	at org.apache.activemq.broker.BrokerService.start(BrokerService.java:513)



--
View this message in context: http://activemq.2283324.n4.nabble.com/5-7-problem-java-lang-NoClassDefFoundError-org-slf4j-helpers-NOPMakerAdapter-tp4655399.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: 5.7 problem java.lang.NoClassDefFoundError: org/slf4j/helpers/NOPMakerAdapter

Posted by Chris Pratt <th...@gmail.com>.
You appear to be missing the required slf4j-api-1.6.4.jar dependency.
  (*Chris*)

On Tue, Aug 21, 2012 at 2:33 PM, offbyone <ry...@iridiumsuite.com> wrote:

> When trying to start a broker I get this error on brokerService.start():
>
> BrokerService brokerService = new BrokerService();
> brokerService.setPersistent(false); //Simpler for testing
> brokerService.setSupportFailOver(false);
> brokerService.addConnector("tcp://127.0.0.1:61616");
> brokerService.start();
>
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/slf4j/helpers/NOPMakerAdapter
>         at org.slf4j.impl.StaticMDCBinder.getMDCA(StaticMDCBinder.java:52)
>         at org.slf4j.MDC.<clinit>(MDC.java:74)
>         at
> org.apache.activemq.broker.BrokerService.start(BrokerService.java:513)
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/5-7-problem-java-lang-NoClassDefFoundError-org-slf4j-helpers-NOPMakerAdapter-tp4655399.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>