Results 1 to 8 of 8

Thread: Log 4j errror in Dm 1.0.2

  1. #1
    Join Date
    Nov 2008
    Location
    London,UK
    Posts
    299

    Default Log 4j errror in Dm 1.0.2

    i am getting the following error

    java.lang.ClassNotFoundException: org.apache.log4j.xml.DOMConfigurator


    i have included the following jars in all combinations(both in ext and in usr) and still no luck

    commons-logging-1.0.4.jar
    com.springsource.org.apache.log4j-1.2.15.jar


    my application has has import to package org.apache.log4j.xml and i also c the export for the same package in the above jar.

    This worked in the previous version of spring dm .

  2. #2
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    Strange . . .
    Where did you get commons-logging-1.0.4.jar bundle?

  3. #3
    Join Date
    Nov 2008
    Location
    London,UK
    Posts
    299

    Default

    i converted the commons logging jar which my application earlier used using Bnd tool

  4. #4
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    I was trying to replicate your error and so far unsuccessfully. . .
    Is there a reason why you have to use your version of commons logging?
    DM Server comes pre-bundled with commons logging. It is also available from S2 Bundle repository http://www.springsource.com/reposito...ommons+logging
    In any event, could you post your bundle so I can try to reproduce your error with your bundle?

  5. #5
    Join Date
    Nov 2008
    Location
    London,UK
    Posts
    299

    Default

    The only way i got it working is

    now by deleting this jar from the repository/ext

    com.springsource.slf4j.org.apache.log4j-1.5.6.jar

    i think this nature is because of similar package structure in both the jars , the above one and log4j

  6. #6
    Join Date
    Nov 2008
    Location
    London,UK
    Posts
    299

    Default

    To add little bit more on the above packages share org.apache.log4j .

    Hence since the one from repository if first resolved.

    whenever there is request for any class in org.apache.log4j package

    it only looks for com.springsource.slf4j.org.apache.log4j-1.5.6.jar

    and classes in the log4j.jar are ignored , giving a class not found error.

  7. #7
    Join Date
    Feb 2008
    Posts
    16

    Default Does this solve problem

    Is file deleting only solution to this problem ?

  8. #8
    Join Date
    Nov 2008
    Location
    London,UK
    Posts
    299

    Default

    i could not figure out any other solution .. if u find any please let m eknoe ..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •