2017-04-04 7 views
0

내가 log4j에 (1.2.17) ' 포함 infinispan-''infinispan 코어'표시되지 로그

내 로그를 작동 하는가를 사용하고 있습니다.

하지만 내가 'infinispan- 코어'으로 변경되면 Infinisan의 로그를 수신하지 않습니다.

  • 나는이 봄 (4.1.4) & 최대 절전 모드 (4.3.21)
  • Infinispan 버전 - 8.2.6.Final

어떤 아이디어가?

감사합니다.

내 실행 종속은 : 트리입니다

[INFO] ------------------------------------------------------------------------ 
[INFO] Building myapp War 1.0-SNAPSHOT 
[INFO] ------------------------------------------------------------------------ 
[INFO] 
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ myapp-war --- 
[INFO] com.mycompany.myapp.myapp-app:myapp-war:war:1.0-SNAPSHOT 
[INFO] +- com.mycompany.myapp.myapp-app:myapp-core:jar:1.0-SNAPSHOT:compile 
[INFO] | +- com.mycompany.myapp.common-framework:common-framework-core:jar:1.0-SNAPSHOT:compile 
[INFO] | | +- com.mycompany.myapp.common-framework:common-framework-api:jar:1.0-SNAPSHOT:compile 
[INFO] | | | +- org.springframework:spring-context-support:jar:4.1.4.RELEASE:compile 
[INFO] | | | +- net.sf.jasperreports:jasperreports:jar:6.3.0:compile 
[INFO] | | | | +- commons-digester:commons-digester:jar:2.1:compile 
[INFO] | | | | +- com.lowagie:itext:jar:2.1.7.js5:compile 
[INFO] | | | | +- org.jfree:jcommon:jar:1.0.23:compile 
[INFO] | | | | +- org.eclipse.jdt.core.compiler:ecj:jar:4.3.1:compile 
[INFO] | | | | \- org.codehaus.castor:castor-xml:jar:1.3.3:compile 
[INFO] | | | |  +- org.codehaus.castor:castor-core:jar:1.3.3:compile 
[INFO] | | | |  +- commons-lang:commons-lang:jar:2.6:compile 
[INFO] | | | |  +- stax:stax:jar:1.2.0:compile 
[INFO] | | | |  | \- stax:stax-api:jar:1.0.1:compile 
[INFO] | | | |  \- javax.xml.stream:stax-api:jar:1.0-2:compile 
[INFO] | | | +- org.apache.commons:commons-csv:jar:1.1:compile 
[INFO] | | | +- org.quartz-scheduler:quartz:jar:2.2.2:compile 
[INFO] | | | +- org.quartz-scheduler:quartz-jobs:jar:2.2.2:compile 
[INFO] | | | \- commons-net:commons-net:jar:3.3:compile 
[INFO] | | +- org.apache.commons:commons-email:jar:1.4:compile 
[INFO] | | | \- com.sun.mail:javax.mail:jar:1.5.2:compile 
[INFO] | | +- javax.activation:activation:jar:1.1.1:compile 
[INFO] | | +- jasperreports-fonts:jasperreports-fonts:jar:1.1:compile 
[INFO] | | +- net.sf.jasperreports:jasperreports-html-component:jar:6.1.0b:compile 
[INFO] | | \- net.sourceforge.jexcelapi:jxl:jar:2.6.12:compile 
[INFO] | +- com.mycompany.myapp.myapp-app:myapp-api:jar:1.0-SNAPSHOT:compile 
[INFO] | | +- com.mycompany.myapp.common-framework:common-framework-persistence:jar:1.0-SNAPSHOT:compile 
[INFO] | | \- org.apache.httpcomponents:httpclient:jar:4.5.2:compile 
[INFO] | |  +- org.apache.httpcomponents:httpcore:jar:4.4.4:compile 
[INFO] | |  +- commons-logging:commons-logging:jar:1.2:compile 
[INFO] | |  \- commons-codec:commons-codec:jar:1.9:compile 
[INFO] | \- org.springframework:spring-tx:jar:4.1.4.RELEASE:compile 
[INFO] +- com.mycompany.myapp.myapp-app:myapp-webapp:jar:1.0-SNAPSHOT:compile 
[INFO] | +- com.mycompany.myapp.common-framework:common-framework-webapp:jar:1.0-SNAPSHOT:compile 
[INFO] | | +- org.apache.wicket:wicket-extensions:jar:6.21.0:compile 
[INFO] | | +- org.apache.wicket:wicket-datetime:jar:6.21.0:compile 
[INFO] | | +- org.apache.wicket:wicket-auth-roles:jar:6.21.0:compile 
[INFO] | | +- org.odlabs.wiquery:wiquery-core:jar:6.13.0:compile 
[INFO] | | +- org.odlabs.wiquery:wiquery-jquery-ui:jar:6.13.0:compile 
[INFO] | | +- net.sourceforge.pjl-comp-filter:pjl-comp-filter:jar:1.8.1:compile 
[INFO] | | +- com.octo.captcha:jcaptcha:jar:2.0-alpha-1:compile 
[INFO] | | | +- com.octo.captcha:jcaptcha-api:jar:2.0-alpha-1:compile 
[INFO] | | | \- com.jhlabs:filters:jar:2.0.235:compile 
[INFO] | | \- net.redhogs.cronparser:cron-parser-core:jar:2.9:compile 
[INFO] | +- org.apache.wicket:wicket-core:jar:6.21.0:compile 
[INFO] | | +- org.apache.wicket:wicket-util:jar:6.21.0:compile 
[INFO] | | \- org.apache.wicket:wicket-request:jar:6.21.0:compile 
[INFO] | +- com.pingunaut:wicket-chartjs:jar:6.21.0:compile 
[INFO] | +- org.apache.wicket:wicket-spring:jar:6.21.0:compile 
[INFO] | | \- org.apache.wicket:wicket-ioc:jar:6.21.0:compile 
[INFO] | |  +- cglib:cglib:jar:2.2.2:compile 
[INFO] | |  | \- asm:asm:jar:3.3.1:compile 
[INFO] | |  \- javax.inject:javax.inject:jar:1:compile 
[INFO] | +- org.springframework:spring-context:jar:4.1.4.RELEASE:compile 
[INFO] | | \- org.springframework:spring-aop:jar:4.1.4.RELEASE:compile 
[INFO] | |  \- aopalliance:aopalliance:jar:1.0:compile 
[INFO] | +- org.springframework:spring-web:jar:4.1.4.RELEASE:compile 
[INFO] | \- org.wicketstuff:wicketstuff-restannotations-json:jar:6.21.0:compile 
[INFO] |  +- org.wicketstuff:wicketstuff-restannotations:jar:6.21.0:compile 
[INFO] |  \- org.apache.wicket:wicket:pom:6.21.0:compile 
[INFO] +- com.mycompany.myapp.myapp-app:myapp-ws:jar:1.0-SNAPSHOT:compile 
[INFO] +- org.eclipse.jetty.aggregate:jetty-all-server:jar:8.1.14.v20131031:provided 
[INFO] | +- org.eclipse.jetty.orbit:javax.servlet:jar:3.0.0.v201112011016:provided 
[INFO] | +- org.eclipse.jetty.orbit:javax.security.auth.message:jar:1.0.0.v201108011116:provided 
[INFO] | +- org.eclipse.jetty.orbit:javax.mail.glassfish:jar:1.4.1.v201005082020:provided 
[INFO] | +- org.eclipse.jetty.orbit:javax.activation:jar:1.1.0.v201105071233:provided 
[INFO] | \- org.eclipse.jetty.orbit:javax.annotation:jar:1.1.0.v201108011116:provided 
[INFO] +- com.oracle:ojdbc6:jar:6.0:compile 
[INFO] +- org.springframework.ws:spring-ws-core:jar:2.2.0.RELEASE:compile 
[INFO] | +- org.springframework.ws:spring-xml:jar:2.2.0.RELEASE:compile 
[INFO] | \- org.springframework:spring-core:jar:4.1.4.RELEASE:compile 
[INFO] +- org.hibernate:hibernate-entitymanager:jar:4.2.21.Final:compile 
[INFO] | +- dom4j:dom4j:jar:1.6.1:compile 
[INFO] | +- org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec:jar:1.0.1.Final:compile 
[INFO] | +- org.hibernate.common:hibernate-commons-annotations:jar:4.0.2.Final:compile 
[INFO] | \- org.hibernate:hibernate-core:jar:4.2.21.Final:compile 
[INFO] |  \- antlr:antlr:jar:2.7.7:compile 
[INFO] +- org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.1.Final:compile 
[INFO] +- org.hibernate:hibernate-ehcache:jar:4.2.21.Final:compile 
[INFO] | \- net.sf.ehcache:ehcache-core:jar:2.4.3:compile 
[INFO] +- log4j:log4j:jar:1.2.17:compile 
[INFO] +- org.slf4j:slf4j-log4j12:jar:1.7.7:compile 
[INFO] | \- org.slf4j:slf4j-api:jar:1.7.7:compile 
[INFO] +- org.bgee.log4jdbc-log4j2:log4jdbc-log4j2-jdbc4.1:jar:1.16:compile 
[INFO] +- org.lazyluke:log4jdbc-remix:jar:0.2.7:compile 
[INFO] | \- junit:junit:jar:4.11:test 
[INFO] |  \- org.hamcrest:hamcrest-core:jar:1.3:test 
[INFO] +- org.infinispan:infinispan-core:jar:8.2.6.Final:compile 
[INFO] | +- org.infinispan:infinispan-commons:jar:8.2.6.Final:compile 
[INFO] | +- org.jgroups:jgroups:jar:3.6.7.Final:compile 
[INFO] | \- org.jboss.marshalling:jboss-marshalling-osgi:jar:2.0.0.Beta3:compile 
[INFO] +- org.jboss.logging:jboss-logging:jar:3.2.0.Final:compile 
[INFO] +- javax.cache:cache-api:jar:1.0.0:compile 
[INFO] +- com.google.guava:guava:jar:19.0:compile 
[INFO] +- com.google.code.gson:gson:jar:2.7:compile 
[INFO] +- joda-time:joda-time:jar:2.7:compile 
[INFO] +- commons-beanutils:commons-beanutils:jar:1.9.2:compile 
[INFO] | \- commons-collections:commons-collections:jar:3.2.1:compile 
[INFO] +- org.apache.commons:commons-lang3:jar:3.3.2:compile 
[INFO] +- org.apache.commons:commons-collections4:jar:4.0:compile 
[INFO] +- commons-io:commons-io:jar:2.4:compile 
[INFO] +- org.springframework:spring-webmvc:jar:4.1.4.RELEASE:compile 
[INFO] | +- org.springframework:spring-beans:jar:4.1.4.RELEASE:compile 
[INFO] | \- org.springframework:spring-expression:jar:4.1.4.RELEASE:compile 
[INFO] +- org.springframework:spring-oxm:jar:4.1.4.RELEASE:compile 
[INFO] +- org.springframework:spring-orm:jar:4.1.4.RELEASE:compile 
[INFO] | \- org.springframework:spring-jdbc:jar:4.1.4.RELEASE:compile 
[INFO] +- com.fasterxml.jackson.core:jackson-core:jar:2.4.3:compile 
[INFO] +- com.fasterxml.jackson.core:jackson-annotations:jar:2.4.3:compile 
[INFO] +- com.fasterxml.jackson.core:jackson-databind:jar:2.4.3:compile 
[INFO] +- org.reflections:reflections:jar:0.9.10:compile 
[INFO] | +- org.javassist:javassist:jar:3.19.0-GA:compile 
[INFO] | \- com.google.code.findbugs:annotations:jar:2.0.1:compile 
[INFO] +- xml-apis:xml-apis:jar:1.0.b2:provided 
[INFO] +- com.thoughtworks.xstream:xstream:jar:1.4.7:compile 
[INFO] | +- xmlpull:xmlpull:jar:1.1.3.1:compile 
[INFO] | \- xpp3:xpp3_min:jar:1.1.4c:compile 
[INFO] \- javax.servlet:javax.servlet-api:jar:3.1.0:compile 

답변

1

Thanku Galder! - 너는 나를 통해 해결책을 찾는다.

나는 내가 사용하는 버전의 제이 보스 로깅에 작은 버그가 있다고 보았다
3.2.0.Final
과로 업그레이드 :
3.3.1.Final
그것을 고정 .

는 버그는 방법에 log4j에 1.x에서 위해이었다 : -Dorg.jboss.logging.provider = SLF4J 지금 내 로깅 작품 :

LoggerProviders.tryLog4j 
3

내가 전에 비슷한 상황을 겪었습니다. 여기서 문제는 infinispan-core를 사용할 때 종속성이 누락 될 가능성이 높습니다.

이러한 문제를 해결하는 방법은 코드를 단계별로 디버깅하여 로거가 발견되지 않는 이유를 이해하는 것입니다. org.jboss.logging.LoggerProviders.findProvider() 메서드의 시작 부분에 중단 점을 넣으면됩니다. 이 메소드는 JDK, Log4j, Log4j2, Slf4j 등 어떤 로거가 사용될지를 감지합니다.

따라서 포함 된 종속성을 되돌리고 해당 방법에 중단 점을 넣은 다음 Log4j 1.x가 추가되었는지 확인하십시오. 그런 다음 infinispan-core를 사용하여 동일하게 실행하고 공급자가 선택되었는지 확인하십시오 (Log4j 1.x가 아닌 것 같습니다). 그런 다음 명시 적 종속성으로 Log4j 1.x를 추가하는 경우 등을 확인하십시오.

+0

힌트는 folloging을 시도하는 저를지도! – emanciperingsivraren

+0

... 약간의 수사를 거친 끝에 나는 'infinispan-spring'이 log4j2를 사용한다는 것을 알았고, 이것이 jboss.logging이 그것을 사용하려고하는 이유입니다. log4j2를 제거하면 자동으로 작동합니다. Jay – emanciperingsivraren

+0

또 다른 한가지 : Maven/Gradle 프로젝트에 infinispan-embedded를 의존하지 마십시오. 이러한 jar는 우리가 uber jar라고 부르는 것으로, 종속성 해결 기능이없는 빌드 시스템 용으로 설계되었습니다. –