Thanks Danny and Janardhan,

I totally agree with you (Danny) regarding how this may seem confusing
to mere mortals ;-)

Is there a way to change either the behaviour of the classloader or do
this same setting for the deployment of ejb-jars and other j2ee
components - it seems very silly to add a perfectly deployable ejb-jar
to an empty ear just to define the classloader used.

You saved me hours of toil guys, thanks,

Thanks in advance for any more advice on this!

Oisin



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: 09 July 2003 15:45
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] Linkage error


Hi,

By default, JBoss uses a slightly confusing concept called the
UnifiedClassLoader. Package your JAR file inside an EAR file and then
add a line to your jboss-app.xml to create a private classloader and
get the behaviour you are expecting. The line to add is:

  <loader-repository>some-unique-jmx-name-here</loader-repository>

for example:

 
<loader-repository>com.company.project:loader=earfile.ear</loader-reposi
tory
>

Note that the loader repository has to be unique for each of your EAR
files, but since you obviously have slightly different build processes
in order to capture different descriptors, this should not be a problem
for you.

In my (humble, personal, not work-sponsored) opinion, this default
classloading behaviour is very confusing, especially if you run a shared
J2EE server for different teams, and they all wish to build with
different
versions of Struts, Cocoon, log4j, Xerces, Xalan, etc. It rather defeats
the purpose of the EAR file being a completely standalone deployable
unit.
That said, it doesn't break the spec!

Rgds,

Dan.

-- 
Danny Yates
 




-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to