groovy - unable to find com.sun.grizzly.tcp.http11.GrizzlyAdapter.setResourcesContextPath(String) -
i trying expose groovy service jersey , girzzly. got wierd error when i'm launching servlet container. here snippet lauch it:
servletadapter adapter = new servletadapter(); injector injector = guice.createinjector(new gmediamodule()); guicecontainer container = new guicecontainer(injector); adapter.setservletinstance(container); adapter.setcontextpath("gmedia") adapter.addinitparameter("com.sun.jersey.config.property.packages", "gmedia.api.music.resources"); threadselector = grizzlyserverfactory.create(base_uri, adapter);
here error:
java.lang.nosuchmethoderror: com.sun.grizzly.tcp.http11.grizzlyadapter.setresourcescontextpath(ljava/lang/string;)v
the error occurs @ grizzlyserveletfactory.create. i'm wordering why error occurs since metod exist on oject?
sorry idiot. here i'm using grizzlywebserver ws = new grizzlywebserver(9999);
servletadapter adapter = new servletadapter(); injector injector = guice.createinjector(new gmediamodule()); guicecontainer container = new guicecontainer(injector); adapter.setservletinstance(container); adapter.addinitparameter("com.sun.jersey.config.property.packages", "gmedia.api.music.resources"); ws.addgrizzlyadapter(adapter); ws.start()
Comments
Post a Comment