Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-9244

cxf-spring-boot-starter-jaxws generates java.lang.NoClassDefFoundError

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • fuse-7.1
    • fuse-7.0
    • Fuse Distribution
    • None
    • % %
    • Hide

      1. Unzip the attached project
      2. Run the following command : mvn spring-boot:run

      Show
      1. Unzip the attached project 2. Run the following command : mvn spring-boot:run

    Description

      When trying to run a Soap Service or Rest service using CXF with the
      cxf-spring-boot-starter-jaxws and cxf-spring-boot-starter-jaxrs dependecy. The project fails to start. It gives the bellow error. I found that the only way for now to work around it is by adding this exclusion to the dependency :

      <groupId>org.apache.cxf</groupId>
      <artifactId>cxf-spring-boot-starter-jaxws</artifactId>
      <exclusions>
      <exclusion>
      <artifactId>logback-core</artifactId>
      <groupId>ch.qos.logback</groupId>
      </exclusion>
      </exclusions>
      </dependency>

      java.lang.NoClassDefFoundError: ch/qos/logback/core/util/StatusListenerConfigHelper
      at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:147)
      at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84)
      at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
      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:655)
      at org.springframework.boot.SpringApplication.<clinit>(SpringApplication.java:179)

      Attachments

        Activity

          People

            yfang@redhat.com Freeman(Yue) Fang
            alainpham Alain Pham (Inactive)
            Lukas Lowinger Lukas Lowinger
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: