Hi, yesterday I had a (temporary) problem with the EAR-scoping: involved were - some common-xxx.jars with common code, - some ejb-xxx.jars all using this common code, - all of this in one big ear with ear-scoping.
Fine so far, all of this had run before without ear-scoping. But my application.xml did not list any <java>common-xxx.jar</java> as they were instead listed in the META-INF/MANIFEST.MF[Classpath:] of each ejb-xxx.jar. The glory effect was: All classes were found (each only once), but the common-xxx.jar classes got loaded by different classloaders so the JVM complained when package-private methods were invoked. I understand you cannot avoid this when loading the common-xxx.jar classes through the classloaders of each ejb-xxx.jar. (and as a side note: when I did instead put all references into the application.xml everything ran fine again, so why do I complain :-) But my questions are: - Shouldn't I have had the same problems without ear-scoping? (Thinking of it again this might only a be due to a race condition, cause when all common classes were used and loaded by one classloader first, there wouldn't be "mixed loading"). - Is this "officially expected behavior" or couldn't (shouldn't) we use yet another shared classloader for the META-INF/MANIFEST.MF[Classpath:] references? Enjoy, Michael ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
