• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic