users@grizzly.java.net

Re: java.lang.NoSuchMethodError i BayeuxParser

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Thu, 07 May 2009 09:51:13 -0400

Salut,

vassilux wrote:
> Hi Alls,
> I use Netbeans IDE 6.5.1 and Glasfish prelude V3 and try to implement my
> DummyEventHandlerImpl in my cometd servlet.
> I added in my project : grizzly-cometd-1.9.9.jar,
> grizzly-http-1.9.9.jar, grizzly-utils-1.9.9.jar.
> Son I got this error
> java.lang.NoSuchMethodError:
> com.sun.grizzly.cometd.DataHandler.<init>(Lcom/sun/grizzly/cometd/BayeuxParser;)V
>
> at
> com.sun.grizzly.cometd.BayeuxParser.onSubscribe(BayeuxParser.java:277)
> at com.sun.grizzly.cometd.BayeuxParser.parse(BayeuxParser.java:144)
> at
> com.aliant.comet.dummy.DummyEventRouterImpl.route(DummyEventRouterImpl.java:70)
>
> What is missing ?

The way grizzly is bundled in Prelude is a little bogus, e.g. if you
look under glassfish.home/modules, you will see two files:

grizzly-modules.jar
grizzly-extra.jar

You need to use those API and not the one from 1.9.9 as they might differ.

> Any idea ?

That's a painful situation that has been fixed since then. Can you use a
newer version of v3? That way you can drop Grizzly OSGi modules directly
under glassfish/modules/ without any problems.

Thanks

-- Jeanfrancois

> Thanks
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>