3 Replies Latest reply on Apr 28, 2010 9:02 AM by subodh kumar singh

    log4j:ERROR Could not instantiate class [org.apache.log4j.xm

    Norman Fung Newbie

      Hi, I got this following error message when I started JBoss server - it doesn't seems to affect anything though... should I be concerned about this? If so, how can I fix it?

      [root@localhost bin]# ls
      classpath.sh jboss_init_suse.sh run.sh spy.log
      deployer.bat run.bat shutdown.bat twiddle.bat
      deployer.sh run.conf shutdown.jar twiddle.jar
      jboss_init_redhat.sh run.jar shutdown.sh twiddle.sh
      [root@localhost bin]# ./run.sh
      =========================================================================
      
       JBoss Bootstrap Environment
      
       JBOSS_HOME: /usr/local/jboss-4.0.0RC1
      
       JAVA: /usr/java/j2sdk1.4.2_05/bin/java
      
       JAVA_OPTS: -server -Xms128m -Xmx128m -Dprogram.name=run.sh
      
       CLASSPATH: /usr/local/jboss-4.0.0RC1/bin/run.jar:/usr/java/j2sdk1.4.2_05/lib/t ools.jar:/usr/local/jboss-4.0.0RC1/server/default/conf
      
      =========================================================================
      
      log4j:ERROR Could not instantiate class [org.apache.log4j.xml.DOMConfigurator].
      java.lang.ClassNotFoundException: org.apache.log4j.xml.DOMConfigurator
       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 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:160)
       at org.apache.log4j.helpers.OptionConverter.instantiateByClassName(Optio nConverter.java:309)
       at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionCon verter.java:449)
       at org.apache.log4j.LogManager.<clinit>(LogManager.java:113)
       at org.jboss.logging.Log4jLoggerPlugin.init(Log4jLoggerPlugin.java:63)
       at org.jboss.logging.Logger.getDelegatePlugin(Logger.java:320)
       at org.jboss.logging.Logger.<init>(Logger.java:78)
       at org.jboss.logging.Logger.getLogger(Logger.java:291)
       at org.jboss.system.server.ServerImpl.doInit(ServerImpl.java:152)
       at org.jboss.system.server.ServerImpl.init(ServerImpl.java:126)
       at org.jboss.Main.boot(Main.java:146)
       at org.jboss.Main$1.run(Main.java:405)
       at java.lang.Thread.run(Thread.java:534)
      log4j:ERROR Could not instantiate configurator [org.apache.log4j.xml.DOMConfigur ator].
      


      Thanks in advance.