[OS-JIRA] Created: (CAY-396) 1.2M6, nodeps & log4j trouble

From: jira-norepl..bjectstyle.org
Date: Mon Oct 31 2005 - 13:32:38 EST


Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:

  http://objectstyle.org/jira/secure/ViewIssue.jspa?key=CAY-396

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: CAY-396
    Summary: 1.2M6, nodeps & log4j trouble
       Type: Bug

     Status: Assigned
   Priority: Major

    Project: Cayenne
 Components:
             Cayenne Core Library
   Versions:
             1.2 [DEV]

   Assignee: Andrus Adamchik
   Reporter: Tore Halset

    Created: Mon, 31 Oct 2005 1:32 PM
    Updated: Mon, 31 Oct 2005 1:32 PM
Environment: mac os 10.4, jboss-4.0.3, j2se 1.4

Description:
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.

cayenne-user thread:
http://objectstyle.org/cayenne/lists/cayenne-user/2005/10/0177.html

---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://objectstyle.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



This archive was generated by hypermail 2.0.0 : Mon Oct 31 2005 - 13:32:38 EST