users@glassfish.java.net

Re: Problem using CXF on Glassfish 3.1.1: keep getting the Metro implementation

From: Andreas Loew <Andreas.Loew_at_oracle.com>
Date: Tue, 10 Jan 2012 12:17:19 +0100

Hi Fabien,

Am 10.01.2012 01:06, schrieb forums_at_java.net:
> the webapp needs to access some resurces which are packaged as JARs in
> the EAR, and if I set
> delegate=false, then they are not seen anymore by the webapp.
can you describe the exact issue that you are seeing with delegate=false
in more detail (including the stack trace and the EAR and enclosed WAR
structure)? I strongly assume that this issue should be solvable, and
delegate=false the correct way forward.

Note that even a "non-delegating" web app classloader is not unable to
see classes/resources from its parent (the EAR/"EJB container"
classloader), but it will only see them in case it has no resource with
the same name available locally.

At the place where you see the issue, are you sure that the thread
context classloader (i.e. the web app classloader) is correctly being
used to look for the resource in the EAR?

Hope this helps & best regards,

Andreas

-- 
Andreas Loew | Senior Java Architect
Oracle Advanced Customer Services
ORACLE Germany