Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6124771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:10:15+00:00 2026-05-23T16:10:15+00:00

Our application have several EARs deployed to a single JBOSS-AS. Every EAR uses SLF4J

  • 0

Our application have several EARs deployed to a single JBOSS-AS.

Every EAR uses SLF4J for logging and it is available in WAR’s lib. We also have a case where we will deploy the EARs separately too.

Following is the deployment ERRORs we got for a single EAR. Similar kind of ERRORs we are getting for each of the EARs.

2011-07-07 23:27:52,794 ERROR [STDERR] (main) SLF4J: Class path contains multiple SLF4J bindings.
2011-07-07 23:27:52,794 ERROR [STDERR] (main) SLF4J: Found binding in [vfszip:/jboss-as/common/lib/lib/slf4j-jboss-logging.jar/org/slf4j/impl/StaticLoggerBinder.class]
2011-07-07 23:27:52,794 ERROR [STDERR] (main) SLF4J: Found binding in [vfszip:/Product_Ear.ear/Product_War.war/WEB-INF/lib/slf4j-jcl-1.5.8.jar/org/slf4j/impl/StaticLoggerBinder.class]
2011-07-07 23:27:52,794 ERROR [STDERR] (main) SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

This error is because we have multiple bindings of SLF4j as per the explanation URL.

Questions :

  1. Shouldn’t that be a WARNING instead of
    an ERROR?

  2. Is there any way how to run it without
    errors and without removing
    slf4j-jcl-1.5.8.jar from WARs?


SideNote :
Even if we got errors for most of the EARs, there are no other problems because of this.
Every indented functionality are working fine.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T16:10:15+00:00Added an answer on May 23, 2026 at 4:10 pm

    This behaviour of slf4j is by design. If you do not like it, you must raise a bug report on the slf4j site.

    The problem is that JBoss provide a slf4j binding in its default classloader, and you bring your own. I am not familiar enough with JBoss to say if the slf4j jar in common/lib is available by default, or if you put it there, but at that location you probably cannot disable it. You may want to raise a bug report on the jboss site.

    The problem stems from I do not believe it has been explicitly said in the servlet spec what the web container classloader should provide and what it should not. Hence there will be deployment issues.

    The only cure is to remove your own slf4j binding and log to the jboss loggers.

    But note, it will be most cross platform for you if you let the web container do the logging, as you are not guaranteed to have access to the file system by the spec.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have several choices for logging in our .NET (C#) server application. We are
I have been tasked with testing the contents of several pop-ups throughout our application.
I have an Intranet http application running on several machines in our Windows domain;
We have a standard j2ee application written using jboss richfaces 3.3.x. we have several
We have several modules in our application. I have a project with a group
In our application, we are going to have several finder dialogs. The UI of
We have an application that uses several out of process COM objects for various
We have several external DLL files being referenced in our Web Application Project. We
In our application we have several (actuall many, about 30) web services. Each web
In our SOA application we have several customers' data in the same database and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.