You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2020/10/01 00:17:07 UTC

[GitHub] [rocketmq] hachihub opened a new issue #2332: logback error

hachihub opened a new issue #2332:
URL: https://github.com/apache/rocketmq/issues/2332


   help,I get exception:
   
   Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class org.apache.rocketmq.client.log.ClientLogger
   	at org.apache.rocketmq.client.producer.DefaultMQProducer.<init>(DefaultMQProducer.java:63)
   	at org.apache.rocketmq.client.producer.DefaultMQProducer.<init>(DefaultMQProducer.java:145)
   	at com.maoge.demo.ProducerDemo.main(ProducerDemo.java:9)
   
   
   logback.xml:
   
   <?xml version="1.0" encoding="UTF-8"?>
   <configuration>
       <appender name="mqAppender1" class="org.apache.rocketmq.logappender.logback.RocketmqLogbackAppender">
           <tag>TagA</tag>
           <topic>01_test</topic>
           <producerGroup>group1</producerGroup>
           <nameServerAddress>127.0.0.1:9876</nameServerAddress>
           <layout>
               <pattern>%date %p %t - %m%n</pattern>
           </layout>
       </appender>
       <appender name="mqAsyncAppender1" class="ch.qos.logback.classic.AsyncAppender">
           <queueSize>1024</queueSize>
           <discardingThreshold>80</discardingThreshold>
           <maxFlushTime>2000</maxFlushTime>
           <neverBlock>true</neverBlock>
           <appender-ref ref="mqAppender1"/>
       </appender>
       <root>
           <level value="debug"/>
           <appender-ref ref="mqAppender1"/>
       </root>
       <logger name="testLogger" level="debug" additivity="true">
           <appender-ref ref="mqAppender1"/>
       </logger>
   </configuration>
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] RongtongJin commented on issue #2332: logback error

Posted by GitBox <gi...@apache.org>.
RongtongJin commented on issue #2332:
URL: https://github.com/apache/rocketmq/issues/2332#issuecomment-701713447


   Please check if it is due to maven dependency


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] RongtongJin closed issue #2332: logback error

Posted by GitBox <gi...@apache.org>.
RongtongJin closed issue #2332:
URL: https://github.com/apache/rocketmq/issues/2332


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org