1

JHipster gradle: Caused by: java.lang.ClassNotFoundException: org.jboss.logging.BasicLogger for single module project

dependencies {
    compile "org.jboss.logging:jboss-logging" }

Pressing Refresh on gradle tab in Intellij does not change the result.

How to fix this?

Mohammad
  • 21,175
  • 15
  • 55
  • 84
Arthur
  • 1,156
  • 3
  • 20
  • 49
  • Your dependency has not version. For example you can use `3.3.2.Final` version. `compile "org.jboss.logging:jboss-logging:3.3.2.Final"`. Check this page for choose version https://mvnrepository.com/artifact/org.jboss.logging/jboss-logging. – punchman Nov 17 '18 at 07:54
  • same with version – Arthur Nov 17 '18 at 20:55

2 Answers2

3

I use to have the same error. Here is how to reproduce it :

  • Create a new application with JHipster with Gradle support
  • Open it in IntelliJ
  • Select a "shorten command line" to avoid this error
  • Run the *App.java file

And how to fix it :

  • Open the "Run/Debug Configuration"
  • Check Include dependencies with "Provided" scope

Configuration

Bludwarf
  • 824
  • 9
  • 21
0

org.jboss.logging is a lib that most of main libs like hibernate and spring are depend on it. So it's not for the dependency problem. Maybe you do something wrong in your application. I suggest you upgrade your jhipster project. It will correct your mistakes. For more information please visit this site: how to upgrade jhipster.

Mohsen
  • 4,536
  • 2
  • 27
  • 49