Bugs item #652411, was opened at 2002-12-12 01:48
Message generated for change (Comment added) made by letiemble
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=652411&group_id=22866

Category: None
Group: None
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Adam Heath (doogie)
>Assigned to: Laurent Etiemble (letiemble)
Summary: Classloader sharing with MANIFEST

Initial Comment:
I have 2 ears, that both need to use ofbiz.  The
configuration of ofbiz in each is mostly identical,
except for the database name.  OFBiz uses static
factory methods to fetch preconfigured(cached) objects
from class-static maps.  These objects are created with
a static{} block in the class, by using data from the
default(whatever that is for the JVM) classloader.

When I deploy both of these 2 ears, only the first one
deployed has the static block run, and the second ends
up sharing the same class instances.  I know that the
J2EE spec allows for this, but this seems
non-intuitive.  Is there a way to disable it?

I also have a fairly simple way to reproduce it. 
Please read create.sh in the attached file.

I have tried this first with jboss 3.2.0-beta2, tomcat
4.1.12, and jboss 3.0.4, jetty.  Neither compiled from
source, both using the pre-compiled versions downloaded
from sourceforge.  I have run both under ibm jdk
1.3(Classic VM (build 1.3.0, J2RE 1.3.0 IBM build
cx130-20020124 (JIT enabled: jitc)), and jboss
3.2.0-beta2 under blackdown 1.4(Java HotSpot(TM) Client
VM (build Blackdown-1.4.1-beta, mixed mode)).

----------------------------------------------------------------------

>Comment By: Laurent Etiemble (letiemble)
Date: 2003-11-06 15:20

Message:
Logged In: YES 
user_id=437455

By default, JBoss maintains a unified class repository. You 
have to explicitly set-up two different class repositories for 
your two ears.

Take a look at the forums. You will find many examples.
(http://www.jboss.org/thread.jsp?forum=61&thread=41379 
for example)


----------------------------------------------------------------------

Comment By: Adam Heath (doogie)
Date: 2002-12-12 01:49

Message:
Logged In: YES 
user_id=9692

Stupid sf code didn't take the file. :|

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=652411&group_id=22866


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to