Jersey/Atmosphere/com.sun.jersey.spi.spring.container.servlet.SpringServlet

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Jersey/Atmosphere/com.sun.jersey.spi.spring.container.servlet.SpringServlet

Nikola Ilo
Hello,

It seems that it is not possible to use atmosphere and jersey-spring in combination.

As long as I load only ressources in the webservice.webservice.atmo package, everything works fine.

As soon as I use spring to initialize a ressource containing  "private @PathParam("topic") Broadcaster topic;" (demo chat with @Path("/chat/{topic}")) things get weird.

This is the message i get:

The following errors and warnings have been detected with resource and/or provider classes:
  SEVERE: Missing dependency for field: private org.atmosphere.cpr.Broadcaster webservice.atmo.AtmosphereTestResource.topic

I tried circumventing this but haven't been successful yet. Is there a workaround? Can I somehow help to fix this?

I think atmosphere somehow fails to let the jersey-springservlet know it provides the Broadcaster.

Besides this specific problem atmosphere is really awesome :-) thx @ the developers for this great tool.

Jersey fails to load with the following Messages:

13.04.2011 00:52:24 com.mchange.v2.log.MLog <clinit>
INFO: MLog clients using java 1.4+ standard logging.
13.04.2011 00:52:24 com.mchange.v2.c3p0.C3P0Registry banner
INFO: Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]
2011-04-13 00:52:24.236:INFO::No Transaction manager found - if your webapp requires one, please configure one.
2011-04-13 00:52:28.054:INFO:/:Initializing Spring root WebApplicationContext
2011-04-13 00:52:29.249:INFO::Started SelectChannelConnector@0.0.0.0:8080
[INFO] Started Jetty Server
[INFO] Starting scanner at interval of 1 seconds.
2011-04-13 00:52:41,379 [qtp12581946-17] INFO  org.atmosphere.cpr.AtmosphereServlet - initializing atmosphere framework: 0.7.1
2011-04-13 00:52:41,385 [qtp12581946-17] INFO  org.atmosphere.cpr.AtmosphereServlet - using default broadcaster class: class org.atmosphere.cpr.DefaultBroadcaster
2011-04-13 00:52:41,403 [qtp12581946-17] INFO  org.atmosphere.cpr.AtmosphereServlet - successfully loaded handler: org.atmosphere.handler.ReflectorServletProcessor@cf7bf3 mapped to context-path: /*
2011-04-13 00:52:41,437 [qtp12581946-17] INFO  org.atmosphere.cpr.AtmosphereServlet - Atmosphere is using comet support: org.atmosphere.container.Servlet30Support running under container: jetty/8.0.0.M2 using javax.servlet/3.0
2011-04-13 00:52:41,437 [qtp12581946-17] INFO  org.atmosphere.cpr.AtmosphereServlet - using broadcaster class: org.atmosphere.cpr.DefaultBroadcaster
2011-04-13 00:52:41,463 [qtp12581946-17] INFO  org.atmosphere.handler.ReflectorServletProcessor - Installing Servlet com.sun.jersey.spi.spring.container.servlet.SpringServlet
13.04.2011 00:52:41 com.sun.jersey.api.core.PackagesResourceConfig init
INFO: Scanning for root resource and provider classes in the packages:
  webservice.atmo
13.04.2011 00:52:41 com.sun.jersey.api.core.ScanningResourceConfig logClasses
INFO: Root resource classes found:
  class webservice.atmo.AtmosphereTestResource
13.04.2011 00:52:41 com.sun.jersey.api.core.ScanningResourceConfig init
INFO: No provider classes found.
13.04.2011 00:52:41 com.sun.jersey.spi.spring.container.servlet.SpringServlet getContext
INFO: Using default applicationContext
13.04.2011 00:52:41 com.sun.jersey.spi.spring.container.SpringComponentProviderFactory registerSpringBeans
INFO: Registering Spring bean, sof, of type webservice.atmo.AtmosphereTestResource as a root resource class
13.04.2011 00:52:41 com.sun.jersey.spi.spring.container.SpringComponentProviderFactory registerSpringBeans
INFO: Registering Spring bean, messagestreamressource, of type webservice.MessageStreamRessource as a root resource class
13.04.2011 00:52:41 com.sun.jersey.spi.spring.container.SpringComponentProviderFactory registerSpringBeans
INFO: Registering Spring bean, userressource, of type webservice.UserRessource as a root resource class
13.04.2011 00:52:41 com.sun.jersey.spi.spring.container.SpringComponentProviderFactory registerSpringBeans
INFO: Registering Spring bean, sessionRessource, of type webservice.SessionRessource as a root resource class
13.04.2011 00:52:41 com.sun.jersey.spi.spring.container.SpringComponentProviderFactory registerSpringBeans
INFO: Adding the following classes declared in META-INF/services/jersey-server-components to the resource configuration:
  class org.atmosphere.jersey.AtmosphereResourceConfigurator
2011-04-13 00:52:42,213 [Thread-13] INFO  org.atmosphere.ping.AtmospherePing - AtmospherePing sent for project statistics: 404. Remove WEB-INF/lib/atmosphere-ping.jar to remove that message or exclude the jar in your pom.xml
13.04.2011 00:52:42 com.sun.jersey.spi.inject.Errors processErrorMessages
SEVERE: The following errors and warnings have been detected with resource and/or provider classes:
  SEVERE: Missing dependency for field: private org.atmosphere.cpr.Broadcaster webservice.atmo.AtmosphereTestResource.topic
13.04.2011 00:52:42 com.sun.jersey.spi.spring.container.servlet.SpringServlet initiate
SEVERE: Exception occurred when intialization
com.sun.jersey.spi.inject.Errors$ErrorMessagesException
        at com.sun.jersey.spi.inject.Errors.processErrorMessages(Errors.java:170)
        at com.sun.jersey.spi.inject.Errors.postProcess(Errors.java:136)
        at com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:199)
        at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:690)
        at com.sun.jersey.spi.spring.container.servlet.SpringServlet.initiate(SpringServlet.java:117)
        at com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent.initiate(ServletContainer.java:318)
        at com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java:601)
        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:242)
        at org.atmosphere.util.AtmosphereFilterChain.init(AtmosphereFilterChain.java:109)
        at org.atmosphere.handler.ReflectorServletProcessor$FilterChainServletWrapper.init(ReflectorServletProcessor.java:274)
        at org.atmosphere.handler.ReflectorServletProcessor.init(ReflectorServletProcessor.java:165)
        at org.atmosphere.cpr.AtmosphereServlet.initAtmosphereServletProcessor(AtmosphereServlet.java:834)
        at org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:600)
        at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:444)
        at org.eclipse.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:343)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:523)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:483)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:516)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:230)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:956)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:411)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:188)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:891)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
        at org.eclipse.jetty.server.Server.handle(Server.java:353)
        at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:598)
        at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1059)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:590)
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:212)
        at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:427)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:510)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:450)
        at java.lang.Thread.run(Thread.java:662)
2011-04-13 00:52:42,612 [qtp12581946-17] ERROR org.atmosphere.cpr.AtmosphereServlet - failed to initialize atmosphere framework
com.sun.jersey.spi.inject.Errors$ErrorMessagesException
        at com.sun.jersey.spi.inject.Errors.processErrorMessages(Errors.java:170)
        at com.sun.jersey.spi.inject.Errors.postProcess(Errors.java:136)
        at com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:199)
        at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:690)
        at com.sun.jersey.spi.spring.container.servlet.SpringServlet.initiate(SpringServlet.java:117)
        at com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent.initiate(ServletContainer.java:318)
        at com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java:601)
        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:242)
        at org.atmosphere.util.AtmosphereFilterChain.init(AtmosphereFilterChain.java:109)
        at org.atmosphere.handler.ReflectorServletProcessor$FilterChainServletWrapper.init(ReflectorServletProcessor.java:274)
        at org.atmosphere.handler.ReflectorServletProcessor.init(ReflectorServletProcessor.java:165)
        at org.atmosphere.cpr.AtmosphereServlet.initAtmosphereServletProcessor(AtmosphereServlet.java:834)
        at org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:600)
        at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:444)
        at org.eclipse.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:343)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:523)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:483)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:516)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:230)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:956)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:411)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:188)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:891)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
        at org.eclipse.jetty.server.Server.handle(Server.java:353)
        at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:598)
        at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1059)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:590)
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:212)
        at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:427)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:510)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:450)
        at java.lang.Thread.run(Thread.java:662)
2011-04-13 00:52:42.629:WARN:/:unavailable
javax.servlet.ServletException
        at org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:611)
        at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:444)
        at org.eclipse.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:343)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:523)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:483)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:516)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:230)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:956)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:411)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:188)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:891)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
        at org.eclipse.jetty.server.Server.handle(Server.java:353)
        at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:598)
        at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1059)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:590)
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:212)
        at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:427)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:510)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:450)
        at java.lang.Thread.run(Thread.java:662)
2011-04-13 00:52:42.663:WARN::/api/chat/h4ck3r
javax.servlet.ServletException
        at org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:611)
        at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:444)
        at org.eclipse.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:343)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:523)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:483)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:516)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:230)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:956)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:411)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:188)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:891)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
        at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
        at org.eclipse.jetty.server.Server.handle(Server.java:353)
        at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:598)
        at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1059)
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:590)
        at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:212)
        at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:427)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:510)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
        at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:450)
        at java.lang.Thread.run(Thread.java:662)
2011-04-13 00:52:43,034 [Thread-14] INFO  org.atmosphere.ping.AtmospherePing - AtmospherePing sent for project statistics: 404. Remove WEB-INF/lib/atmosphere-ping.jar to remove that message or exclude the jar in your pom.xml

my atmosphere.xml looks like this:
<atmosphere-handlers>
    <atmosphere-handler context-root="/*"
                        class-name="org.atmosphere.handler.ReflectorServletProcessor">
        <property name="servletClass"
                  value="com.sun.jersey.spi.spring.container.servlet.SpringServlet"/>
    </atmosphere-handler>
</atmosphere-handlers>

my web.xml looks like this:
  <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>classpath:spring-config.xml</param-value>
    </context-param>
    <listener>
        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>

    <servlet>
        <description>Jersey and Atmosphere API</description>
        <servlet-name>API</servlet-name>
       <servlet-class>org.atmosphere.cpr.AtmosphereServlet</servlet-class>
            <init-param>
            <param-name>com.sun.jersey.config.property.packages</param-name>
            <param-value>webservice.webservice.atmo</param-value>
        </init-param>
        <init-param>
            <param-name>org.atmosphere.cpr.broadcastFilterClasses</param-name>
            <param-value>org.atmosphere.client.FormParamFilter,org.atmosphere.client.JavascriptClientFilter
            </param-value>
        </init-param>

    </servlet>

    <servlet-mapping>
        <servlet-name>API</servlet-name>
        <url-pattern>/api/*</url-pattern>
    </servlet-mapping>


Part of my maven dependencies:
<properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <activitycloud.springframework.version>3.0.5.RELEASE</activitycloud.springframework.version>
        <activitycloud.jersey.version>1.6</activitycloud.jersey.version>
        <activitycloud.atmosphere.version>0.7.1</activitycloud.atmosphere.version>
        <activitycloud.jetty.version>8.0.0.M2</activitycloud.jetty.version>
</properties>

       
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-json</artifactId>
            <version>${activitycloud.jersey.version}</version>
        </dependency>
        <dependency>
            <groupId>com.sun.jersey.contribs</groupId>
            <artifactId>jersey-spring</artifactId>
            <version>${activitycloud.jersey.version}</version>
            <exclusions>
                <exclusion>
                    <artifactId>spring-core</artifactId>
                    <groupId>org.springframework</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>spring-aop</artifactId>
                    <groupId>org.springframework</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>spring-beans</artifactId>
                    <groupId>org.springframework</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>spring-context</artifactId>
                    <groupId>org.springframework</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>spring-web</artifactId>
                    <groupId>org.springframework</groupId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context-support</artifactId>
             <version>${activitycloud.springframework.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-core</artifactId>
             <version>${activitycloud.springframework.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-beans</artifactId>
             <version>${activitycloud.springframework.version}</version>
        </dependency>

        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-server</artifactId>
            <version>${activitycloud.jersey.version}</version>
        </dependency>
   
        <dependency>
            <groupId>org.atmosphere</groupId>
            <artifactId>atmosphere-jersey</artifactId>
            <version>${activitycloud.atmosphere.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>com.sun.jersey</groupId>
                    <artifactId>jersey-server</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-web</artifactId>
            <version>${activitycloud.springframework.version}</version>
        </dependency>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Jersey/Atmosphere/com.sun.jersey.spi.spring.container.servlet.SpringServlet

Jeanfrancois Arcand-4
Salut,

apology for the delay.

On 11-04-12 7:14 PM, Nikola Ilo wrote:

> Hello,
>
> It seems that it is not possible to use atmosphere and jersey-spring in
> combination.
>
> As long as I load only ressources in the webservice.webservice.atmo package,
> everything works fine.
>
> As soon as I use spring to initialize a ressource containing  "private
> @PathParam("topic") Broadcaster topic;" (demo chat with
> @Path("/chat/{topic}")) things get weird.
>
> This is the message i get:
>
> The following errors and warnings have been detected with resource and/or
> provider classes:
>    SEVERE: Missing dependency for field: private
> org.atmosphere.cpr.Broadcaster webservice.atmo.AtmosphereTestResource.topic
>
> I tried circumventing this but haven't been successful yet. Is there a
> workaround? Can I somehow help to fix this?

Can you share a test case? I think the issue is Atmosphere's Injection
mechanism is not invoked.

Also if you do:

@Path("/chat/{topic}"))
public .... chat(@Context Broadcaster topic) {...}

does it help?

>
> I think atmosphere somehow fails to let the jersey-springservlet know it
> provides the Broadcaster.
>
> Besides this specific problem atmosphere is really awesome :-) thx @ the
> developers for this great tool.

Thanks!

-- Jeanfrancois

>
> Jersey fails to load with the following Messages:
>
> 13.04.2011 00:52:24 com.mchange.v2.log.MLog
> INFO: MLog clients using java 1.4+ standard logging.
> 13.04.2011 00:52:24 com.mchange.v2.c3p0.C3P0Registry banner
> INFO: Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true;
> trace: 10]
> 2011-04-13 00:52:24.236:INFO::No Transaction manager found - if your webapp
> requires one, please configure one.
> 2011-04-13 00:52:28.054:INFO:/:Initializing Spring root
> WebApplicationContext
> 2011-04-13 00:52:29.249:INFO::Started SelectChannelConnector@0.0.0.0:8080
> [INFO] Started Jetty Server
> [INFO] Starting scanner at interval of 1 seconds.
> 2011-04-13 00:52:41,379 [qtp12581946-17] INFO
> org.atmosphere.cpr.AtmosphereServlet - initializing atmosphere framework:
> 0.7.1
> 2011-04-13 00:52:41,385 [qtp12581946-17] INFO
> org.atmosphere.cpr.AtmosphereServlet - using default broadcaster class:
> class org.atmosphere.cpr.DefaultBroadcaster
> 2011-04-13 00:52:41,403 [qtp12581946-17] INFO
> org.atmosphere.cpr.AtmosphereServlet - successfully loaded handler:
> org.atmosphere.handler.ReflectorServletProcessor@cf7bf3 mapped to
> context-path: /*
> 2011-04-13 00:52:41,437 [qtp12581946-17] INFO
> org.atmosphere.cpr.AtmosphereServlet - Atmosphere is using comet support:
> org.atmosphere.container.Servlet30Support running under container:
> jetty/8.0.0.M2 using javax.servlet/3.0
> 2011-04-13 00:52:41,437 [qtp12581946-17] INFO
> org.atmosphere.cpr.AtmosphereServlet - using broadcaster class:
> org.atmosphere.cpr.DefaultBroadcaster
> 2011-04-13 00:52:41,463 [qtp12581946-17] INFO
> org.atmosphere.handler.ReflectorServletProcessor - Installing Servlet
> com.sun.jersey.spi.spring.container.servlet.SpringServlet
> 13.04.2011 00:52:41 com.sun.jersey.api.core.PackagesResourceConfig init
> INFO: Scanning for root resource and provider classes in the packages:
>    webservice.atmo
> 13.04.2011 00:52:41 com.sun.jersey.api.core.ScanningResourceConfig
> logClasses
> INFO: Root resource classes found:
>    class webservice.atmo.AtmosphereTestResource
> 13.04.2011 00:52:41 com.sun.jersey.api.core.ScanningResourceConfig init
> INFO: No provider classes found.
> 13.04.2011 00:52:41
> com.sun.jersey.spi.spring.container.servlet.SpringServlet getContext
> INFO: Using default applicationContext
> 13.04.2011 00:52:41
> com.sun.jersey.spi.spring.container.SpringComponentProviderFactory
> registerSpringBeans
> INFO: Registering Spring bean, sof, of type
> webservice.atmo.AtmosphereTestResource as a root resource class
> 13.04.2011 00:52:41
> com.sun.jersey.spi.spring.container.SpringComponentProviderFactory
> registerSpringBeans
> INFO: Registering Spring bean, messagestreamressource, of type
> webservice.MessageStreamRessource as a root resource class
> 13.04.2011 00:52:41
> com.sun.jersey.spi.spring.container.SpringComponentProviderFactory
> registerSpringBeans
> INFO: Registering Spring bean, userressource, of type
> webservice.UserRessource as a root resource class
> 13.04.2011 00:52:41
> com.sun.jersey.spi.spring.container.SpringComponentProviderFactory
> registerSpringBeans
> INFO: Registering Spring bean, sessionRessource, of type
> webservice.SessionRessource as a root resource class
> 13.04.2011 00:52:41
> com.sun.jersey.spi.spring.container.SpringComponentProviderFactory
> registerSpringBeans
> INFO: Adding the following classes declared in
> META-INF/services/jersey-server-components to the resource configuration:
>    class org.atmosphere.jersey.AtmosphereResourceConfigurator
> 2011-04-13 00:52:42,213 [Thread-13] INFO  org.atmosphere.ping.AtmospherePing
> - AtmospherePing sent for project statistics: 404. Remove
> WEB-INF/lib/atmosphere-ping.jar to remove that message or exclude the jar in
> your pom.xml
> 13.04.2011 00:52:42 com.sun.jersey.spi.inject.Errors processErrorMessages
> SEVERE: The following errors and warnings have been detected with resource
> and/or provider classes:
>    SEVERE: Missing dependency for field: private
> org.atmosphere.cpr.Broadcaster webservice.atmo.AtmosphereTestResource.topic
> 13.04.2011 00:52:42
> com.sun.jersey.spi.spring.container.servlet.SpringServlet initiate
> SEVERE: Exception occurred when intialization
> com.sun.jersey.spi.inject.Errors$ErrorMessagesException
> at com.sun.jersey.spi.inject.Errors.processErrorMessages(Errors.java:170)
> at com.sun.jersey.spi.inject.Errors.postProcess(Errors.java:136)
> at com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:199)
> at
> com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:690)
> at
> com.sun.jersey.spi.spring.container.servlet.SpringServlet.initiate(SpringServlet.java:117)
> at
> com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent.initiate(ServletContainer.java:318)
> at
> com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java:601)
> 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:242)
> at
> org.atmosphere.util.AtmosphereFilterChain.init(AtmosphereFilterChain.java:109)
> at
> org.atmosphere.handler.ReflectorServletProcessor$FilterChainServletWrapper.init(ReflectorServletProcessor.java:274)
> at
> org.atmosphere.handler.ReflectorServletProcessor.init(ReflectorServletProcessor.java:165)
> at
> org.atmosphere.cpr.AtmosphereServlet.initAtmosphereServletProcessor(AtmosphereServlet.java:834)
> at org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:600)
> at
> org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:444)
> at
> org.eclipse.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:343)
> at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:523)
> at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:483)
> at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
> at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:516)
> at
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:230)
> at
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:956)
> at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:411)
> at
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:188)
> at
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:891)
> at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
> at
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
> at
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
> at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
> at org.eclipse.jetty.server.Server.handle(Server.java:353)
> at
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:598)
> at
> org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1059)
> at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:590)
> at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:212)
> at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:427)
> at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:510)
> at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
> at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:450)
> at java.lang.Thread.run(Thread.java:662)
> 2011-04-13 00:52:42,612 [qtp12581946-17] ERROR
> org.atmosphere.cpr.AtmosphereServlet - failed to initialize atmosphere
> framework
> com.sun.jersey.spi.inject.Errors$ErrorMessagesException
> at com.sun.jersey.spi.inject.Errors.processErrorMessages(Errors.java:170)
> at com.sun.jersey.spi.inject.Errors.postProcess(Errors.java:136)
> at com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:199)
> at
> com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:690)
> at
> com.sun.jersey.spi.spring.container.servlet.SpringServlet.initiate(SpringServlet.java:117)
> at
> com.sun.jersey.spi.container.servlet.ServletContainer$InternalWebComponent.initiate(ServletContainer.java:318)
> at
> com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java:601)
> 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:242)
> at
> org.atmosphere.util.AtmosphereFilterChain.init(AtmosphereFilterChain.java:109)
> at
> org.atmosphere.handler.ReflectorServletProcessor$FilterChainServletWrapper.init(ReflectorServletProcessor.java:274)
> at
> org.atmosphere.handler.ReflectorServletProcessor.init(ReflectorServletProcessor.java:165)
> at
> org.atmosphere.cpr.AtmosphereServlet.initAtmosphereServletProcessor(AtmosphereServlet.java:834)
> at org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:600)
> at
> org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:444)
> at
> org.eclipse.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:343)
> at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:523)
> at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:483)
> at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
> at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:516)
> at
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:230)
> at
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:956)
> at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:411)
> at
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:188)
> at
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:891)
> at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
> at
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
> at
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
> at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
> at org.eclipse.jetty.server.Server.handle(Server.java:353)
> at
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:598)
> at
> org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1059)
> at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:590)
> at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:212)
> at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:427)
> at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:510)
> at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
> at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:450)
> at java.lang.Thread.run(Thread.java:662)
> 2011-04-13 00:52:42.629:WARN:/:unavailable
> javax.servlet.ServletException
> at org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:611)
> at
> org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:444)
> at
> org.eclipse.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:343)
> at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:523)
> at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:483)
> at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
> at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:516)
> at
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:230)
> at
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:956)
> at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:411)
> at
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:188)
> at
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:891)
> at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
> at
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
> at
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
> at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
> at org.eclipse.jetty.server.Server.handle(Server.java:353)
> at
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:598)
> at
> org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1059)
> at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:590)
> at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:212)
> at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:427)
> at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:510)
> at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
> at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:450)
> at java.lang.Thread.run(Thread.java:662)
> 2011-04-13 00:52:42.663:WARN::/api/chat/h4ck3r
> javax.servlet.ServletException
> at org.atmosphere.cpr.AtmosphereServlet.init(AtmosphereServlet.java:611)
> at
> org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:444)
> at
> org.eclipse.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:343)
> at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:523)
> at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:483)
> at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
> at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:516)
> at
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:230)
> at
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:956)
> at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:411)
> at
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:188)
> at
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:891)
> at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
> at
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
> at
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
> at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114)
> at org.eclipse.jetty.server.Server.handle(Server.java:353)
> at
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:598)
> at
> org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1059)
> at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:590)
> at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:212)
> at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:427)
> at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:510)
> at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34)
> at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:450)
> at java.lang.Thread.run(Thread.java:662)
> 2011-04-13 00:52:43,034 [Thread-14] INFO  org.atmosphere.ping.AtmospherePing
> - AtmospherePing sent for project statistics: 404. Remove
> WEB-INF/lib/atmosphere-ping.jar to remove that message or exclude the jar in
> your pom.xml
>
> my atmosphere.xml looks like this:
>
>
>
>
>
>
> my web.xml looks like this:
>
>          contextConfigLocation
>          classpath:spring-config.xml
>
>
>          org.springframework.web.context.ContextLoaderListener
>
>
>
>          Jersey and Atmosphere API
>          API
>         org.atmosphere.cpr.AtmosphereServlet
>
>              com.sun.jersey.config.property.packages
>              webservice.webservice.atmo
>
>
>              org.atmosphere.cpr.broadcastFilterClasses
>
> org.atmosphere.client.FormParamFilter,org.atmosphere.client.JavascriptClientFilter
>
>
>
>
>
>
>          API
>          /api/*
>
>
>
> Part of my maven dependencies:
>
>          UTF-8
>          3.0.5.RELEASE
>          1.6
>          0.7.1
>          8.0.0.M2
>
>
>
>
>              com.sun.jersey
>              jersey-json
>              ${activitycloud.jersey.version}
>
>
>              com.sun.jersey.contribs
>              jersey-spring
>              ${activitycloud.jersey.version}
>
>
>                      spring-core
>                      org.springframework
>
>
>                      spring-aop
>                      org.springframework
>
>
>                      spring-beans
>                      org.springframework
>
>
>                      spring-context
>                      org.springframework
>
>
>                      spring-web
>                      org.springframework
>
>
>
>
>
>              org.springframework
>              spring-context-support
>               ${activitycloud.springframework.version}
>
>
>              org.springframework
>              spring-core
>               ${activitycloud.springframework.version}
>
>
>              org.springframework
>              spring-beans
>               ${activitycloud.springframework.version}
>
>
>
>              com.sun.jersey
>              jersey-server
>              ${activitycloud.jersey.version}
>
>
>
>              org.atmosphere
>              atmosphere-jersey
>              ${activitycloud.atmosphere.version}
>
>
>                      com.sun.jersey
>                      jersey-server
>
>
>
>
>              org.springframework
>              spring-web
>              ${activitycloud.springframework.version}
>
>
>
> --
> View this message in context: http://atmosphere-users-mailling-list.2493822.n2.nabble.com/Jersey-Atmosphere-com-sun-jersey-spi-spring-container-servlet-SpringServlet-tp6267109p6267109.html
> Sent from the Atmosphere users mailling list mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Jersey/Atmosphere/com.sun.jersey.spi.spring.container.servlet.SpringServlet

Nikola Ilo
> Also if you do:
>
> @Path("/chat/{topic}"))
> public .... chat(@Context Broadcaster topic) {...}
>
> does it help?
>

Well it does help, but different channels ({topic}) aren't possible
anymore. It does broadcast messages to all clients.

See attached the demo to reproduce!

Thank you very much

Atmosphere Demo.zip (67K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Jersey/Atmosphere/com.sun.jersey.spi.spring.container.servlet.SpringServlet

Nikola Ilo
In reply to this post by Jeanfrancois Arcand-4
Were you able to reproduce the problem?

On Thu, Apr 14, 2011 at 11:24 PM, Nikola Ilo <[hidden email]> wrote:

>> Also if you do:
>>
>> @Path("/chat/{topic}"))
>> public .... chat(@Context Broadcaster topic) {...}
>>
>> does it help?
>>
>
> Well it does help, but different channels ({topic}) aren't possible
> anymore. It does broadcast messages to all clients.
>
> See attached the demo to reproduce!
>
> Thank you very much
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Jersey/Atmosphere/com.sun.jersey.spi.spring.container.servlet.SpringServlet

Jeanfrancois Arcand-4
Salut,

no luck so far I didn't had a chance to look at it. Will try as soon as
I can.

A+

-- Jeanfrancois

On 11-04-23 5:56 AM, Nikola Ilo wrote:

> Were you able to reproduce the problem?
>
> On Thu, Apr 14, 2011 at 11:24 PM, Nikola Ilo <[hidden email]
> </user/SendEmail.jtp?type=node&node=6299248&i=0&by-user=t>> wrote:
>
>  >> Also if you do:
>  >>
>  >> @Path("/chat/{topic}"))
>  >> public .... chat(@Context Broadcaster topic) {...}
>  >>
>  >> does it help?
>  >>
>  >
>  > Well it does help, but different channels ({topic}) aren't possible
>  > anymore. It does broadcast messages to all clients.
>  >
>  > See attached the demo to reproduce!
>  >
>  > Thank you very much
>  >
>
> ------------------------------------------------------------------------
> View this message in context: Re:
> Jersey/Atmosphere/com.sun.jersey.spi.spring.container.servlet.SpringServlet
> <http://atmosphere-users-mailling-list.2493822.n2.nabble.com/Jersey-Atmosphere-com-sun-jersey-spi-spring-container-servlet-SpringServlet-tp6267109p6299248.html>
> Sent from the Atmosphere users mailling list mailing list archive
> <http://atmosphere-users-mailling-list.2493822.n2.nabble.com/> at
> Nabble.com.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Jersey/Atmosphere/com.sun.jersey.spi.spring.container.servlet.SpringServlet

ajitkoti
This post has NOT been accepted by the mailing list yet.
In reply to this post by Nikola Ilo
Hi ,

Please let me know if you were able to get a workaround over the issue , I am facing a similar issue.


Thanks
Ajit
Loading...