Bugs item #668786, was opened at 2003-01-15 15:07
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=668786&group_id=22866
Category: JBossMX
Group: v3.0 Rabbit Hole
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Steve Hayward (shayward)
Assigned to: Nobody/Anonymous (nobody)
Summary: LinkageError: loader constraints violated
Initial Comment:
I am using JDK1.3.1-b24 on Window 2000 pro.
here is the error I get when calling a EJB and it tries to
open a JDBC connection to a Oracle database:
2003-01-15 10:57:50,796 INFO
[org.jboss.system.server.Server] JBoss (MX
MicroKernel) [3.0.4 Date:200211021607] Started in
0m:22s:463ms
2003-01-15 10:58:44,242 ERROR
[org.jboss.ejb.plugins.LogInterceptor] Unexpected Error:
java.lang.LinkageError: loader constraints violated when
linking javax/sql/ConnectionEventListener class
=====
Now here is what my research has uncovered.
I am using Oracle therefore I have classes12.zip in the
lib directory.
I turned on DEBUG logging in conf/log4j.xml
I then run again and I see in the log that
javax.sql.ConnectionEventListener.class was found in 2
jars.
1. classes12.zip (Oracle JDBC drivers)
2. jboss-j2ee.jar
after some investigation I discovered that these interface
classes are different (they should be the same as Sun's
J2ee 1.2.1 version of them) so I download Sun's source
for j2ee1.2.1 and found that jboss version of
javax.sql.ConnectionEventListener.java is indeed
different from jboss's version of the same interface:
Sun's version of javax.sql.ConnectionEventListener
declares:
void connectionClosed...
void connectionErrorOccurred...
Jboss's version of javax.sql.ConnectionEventListener
declares:
public void connectionClosed
public void connectionErrorOccurred
I believe that I get the LinkageError because the Oracle
classes12.zip has the exact same copy as Sun's.
----------------------------------------------------------------------
>Comment By: Scott M Stark (starksm)
Date: 2003-01-16 02:18
Message:
Logged In: YES
user_id=175228
This won't work in 3.0.4. In 3.0.5 all of the jars in the lib
directory are assigned to a single class loader so that only
one version of the duplicate classes will be used. If you have
to get this to work in 3.0.4 the classes12.zip jar would have
to be placed into the JBOSS_CLASSPATH environment
variable to get these classes on the system classpath.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=668786&group_id=22866
-------------------------------------------------------
This SF.NET email is sponsored by: Thawte.com
Understand how to protect your customers personal information by implementing
SSL on your Apache Web Server. Click here to get our FREE Thawte Apache
Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development