1.2M6: nodeps & log4j trouble

From: Tore Halset (halse..vv.ntnu.no)
Date: Mon Oct 31 2005 - 08:17:10 EST

  • Next message: Korbinian Bachl: "AW: Beginners Problem // BUG REPORT !"

    Hello.

    I am trying to use nodeps-1.2M6 in my app deployed on a plain
    jboss-4.0.3. I am switching to nodeps because of a log4j version
    conflict. Still I get the following error:

    java.lang.LinkageError: loader constraints violated when linking org/
    apache/log4j/Priority class
    org.objectstyle.cayenne.util.ResourceLocator.<clinit>
    (ResourceLocator.java:94)
    org.objectstyle.cayenne.conf.DefaultConfiguration.<init>
    (DefaultConfiguration.java:111)
    org.objectstyle.cayenne.conf.DefaultConfiguration.<init>
    (DefaultConfiguration.java:90)

    I tracked this down to the fact that even nodeps-1.2M6 has two log4j
    classes boundled.

    jar tvf cayenne-nodeps-1.2M6.jar | grep log4j
          0 Thu Oct 06 17:06:04 CEST 2005 org/apache/log4j/
       1740 Mon Nov 01 21:21:04 CET 2004 org/apache/log4j/Level.class
       2632 Mon Nov 01 21:21:04 CET 2004 org/apache/log4j/Priority.class

    After removing the log4j-classes from the cayenne-nodeps jar the
    LinkageError got away and everything worked ok.

    Should I register this as a bug or is it part of the 1.2-moving
    target or is it fixed in cvs?

    Regards,
      - Tore.



    This archive was generated by hypermail 2.0.0 : Mon Oct 31 2005 - 08:17:17 EST