2017-03-28 9 views
0

スプリングブートアプリケーションでエラーが発生します。 これを修正するには? log4j統合はありますか?SLF4J LoggerFactoryのインスタンス化に失敗したためにSpringブートアプリケーションが起動していません

私のエラーログが

Failed to instantiate SLF4J LoggerFactory 
Reported exception: 
java.lang.NoClassDefFoundError: ch/qos/logback/core/joran/spi/JoranException 
    at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150) 
    at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124) 
    at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:412) 
    at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:357) 
    at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:155) 
    at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:132) 
    at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:273) 
    at org.springframework.boot.SpringApplication.<clinit> 
+0

application.properties/yaml、pom、およびより包括的なスタックトレースを投稿してください。 – PaulNUK

答えて

0

マイポンポンファイルがある

http://maven.apache.org/xsd/maven-4.0.0.xsd "> 4.0.0

です
<groupId>com.salpe</groupId> 
<artifactId>ca</artifactId> 
<version>0.0.1-SNAPSHOT</version> 
<packaging>jar</packaging> 

<name>com.salpe.ca</name> 
<description>CA authority micro-service</description> 

<parent> 
    <groupId>org.springframework.boot</groupId> 
    <artifactId>spring-boot-starter-parent</artifactId> 
    <version>1.5.2.RELEASE</version> 
    <relativePath /> <!-- lookup parent from repository --> 
</parent> 

<properties> 
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> 
    <java.version>1.8</java.version> 
</properties> 

<dependencies> 
    <dependency> 
     <groupId>org.springframework.boot</groupId> 
     <artifactId>spring-boot-starter-actuator</artifactId> 
    </dependency> 
    <dependency> 
     <groupId>org.springframework.boot</groupId> 
     <artifactId>spring-boot-starter-web-services</artifactId> 
    </dependency> 

    <dependency> 
     <groupId>org.springframework.boot</groupId> 
     <artifactId>spring-boot-starter-test</artifactId> 
     <scope>test</scope> 
    </dependency> 

     <dependency> 
      <groupId>log4j</groupId> 
      <artifactId>log4j</artifactId> 
      <version>1.2.14</version> 
     </dependency> 
    </dependencies> 

    <build> 
     <plugins> 
      <plugin> 
       <groupId>org.springframework.boot</groupId> 
       <artifactId>spring-boot-maven-plugin</artifactId> 
      </plugin> 
     </plugins> 
    </build> 

0

ファイルのダウンロードには問題がある可能性があります

  1. 削除{ユーザーのホームディレクトリ} /。2 /リポジトリのディレクトリ
  2. 開始日食とプロジェクト - 日食終了>クリーン
  3. 実行スプリングプロジェクトを閉じて、もう一度
  4. それを開きますブートアプリケーション
+0

ようこそ。質の高い回答を提供するためには、この[how-to-answer](http://stackoverflow.com/help/how-to-answer)をお読みください。 – thewaywewere

1

プロジェクトのスプリングフレームワークのリリースが、使用しているスプリングフレームワークのリリースと一致していることを確認します。

<parent> 
     <groupId>org.springframework.boot</groupId> 
     <artifactId>spring-boot-starter-parent</artifactId> 
     <version>1.5.2.RELEASE</version> 
     <relativePath /> <!-- lookup parent from repository --> 
    </parent> 
関連する問題