Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple SLF4J bindings found in the classpath #1

Open
ManuPer3z opened this issue Aug 20, 2023 · 0 comments
Open

Multiple SLF4J bindings found in the classpath #1

ManuPer3z opened this issue Aug 20, 2023 · 0 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@ManuPer3z
Copy link
Owner

Description:

When running the application, I am consistently encountering the SLF4J: Class path contains multiple SLF4J bindings warning. Despite efforts to resolve this by excluding slf4j-simple from the stanford-corenlp dependency, the issue persists.

Log:

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/D:/Descargas%20Google/stanford-corenlp-4.5.4/slf4j-simple.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Users/Manu/.m2/repository/ch/qos/logback/logback-classic/1.2.5/logback-classic-1.2.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]

Steps to reproduce:

  1. Clone the repository.
  2. Run the application.
  3. Observe the above warning in the logs.

Attempted Resolutions:

  • Excluded slf4j-simple from the stanford-corenlp dependency in pom.xml.
  • Explicitly included slf4j-api and logback-classic dependencies.
  • Updated all project dependencies and reimported them.
  • Checked the dependency tree to verify the absence of slf4j-simple.
  • Ran the application outside the IDE using Maven.
  • Added slf4j.properties to manually specify the logger for SLF4J.

None of the above solutions resolved the issue.

Environment:

  • Java version: ( Java 11)
  • Maven version: ( 3.6.3)
  • OS: (e.g., Windows 10)

Any assistance or insights regarding this issue would be highly appreciated.

@ManuPer3z ManuPer3z added help wanted Extra attention is needed good first issue Good for newcomers labels Aug 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant