1 Reply Latest reply: Dec 7, 2007 11:46 AM by 807603 RSS

    log4j:ERROR Could not instantiate class [org.jboss.logging.util.OnlyOnceErr

    807603
      Hi,

      when i run my standalone application i am getting following error:
      I am using log4j-1.2.15.jar file.
      log4j:ERROR Could not instantiate class [org.jboss.logging.util.OnlyOnceErrorHandler].
      java.lang.ClassNotFoundException: org.jboss.logging.util.OnlyOnceErrorHandler
           at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
           at java.security.AccessController.doPrivileged(Native Method)
           at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
           at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
           at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
           at java.lang.Class.forName0(Native Method)
           at java.lang.Class.forName(Class.java:141)
           at org.apache.log4j.helpers.Loader.loadClass(Loader.java:179)
           at org.apache.log4j.helpers.OptionConverter.instantiateByClassName(OptionConverter.java:320)
           at org.apache.log4j.xml.DOMConfigurator.parseErrorHandler(DOMConfigurator.java:302)
           at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:266)
           at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:171)
           at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:184)
           at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:502)
           at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:471)
           at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:921)
           at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:790)
           at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:696)
           at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:471)
           at org.apache.log4j.LogManager.<clinit>(LogManager.java:125)
           at org.apache.log4j.Logger.getLogger(Logger.java:105)
           at com.DSA.common.offline.batchjob.Job.<clinit>(Job.java:37)
      log4j:ERROR Could not create an Appender. Reported error follows.
      java.lang.ClassNotFoundException: org.jboss.logging.appender.DailyRollingFileAppender
           at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
           at java.security.AccessController.doPrivileged(Native Method)
           at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
           at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
           at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
           at java.lang.Class.forName0(Native Method)
           at java.lang.Class.forName(Class.java:141)
           at org.apache.log4j.helpers.Loader.loadClass(Loader.java:179)