users@jersey.java.net

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

From: Naresh <bsnaresh_at_sun.com>
Date: Mon, 20 Apr 2009 09:49:24 +0530

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?

-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
>
>