NoClassDefFoundError: org/jboss/logging/Logger

When using the Apache Camel and Narayana JTA starters in Spring Boot, if you get this error when running your app:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘narayanaConfiguration’ defined in class path resource [org/springframework/boot/autoconfigure/transaction/jta/NarayanaJtaConfiguration.class]: Invocation of init method failed; nested exception is java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/jboss/logging/Logger

You may need to add the spring-boot-starter-web dependency to your Maven POM, like this:

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

This starter includes org.jboss.logging:jboss-logging:jar, along with other dependencies.

Don't want to miss the next post? Join my email list

Hello! Thanks for reading. I regularly post new articles here about integration, middleware, Java and containers. I share new content with my email subscribers first.

If you want to join my email list, all you have to do is fill in your email address and first name in the box below. I don't send spam, and you can unsubscribe at any time.

Leave a Comment