users@jersey.java.net

Re: [Jersey] jersey-test Glassfish dependencies

From: tarjei <tarjei_at_nu.no>
Date: Tue, 10 Nov 2009 16:14:40 +0100

Hi, I'm sorry to contact you offlist, but it seems that some of the
changes haven't reached the snapshots. Is this intentional?

INFO] Deleting directory
/home/tarjei/Workspaces/tmp/jersey-ex/helloworld/target
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] snapshot com.sun.jersey:jersey-test-framework:1.1.5-ea-SNAPSHOT:
checking for updates from maven2-repository.dev.java.net
[INFO] snapshot com.sun.jersey:jersey-test-framework:1.1.5-ea-SNAPSHOT:
checking for updates from maven-repository.dev.java.net
Downloading:
http://download.java.net/maven/2//com/sun/jersey/jersey-test-framework/1.1.5-ea-SNAPSHOT/jersey-test-framework-1.1.5-ea-SNAPSHOT.pom
8K downloaded
[INFO] [compiler:compile]
[INFO] Compiling 4 source files to
/home/tarjei/Workspaces/tmp/jersey-ex/helloworld/target/classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
Downloading:
http://download.java.net/maven/2//com/sun/jersey/jersey-test-framework/1.1.5-ea-SNAPSHOT/jersey-test-framework-1.1.5-ea-SNAPSHOT.jar
53K downloaded
[INFO] [compiler:testCompile]
[INFO] Compiling 1 source file to
/home/tarjei/Workspaces/tmp/jersey-ex/helloworld/target/test-classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure
/home/tarjei/Workspaces/tmp/jersey-ex/helloworld/src/test/java/com/sun/jersey/samples/helloworld/MainTest.java:[59,16]
cannot find symbol
symbol : method
contextAttributeListenerClass(java.lang.Class<com.sun.jersey.samples.helloworld.listeners.MyContextAttributeListener>)
location: class com.sun.jersey.test.framework.WebAppDescriptor.Builder



/home/tarjei/Workspaces/tmp/jersey-ex/helloworld/src/test/java/com/sun/jersey/samples/helloworld/MainTest.java:[59,16]
cannot find symbol
symbol : method
contextAttributeListenerClass(java.lang.Class<com.sun.jersey.samples.helloworld.listeners.MyContextAttributeListener>)
location: class com.sun.jersey.test.framework.WebAppDescriptor.Builder


On 11/10/2009 11:55 AM, Naresh wrote:
> Hi,
>
> Naresh wrote:
>> Hi Tarjei,
>>
>> tarjei wrote:
>>> Hi,
>>> On 11/09/2009 02:07 PM, Paul Sandoz wrote:
>>>>
>>>> On Nov 9, 2009, at 1:58 PM, tarjei wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> What is the correct way to setup the glassfish dependencies i when
>>>>> using 1.1.5-SNAPSHOT? I get errors when trying to use jersey-test
>>>>> without excluding the glassfish dependency.
>>>>>
>>>>
>>>> This is a bug in the dependencies.
>>>>
>>>> After the test framework was re-factored it was no longer necessary to
>>>> include all such dependencies on all supported containers. And the
>>>> dependencies/documentation should have been updated to reflect this.
>>>>
>>>> For ease of use we should depend on Grizzly (which could be excluded
>>>> too
>>>> as there is no hard coded requirement for that, expect it is the
>>>> default
>>>> test container loaded if no other is specified and it can be loaded),
>>>> and we can remove the other dependencies and document what they are.
>>>>
>>>> Could you log an issue?
>>> Done.
>>>
>>> One problem with Grizzly is that it seems not to work with
>>> .filterClass(RequestContextFilter.class) so I'm waiting for issue 407
>>> to be resolved.
>> I'm sorry. I could not work on this. I'll work on it tomorrow.
> I have just checked in the fix for this issue
> https://jersey.dev.java.net/issues/show_bug.cgi?id=407 in the trunk
> (1.1.5-ea-SNAPSHOT).
>
> The framework now supports the following listener classes, they could be
> set by calling the appropriate methods in the Builder design pattern:
> ServletContextListener, ServletContextAttributeListener,
> ServletRequestListener, ServletRequestAttributeListener
>
> The attached sample shows how they could be set.
>
> Thanks,
> Naresh
>>
>> Thanks for reporting these issues and helping us make the framework a
>> better one :)
>>
>> -Naresh
>>>
>>> Regards,
>>> Tarjei
>>>>
>>>> Thanks,
>>>> Paul.
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>>>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>>>
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net


-- 
Tarjei Huse
Mobil: 920 63 413