aspose file tools*
The moose likes JBoss/WildFly and the fly likes while running jboss server it gives error for org.jboss.logging.util.OnlyOnceErrorHandler Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "while running jboss server it gives error for org.jboss.logging.util.OnlyOnceErrorHandler" Watch "while running jboss server it gives error for org.jboss.logging.util.OnlyOnceErrorHandler" New topic
Author

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

Abhishek Mhptr
Ranch Hand

Joined: Aug 09, 2009
Posts: 33

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

Joined: May 14, 2008
Posts: 5837
    
    7

Why not just add your appenders and categories to jboss-log4j.xml?

Or perhaps this will help: http://www.jboss.org/community/wiki/ScopedLoggingConfig


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: while running jboss server it gives error for org.jboss.logging.util.OnlyOnceErrorHandler