Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    logger error in 8.3d

    When I include the SC library in our environment, I keep getting the following error. I currently have
    have the following jars:

    - commons-collections
    - commons-jxpath
    - commons-pool
    - isc-jakarta-oro
    - isomorphic_core_rpc
    - isomorphic_js_parser
    - velocity


    What can be causing this issue? I've never seen it before 8.3

    Code:
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/spi/RootLogger
    Caused by: java.lang.ClassNotFoundException: org.apache.log4j.spi.RootLogger
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    	... 2 more

    #2
    Are you using a very old log4j? RootLogger is a replacement for the deprecated RootCategory class, but this has been the case since log4j 1.2 or possibly earlier.

    Comment


      #3
      According to my sources we are using log4j-over-slf4j-1.5.6

      Comment


        #4
        You may have more than one log4j in your classpath or a similar issue. You should also check hat .jar to make sure it has RootLogger just in case the version from the filename is wrong.

        Comment


          #5
          I've double-checked our classpath and we do not use anything else. However, the current jar that we are using only has the following class files:

          Category.class
          Level.class
          Log4jLoggerFactory.class
          MDC.class
          Priority.class

          Their latest version has a few more files but no RootLogger

          Comment


            #6
            Their newest jar has the following
            under org\apache\log4j

            Appender.class
            BasicConfiguration
            Category.class
            Level.class
            Log4jLoggerFactory.class
            Logger.class
            LogManager.class
            MDC.class
            NDC.class
            Priority.class
            PriorityConfigrator.class

            Comment


              #7
              The fully qualified classname is org/apache/log4j/spi/RootLogger.

              Comment


                #8
                Unfortunately, it is not there either.

                Configurator
                ErrorHandler
                Filter
                HierarchyEventListener
                Layout
                LoggerFactory
                LoggerRepository
                LoggingEvent

                Comment


                  #9
                  Well, we've just linked you to log4j's own docs for the class at Apache.org - if it's not there, you must have the wrong .jars.

                  Comment

                  Working...
                  X