2017-01-03 1 views
0

私のプロジェクトをNeo4j 3.1.0に移動しようとしていますが、今Maven、Spring Bootアプリケーションが例外:Neo4j 3.1.0およびIllegalArgumentExceptionへの移動:LoggerFactoryはLogback LoggerContextではありませんが、Logbackはクラスパス上にあります

Caused by: java.lang.IllegalArgumentException: LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback or the competing implementation (class org.slf4j.impl.Neo4jLoggerFactory loaded from file:/.../.m2/repository/org/neo4j/neo4j-security-enterprise/3.1.0/neo4j-security-enterprise-3.1.0.jar). If you are using WebLogic you will need to add 'org.slf4j' to prefer-application-packages in WEB-INF/weblogic.xml Object of class [org.slf4j.impl.Neo4jLoggerFactory] must be an instance of class ch.qos.logback.classic.LoggerContext 

この場合、アプリケーションでどのようなロガーの実装を使用し、修正する必要がありますか教えてください。

答えて

1

次の除外は、問題を解決する:

<dependency> 
    <groupId>org.neo4j</groupId> 
    <artifactId>neo4j-enterprise</artifactId> 
    <version>${neo4j.version}</version> 
    <exclusions> 
     <exclusion> 
      <groupId>org.neo4j</groupId> 
      <artifactId>neo4j-security-enterprise</artifactId> 
     </exclusion> 
    </exclusions> 
</dependency> 
関連する問題