users@grizzly.java.net

Re: removeCometHandler Error

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Tue, 26 May 2009 10:43:49 -0400

Salut,

Umar Farman wrote:
> Dear Jean,

Jeanfrancois :-)

>
> Hope you are fine. You are right that it is a Runtime error. Are these
> two functions:
>
> public void removeCometHandler(CometHandler handler)
>
> and
>
> public boolean removeCometHandler(CometHandler handler, boolean resume)
>
> in two different classes?
>
> Because my code runs without error with the first function but gives the
> "NoSuchMethodError" on second function only.
>
> Also, to let you know I'm using Netbeans6.5 with GlassFish v2 that comes
> with it, i.e, glassfishv2-ur2 and grizzly-framework-http-1.0.29.jar.

I'm not an expert with NB, but you need to edit the
${glassfish.home}/domains/domain1/config/domain.xml

search for java-options and add the path to the
grizzly-framework-http-1.0.29.jar to it so it replace the default
grizzly that ship with GF v2ur2.

Let me know how it goes.

Thanks!

-- Jeanfrancois


>
> Can you let me know as to how can I fix my classpath.
>
> Thank you so much
>
> Regards,
> Umar Farman
> Software Engineer
> PakVista Technologies Co. (Pvt) Ltd.
> Office No.18, 3rd Floor, Select Center,
> F-11 Markaz - Islamabad.
> Office: +92 51 831 4504-5
> Cell : +92 3333 525 4003
> URL: www.pakvistatech.com <http://www.pakvistatech.com>
> <http://www.pakvistatech.com/>