Salut,
adding the users_at_jersey as I don't think this is an Atmosphere issue.
What puzzle me is the following:
org.apache.cxf.jaxrs.provider.JSONProvider.setMessageContext(org.apache.cxf.jaxrs.ext.MessageContext)
I don't understand why cfx is needed here. Do you have another JAX-RS
provider on your project by any chance?
A+
-- Jeanfrancois
On 10-12-02 2:33 AM, Kristoffer Renholm wrote:
> Hi!
>
> I am trying Atmosphere together with Jersey to be able to broadcast
> messages to users. However on request to the Jersey endpoint, the
> following appears in the log and results in ServletException.
>
> SEVERE: The following errors and warnings have been detected with
> resource and/or provider classes:
> SEVERE: Missing dependency for method public void
> org.apache.cxf.jaxrs.provider.JSONProvider.setMessageContext(org.apache.cxf.jaxrs.ext.MessageContext)
> at parameter at index 7
> SEVERE: Missing dependency for field: private
> org.apache.cxf.jaxrs.ext.MessageContext
> org.apache.cxf.jaxrs.provider.RequestDispatcherProvider.mc
> <http://org.apache.cxf.jaxrs.provider.RequestDispatcherProvider.mc>
> SEVERE: Missing dependency for method public void
> org.apache.cxf.jaxrs.provider.JAXBElementProvider.setMessageContext(org.apache.cxf.jaxrs.ext.MessageContext)
> at parameter at index 1
> SEVERE: Missing dependency for field: private
> org.apache.cxf.jaxrs.ext.MessageContext
> org.apache.cxf.jaxrs.provider.MultipartProvider.mc
> <http://org.apache.cxf.jaxrs.provider.MultipartProvider.mc>
> SEVERE: Missing dependency for method public void
> org.apache.cxf.jaxrs.provider.JAXBElementProvider.setMessageContext(org.apache.cxf.jaxrs.ext.MessageContext)
> at parameter at index 13
> SEVERE: Missing dependency for field: private
> org.apache.cxf.jaxrs.ext.MessageContext
> org.apache.cxf.jaxrs.provider.FormEncodingProvider.mc
> <http://org.apache.cxf.jaxrs.provider.FormEncodingProvider.mc>
>
> Part of stacktrace:
>
> SEVERE: Allocate exception for servlet AtmosphereServlet
> javax.servlet.ServletException
> at
> org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:540)
> at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
> at
> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:809)
>
> I am using Maven and have added the following dependency:
>
> <dependency>
> <groupId>org.atmosphere</groupId>
> <artifactId>atmosphere-jersey</artifactId>
> <version>0.6.3</version>
> </dependency>
>
> Any one know what is missing? Thanks!
>
> This question is also posted on Stackoverflow,
> http://stackoverflow.com/questions/4326904/missing-dependencies-with-atmosphere-and-jersey
>
> Best regards,
> Kristoffer