apache / apache/grails-intellij-plugin
Grails App Forge wizard: Failed to load class "org.slf4j.impl.StaticLoggerBinder"
- Dominant language
- Java
- Stars
- 17
- Forks
- 4
- Avg merge
- 5d 15h
- Merged PRs (30d)
- 4
Description
The SLF4J error occurs on our customer's environment.
When he executes 'Tools | Run Grails Command', the following errors are displayed on console:
```
C:\Java\GVM\java\8.0.272-amzn\bin\java.exe -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:CICompilerCount=3 -Djline.WindowsTerminal.directConsole=false -Dgrails.full.stacktrace=true -javaagent:C:\Users\\AppData\Local\JetBrains\IntelliJIdea2021.3\groovyHotSwap\gragent.jar -Dfile.encoding=UTF-8 -classpath C:\Users\\AppData\Local\Temp\classpath1952010837.jar org.grails.cli.GrailsCli run-app --plain-output
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
```
When he executes 'Execute Gradle task', there is no error.
He is using his project, but I could reproduce it by the steps below.
Steps:
1. create a new project and select 'Grails App Forge'. (Project SDK: 15, Grails version: 5.1.6, Profile: web)
2. execute 'Tools | Run Grails Command' and input 'compile' on Command field.
3. push OK button
4. the SLF4J error occurs.
Though adding 'slf4j-jdk14.jar' as project library, the problem has not solved.
https://www.slf4j.org/download.html
He said that when using Grails 5.1.6, this error occurs, but when using Grails 4.0 there was no error. So, it might be the Grails problem.
---
*Imported from [IDEA-291935](https://youtrack.jetbrains.com/issue/IDEA-291935) · Type: Bug · Votes: 3*
*Comments, attachments, dates and reporter are not part of the export — follow the link above for the full history.*
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the problem from a new Grails App Forge project using Grails 5.1.6, then run Tools | Run Grails Command with the compile command and compare it with Execute Gradle task and Grails 4.0. Trace how the command assembles its classpath and logging dependencies; done means the command completes without the StaticLoggerBinder warning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100