• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

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

Hi.

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.
 
Peter Johnson
author
Bartender
Posts: 5852
7
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: http://www.jboss.org/community/wiki/ScopedLoggingConfig
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic