Tom Donohue Tom Donohue

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:


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


What do you think? You can use Markdown in your comment.

To write code, indent each line with 4 spaces. Or, to paste a lot of code, you can put it in and share the link in your comment.