users@jersey.java.net

[Jersey] Re: Error while running the Hello World sample project

From: Pavel Bucek <pavel.bucek_at_oracle.com>
Date: Wed, 09 Mar 2011 13:44:05 +0100

Hello Vigi,

thats pretty old blog post. Can you please try [1,2]?

Thanks,
Pavel

[1]
http://download.java.net/maven/2/com/sun/jersey/samples/helloworld/1.5/helloworld-1.5-project.zip
[2]
http://download.java.net/maven/2/com/sun/jersey/samples/helloworld-webapp/1.5/helloworld-webapp-1.5-project.zip

On 03/09/2011 01:38 PM, Viji.Varghese_at_cognizant.com wrote:
> Hi,
>
> I am getting the following error while running the
> sample Hello world project shared in the site:
> http://blogs.sun.com/naresh/entry/jersey_test_framework_makes_it
>
>
>
> Error log:
>
> Exception in thread "main" java.lang.NoSuchMethodError:
> com.sun.grizzly.tcp.http11.GrizzlyAdapter.setResourcesContextPath(Ljava/
> lang/String;)V
>
> at
> com.sun.jersey.api.container.grizzly.GrizzlyServerFactory.create(Grizzly
> ServerFactory.java:265)
>
> at
> com.sun.jersey.api.container.grizzly.GrizzlyWebContainerFactory.create(G
> rizzlyWebContainerFactory.java:245)
>
> at
> com.sun.jersey.api.container.grizzly.GrizzlyWebContainerFactory.create(G
> rizzlyWebContainerFactory.java:135)
>
> at
> com.sun.jersey.api.container.grizzly.GrizzlyWebContainerFactory.create(G
> rizzlyWebContainerFactory.java:102)
>
> at com.lexisnexis.jersey.main.Main.main(Main.java:28)
>
>
>
> I have added the grizzly-servlet-webserver-1.8.3.jar in the build path.
> But the error seems to be exactly in this jar.
>
>
>
> Regards,
>
> Viji
>
>
> This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.
> If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
> Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful.
>
>