users@jersey.java.net

Re: [Jersey] A blog entry on using the Jersey Test Framework

From: Craig McClanahan <Craig.McClanahan_at_Sun.COM>
Date: Tue, 21 Apr 2009 00:20:48 -0700

Naresh wrote:
> MS wrote:
>
>> Naresh schrieb:
>>
>>> da_bus_at_arcor.de wrote:
>>>
>>>
>>>> Hi Naresh,
>>>>
>>>> I think you are right, the "container.type" property is not getting
>>>> set, I just get "CONTAINER TYPE :: null"
>>>>
>>>>
>>> I thought so. Which version of Maven are you using?
>>>
>>>
>> I am using Maven 2.1.0,
>>
> There you are. Appears like its a regression with Maven 2.1.0. It works
> properly with Maven v 2.0.9.
>
>
FWIW, a project team I work with (storage APIs for the Sun Cloud
initiative) has had a number of other scenarios where Maven 2.0.9 works
fine lasts a long time, but Maven 2.0.10 causes build failures. I would
be a little cautious about upgrading here.

Craig
> -Naresh
>
>> here is the complete output of "mvn -version":
>>
>> Apache Maven 2.1.0 (r755702; 2009-03-18 20:10:27+0100)
>> Java version: 1.6.0_11
>> Java home: C:\Programme\Java\jdk1.6.0_11\jre
>> Default locale: de_DE, platform encoding: Cp1252
>> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
>>
>>
>>> -Naresh
>>>
>>>
>>>> M.S.
>>>>
>>>>
>>>>
>>>>
>>>>> Hi M.S.,
>>>>>
>>>>> since you are unable to get none of those samples work with
>>>>> EmbeddedGF, and are getting the same NoSuchMethodError, I suspect the
>>>>> "container.type" property is not getting set.
>>>>>
>>>>> Can you please do this:
>>>>> 1. In one of the sample, say HelloWorld, edit the MainTest.java
>>>>> class,
>>>>> and put the following statement after the call to "super()"
>>>>> constructor:
>>>>> System.out.println("CONTAINER TYPE :: " +
>>>>> System.getProperty("container.type"));
>>>>> 2. Run the test with: mvn clean test -Dcontainer.type=EmbeddedGF
>>>>> 3. See if you get CONTAINER TYPE :: EmbeddedGF in the console
>>>>> 4. Alternatively, if you do not want to modify any code, run the
>>>>> following:
>>>>> mvn clean test -Dcontainer.type=INVALID
>>>>> You should see a BUILD FAILURE, if things are working fine.
>>>>>
>>>>> -Naresh
>>>>>
>>>>>
>>>>> da_bus_at_arcor.de wrote:(
>>>>>
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I get the same java.lang.NoSuchMethodError when I try tro run the
>>>>>> examples
>>>>>>
>>>>>>
>>>>> with EmbeddedGF and all tests pass when I use Grizzly. I'm using Java
>>>>> version 1.6.0_11 on Windows XP.
>>>>>
>>>>>
>>>>>> Cheers,
>>>>>>
>>>>>> M.S.
>>>>>>
>>>>>>
>>>> Zerreißen Sie die Netze der Phisher, Hacker und Betrüger!
>>>> Ihre Internet-Sicherheits-Seiten auf Arcor.de bieten alle Infos und
>>>> Hilfsmittel, die Sie zum sicheren Surfen brauchen! Play it safe!
>>>> http://www.arcor.de/footer-sicherheit/
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>