SLF4J: Failed to load "org.slf4j.impl.StaticLoggerBinder

However, when I run the following command:

sbt new playframework/play-scala-seed.g8

I get the following error message:

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.

Unexpected response status 504 fetching metadata from https://search.maven.org/solrsearch/select?q=g:%22org.scala-lang%22+AND+a:%22scala-library%22&rows=10&wt=xml&core=gav

My system information is as follows:

$ java --version
openjdk 11.0.17 2022-10-18
OpenJDK Runtime Environment Temurin-11.0.17+8 (build 11.0.17+8)
OpenJDK 64-Bit Server VM Temurin-11.0.17+8 (build 11.0.17+8, mixed mode)
$ sbt --script-version
1.9.0

I am unable to set up Play Framework in Windows due to the following error:

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.

Unexpected response status 504 fetching metadata from https://search.maven.org/solrsearch/select?q=g:%22org.scala-lang%22+AND+a:%22scala-library%22&rows=10&wt=xml&core=gav

My system information is as follows:

$ java --version
openjdk 11.0.17 2022-10-18
OpenJDK Runtime Environment Temurin-11.0.17+8 (build 11.0.17+8)
OpenJDK 64-Bit Server VM Temurin-11.0.17+8 (build 11.0.17+8, mixed mode)
$ sbt --script-version
1.9.0

I am encountering an error when setting up Play Framework on Windows. When I run the command:

sbt new playframework/play-scala-seed.g8

I get the following error message:

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.

Unexpected response status 504 fetching metadata from https://search.maven.org/solrsearch/select?q=g:%22org.scala-lang%22+AND+a:%22scala-library%22&rows=10&wt=xml&core=gav

My system information is:

$ java --version
openjdk 11.0.17 2022-10-18
OpenJDK Runtime Environment Temurin-11.0.17+8 (build 11.0.17+8)
OpenJDK 64-Bit Server VM Temurin-11.0.17+8 (build 11.0.17+8, mixed mode)
$ sbt --script-version
1.9.0

I am unable to set up Play Framework in Windows due to the above error.

The error you are encountering is related to the SLF4J library. SLF4J is a logging facade for various logging frameworks. The error message indicates that the class “org.slf4j.impl.StaticLoggerBinder” could not be loaded.

To resolve this issue, you can try the following steps:

  1. Make sure you have the latest version of sbt installed. You can check the latest version by running the command sbt --script-version. If the version is not up to date, you can update it.

  2. Check your internet connection and ensure that you can access the Maven repository mentioned in the error message (https://search.maven.org). The error message indicates a 504 status code, which usually means a gateway timeout. It’s possible that there was a temporary issue with the connection to the repository.

  3. Try running the command again after some time. If the issue persists, you can try to configure sbt to use a different repository or mirror. You can do this by creating a file called repositories in the .sbt directory in your home directory (e.g., C:\Users\YourUsername\.sbt\repositories on Windows) and adding the following content:

    [repositories]
    local
    maven-central
    

    Save the file and try running the command again.

If none of the above steps resolve the issue, you can try using a different version of the Play Framework seed template. You can find other templates on the Play Framework’s GitHub page (Play Framework · GitHub).

Note: If you are behind a corporate proxy or firewall, you may need to configure sbt to use the proxy settings. You can do this by setting the http_proxy and https_proxy environment variables or by configuring sbt itself.