users@jersey.java.net

[Jersey] Re: Jersey Test Framework

From: Pavel Bucek <pavel.bucek_at_oracle.com>
Date: Tue, 09 Aug 2011 11:34:24 +0200

On 8/9/11 11:01 AM, Robertnac wrote:
> Hi Pavel,
>
> thanks for the reply. I have already any snippets from your samples.It
> worked very well,..... until now :-(
>
> If I use the following dependencies, I get the same error.
really the same error? (CNFE for org.glassfish.grizzly.Grizzly? It does
not make much sense, it should be included in your classpath by now.

how are you executing your tests? "mvn test" ... ? Or .. can you share
minimal testcase for issue you are having? I could probably sort it out
faster..
>
> <dependency>
> <groupId>com.sun.jersey.jersey-test-framework</groupId>
> <artifactId>jersey-test-framework-grizzly2</artifactId>
> <version>${jersey.version}</version>
> <scope>test</scope>
> </dependency>
>
> <dependency>
> <groupId>com.sun.jersey.jersey-test-framework</groupId>
> <artifactId>jersey-test-framework-grizzly2</artifactId>
> <version>${jersey.version}</version>
> <scope>test</scope>
> </dependency>
>
> But that aside, I want to use conscious grizzly, because I do not want
> to use servlet api 3.0.
are you using Grizzly somewhere in the runtime or just for testing?
>
> According http://jersey.java.net/nonav/documentation/latest/test-framework.html
> would need to go
>
> Any idea? The test run with java 1.6, but the project is compiled with
> 1.5. Is that bad?
it shouldn't be a problem..


>
> Regards,
>
> Robert
>
> 2011/8/9 Pavel Bucek<pavel.bucek_at_oracle.com>:
>> <dependency> <groupId>com.sun.jersey.jersey-test-framework</
>> groupId> <artifactId>jersey-test-framework-grizzly2</artifactId>
>> <version>${jersey.version}</version> <scope>test</scope> </dependency>