码上敲享录 > activiti问题详解 > Detected both log4j-over-slf4j.jar AND bound slf4j-log4j12.jar on the class path, preempting StackOv

Detected both log4j-over-slf4j.jar AND bound slf4j-log4j12.jar on the class path, preempting StackOv

上一章章节目录下一章 2018-02-01已有2626人阅读 评论(0)

异常信息:

Caused by: java.lang.IllegalStateException: Detected both log4j-over-slf4j.jar AND bound slf4j-log4j12.jar on the class

path, preempting StackOverflowError


解决方法:

把冲突的依赖包排除掉即可。

<dependency>

           <groupId>org.activiti</groupId>

           <artifactId>activiti-rest</artifactId>

           <version>${activiti.version}</version>

           <exclusions>

               <exclusion>

                   <groupId>org.slf4j</groupId>

                   <artifactId>slf4j-log4j12</artifactId>

               </exclusion>

               <exclusion>

                   <groupId>log4j</groupId>

                   <artifactId>log4j</artifactId>

               </exclusion>

           </exclusions>

       </dependency>


 <dependency>

           <groupId>org.activiti</groupId>

           <artifactId>activiti-explorer</artifactId>

           <version>${activiti.version}</version>

          <exclusions>

               <exclusion>

                   <groupId>org.slf4j</groupId>

                   <artifactId>slf4j-log4j12</artifactId>

               </exclusion>

               <exclusion>

                   <groupId>log4j</groupId>

                   <artifactId>log4j</artifactId>

               </exclusion>

           </exclusions>

       </dependency>

本文地址:http://www.yayihouse.com/yayishuwu/chapter/1093

向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti
0

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交