java - Issues with ActiveMQ client: ClassNotFoundException org.apache.logging.log4j.spi.AbstractLoggerAdapter -
i have small activemq client supposed connect amq service, create queue, , send out message. getting following error message:
failed instantiate slf4j loggerfactory reported exception: java.lang.noclassdeffounderror: org/apache/logging/log4j/spi/abstractloggeradapter @ java.lang.classloader.defineclassl(native method) ...
the following jars on classpath
:
log4j-1.2-api-2.6.2.jar log4j-core-2.6.2.jar log4j-slf4j-impl-2.6.2.jar activemq-broker-5.13.3.jar activemq-client-5.13.3.jar activemq-console-5.13.3.jar activemq-jaas-5.13.3.jar activemq-kahadb-store-5.13.3.jar activemq-openwire-legacy-5.13.3.jar activemq-protobuf-1.1.jar activemq-spring-5.13.3.jar activemq-web-5.13.3.jar geronimo-j2ee-management_1.1_spec-1.0.1.jar geronimo-jms_1.1_spec-1.1.1.jar geronimo-jta_1.0.1b_spec-1.0.1.jar hawtbuf-1.11.jar jcl-over-slf4j-1.7.13.jar slf4j-api-1.7.13.jar
if take away top 3 libraries error failed load class “org.slf4j.impl.staticloggerbinder”
i've tried searching can't i've found has worked far.
you need add log4j-api-2.6.2.jar classpath.
Comments
Post a Comment