저는 jira addon에서 일하고 있습니다. 프로젝트에서slf4j에 대한 종속성으로 인해 ClassLoader 충돌이 발생합니다.
Error creating bean with name 'userService' defined in URL [bundle://205.0:1/com/softwareplant/tool/service/UserService.class]: Bean instantiation via constructor failed; nested exception is java.lang.LinkageError: loader constraint violation: when resolving method "org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()Lorg/slf4j/ILoggerFactory;" the class loader (instance of org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) of the current class, org/slf4j/LoggerFactory, and the class loader (instance of org/apache/catalina/loader/WebappClassLoader) for the method's defining class, org/slf4j/impl/StaticLoggerBinder, have different Class objects for the type org/slf4j/ILoggerFactory used in the signature; nested exception is org.springframework.beans.factory.BeanCreationException:
내가 이러한 종속성을 사용합니다 :
[0;37m[INFO] +- com.atlassian.jira:jira-core:jar:7.0.0:provided[0m
[0;37m[INFO] | +- org.slf4j:slf4j-log4j12:jar:1.7.9:provided[0m
[0;37m[INFO] | +- org.slf4j:jul-to-slf4j:jar:1.7.9:provided[0m
[0;37m[INFO] | +- org.slf4j:jcl-over-slf4j:jar:1.7.9:provided[0m
[0;37m[INFO] +- org.slf4j:slf4j-api:jar:1.7.25:compile[0m
당신이 어떻게 처리하는 아이디어가 희망 나는 그것을 배포하려고 할 때 오류가 발생합니다. 어떤 도움을 주셔서 감사합니다! 어떤 도움을 주셔서 감사합니다 !
만약'org.slf4j : slf4j-log4j12 : jar : 1.7.9'가 "제공됨"이라면,'org.slf4j : slf4j-api : jar : 1.7.9' 또한 "제공된다" "org.slf4j : slf4j-api : jar : 1.7.25'를"compile "의존성으로 포함시키지 마십시오. – Andreas