This week's book giveaway is in the General Computing forum.
We're giving away four copies of Emmy in the Key of Code and have Aimee Lucido on-line!
See this thread for details.
Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

while running jboss server it gives error for org.jboss.logging.util.OnlyOnceErrorHandler

Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


i have created an log4j.xml file inside jboss/server/default/config. (this file is different than jboss-log4j.xml)

here is the content of my log4j.xml file.

it works fine. but it gives the following error in the console while running the jboss server.

20:09:31,727 ERROR [STDERR] log4j:ERROR A "org.jboss.logging.util.OnlyOnceErrorHandler" object is not assignable to a "org.apache.log4j.spi.ErrorHandler" variable.
20:09:31,727 ERROR [STDERR] log4j:ERROR The class "org.apache.log4j.spi.ErrorHandler" was loaded by
20:09:31,727 ERROR [STDERR] log4j:ERROR [BaseClassLoader@b04214{vfsfile:/D:/jboss-5.1.0.GA/server/default/deploy/axis2.war/}] whereas object of type
20:09:31,727 ERROR [STDERR] log4j:ERROR "org.jboss.logging.util.OnlyOnceErrorHandler" was loaded by [org.jboss.bootstrap.NoAnnotationURLClassLoader@1c39a2d].

i have gone through many forums and articles. everyone has suggested to remove log4j.jar file from the WEB-INF/lib folder.
but if i do that i am unable to get the output.

kindly help me out in getting rid of the error messages without removing the jar file as we need that for our application..

thanks in advance.
Posts: 5856
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why not just add your appenders and categories to jboss-log4j.xml?

Or perhaps this will help:
Ruth Stout was famous for gardening naked. Just like this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!