Laurent, By design, there is a distinct class loader for each AAR. This is important to isolate services from each other. The classes in the JARs in WEB-INF/lib are loaded by the Web app class loader, which is the parent of the AAR class loaders. It is therefore normal that a class in WEB-INF/lib (or WEB-INF/classes) can't load a class from an AAR file. There are ways around this, but first you should make sure that you are not running into this issue because of a flaw in your design. What is actually the use case for this?
Andreas 2009/5/14 Laurent Even <[email protected]>: > Hi all, > > I have some classes in a jar which is located in the WEB-INF/lib directory > of my application. > I deployed several services in this application. > So far so good but.... (always a but ;) ) > I'm doing a classforname from my jar fil (WEB-INF/lib) that try to > instantiate a class inside a service (aar) > I'm getting a classnotfound exception. > I found several post on the internet talking of classnotfound exception but > only for service deployment > I also used the parameter ServiceTCCL for my service ( <parameter > name="ServiceTCCL" locked="false">composite</parameter>) without success. > > If you have any clue on how to solve this problem, please, let me know > > Bye > Laurent > > ----------------------------------------------------------- > > Un geste responsable aujourd hui pour preserver demain. > N imprimez ce message que si necessaire. > > > > Please, consider the environment before printing this email. > > ------------------------------------------------------------ >
