users@grizzly.java.net

Grizzly atmosphere issue

From: Abhishek Soni <abhishek_soni_at_persistent.co.in>
Date: Wed, 3 Apr 2013 09:27:02 +0000

Hello,

I am using grizzly-web-server 1.9.55 with atmosphere-jersey 1.0.12 with jersey-json 1.12.

It works fine on eclipse but after build using maven I am getting following exception while execution:

[Apr 2, 2013 06:24:06.868 -0400][ServiceFinder:filterServiceURLsWithVersion:68:CONFIG] Ignoring service URL: jar:file:/export/home/trueposition/platform/lib/jersey-server-1.12.jar!/META-INF/services/com.sun.jersey.spi.container.WebApplicationProvider

[Apr 2, 2013 06:24:06.882 -0400][AtmosphereFramework:init:68:SEVERE] Failed to initialize Atmosphere Framework
com.sun.jersey.api.container.ContainerException: No WebApplication provider is present
                at com.sun.jersey.spi.container.WebApplicationFactory.createWebApplication(WebApplicationFactory.java:69)
                at com.sun.jersey.spi.container.servlet.ServletContainer.create(ServletContainer.java:391)
                at com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent.create(ServletContainer.java:306)
                at com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java:605)
                at com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:208)
                at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:373)
                at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:556)
                at javax.servlet.GenericServlet.init(GenericServlet.java:241)
                at org.atmosphere.util.AtmosphereFilterChain.init(AtmosphereFilterChain.java:125)
                at org.atmosphere.handler.ReflectorServletProcessor$FilterChainServletWrapper.init(ReflectorServletProcessor.java:294)
                at org.atmosphere.handler.ReflectorServletProcessor.init(ReflectorServletProcessor.java:185)
                at org.atmosphere.cpr.AtmosphereFramework.initAtmosphereHandler(AtmosphereFramework.java:912)
                at org.atmosphere.cpr.AtmosphereFramework.init(AtmosphereFramework.java:532)
                at org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:196)
                at com.sun.grizzly.http.servlet.ServletAdapter.loadServlet(ServletAdapter.java:486)
                at com.sun.grizzly.http.servlet.ServletAdapter.doService(ServletAdapter.java:425)
                at com.sun.grizzly.http.servlet.ServletAdapter.service(ServletAdapter.java:379)
                at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
                at com.sun.grizzly.tcp.http11.GrizzlyAdapterChain.service(GrizzlyAdapterChain.java:196)
                at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
                at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:864)
                at com.sun.grizzly.comet.CometEngine.executeServlet(CometEngine.java:464)
                at com.sun.grizzly.comet.CometEngine.handle(CometEngine.java:318)
                at com.sun.grizzly.comet.CometAsyncFilter.doFilter(CometAsyncFilter.java:87)
                at com.sun.grizzly.arp.DefaultAsyncExecutor.invokeFilters(DefaultAsyncExecutor.java:171)
                at com.sun.grizzly.arp.DefaultAsyncExecutor.interrupt(DefaultAsyncExecutor.java:143)
                at com.sun.grizzly.arp.AsyncProcessorTask.doTask(AsyncProcessorTask.java:102)
                at com.sun.grizzly.http.TaskBase.run(TaskBase.java:193)
                at com.sun.grizzly.http.TaskBase.execute(TaskBase.java:175)
                at com.sun.grizzly.arp.DefaultAsyncHandler.handle(DefaultAsyncHandler.java:145)
                at com.sun.grizzly.arp.AsyncProtocolFilter.execute(AsyncProtocolFilter.java:210)
                at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
                at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
                at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
                at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
                at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
                at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
                at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
                at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
                at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
                at java.lang.Thread.run(Thread.java:662)


Please provide any workaround.
Why is it ignoring jersey-server-1.12.jar!/META-INF/services/com.sun.jersey.spi.container.WebApplicationProvider

Thanks,
Abhishek Soni


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.