users@jersey.java.net

Re: [Jersey] ClassNameResourceConfig.PROPERTY_CLASSNAMES ignored with Grizzly Web and EmbeddedGlassFish test containers

From: Naresh <Srinivas.Bhimisetty_at_Sun.COM>
Date: Tue, 13 Oct 2009 16:33:24 +0530

Paul Sandoz wrote:
>
> On Oct 13, 2009, at 12:12 PM, Naresh wrote:
>
>> Hi Paul,
>>
>> that commit had fixed the problem with transformation.
>>
>
> Ah, got the wrong end of the stick!
>
>
>> But, in my case I'm working with WebAppDescriptor (test), and see
>> that the property PROPERTY_CLASSNAMES is ignored and
>> ClasspathResourceConfig is initialized when I try using the Grizzy
>> Web test container type.
>>
>
> When using the Web layer it attempts to look in certain well known
> directories of the Web app, namely WEB-INF/lib and WEB-INF/classes.
> The trouble is this approach is not very portable, so we might be
> hitting an issue w.r.t embedded GF and a limitation in Grizzly's
> servlet support.
Agree.
>
> It may also be related to the way the tests are built, do the
> following directories exist?
No. They don't exist.
>
>
> /home/naresh/workspace/tango/qe-tests/jersey-tests/core-tests/coretest2/WEB-INF/lib
>
>
> /home/naresh/workspace/tango/qe-tests/jersey-tests/core-tests/coretest2/WEB-INF/classes
>
>
>
>> The test in the attached zip file shows the behavior, just unzip it
>> and do *mvn test*.
>>
>
> I have no time to investigate at the moment, can you debug into Jersey
> and try and find the reason why the following is logged?
Sure. I'll try to do that. Is there a way where we can set the log
levels to FINEST, so that we can see what really is happening internally?

-Naresh
>
> WARNING: File,
> /home/naresh/workspace/tango/qe-tests/jersey-tests/core-tests/coretest2/WEB-INF/lib,
> is ignored, it not a directory, a jar file or a zip file
>
> Paul.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>