-
Bug
-
Resolution: Duplicate
-
Major
-
fuse-7.0
-
None
-
%
-
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)