You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And during deployment I get this exception thrown:
03:25:53.372 [Scanner-1] ERROR org.atmosphere.cpr.AtmosphereServlet - failed to initialize atmosphere framework
com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes.
at com.sun.jersey.server.impl.application.RootResourceUriRules.<init>(RootResourceUriRules.java:99) ~[jersey-server-1.9.1.jar:1.9.1]
at com.sun.jersey.server.impl.application.WebApplicationImpl._initiate(WebApplicationImpl.java:1298) ~[jersey-server-1.9.1.jar:1.9.1]
at com.sun.jersey.server.impl.application.WebApplicationImpl.access$700(WebApplicationImpl.java:169) ~[jersey-server-1.9.1.jar:1.9.1]
at com.sun.jersey.server.impl.application.WebApplicationImpl$13.f(WebApplicationImpl.java:775) ~[jersey-server-1.9.1.jar:1.9.1]
at com.sun.jersey.server.impl.application.WebApplicationImpl$13.f(WebApplicationImpl.java:771) ~[jersey-server-1.9.1.jar:1.9.1]
at com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:193) ~[jersey-core-1.9.1.jar:1.9.1]
at com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:779) ~[jersey-server-1.9.1.jar:1.9.1]
at org.atmosphere.guice.GuiceContainer.initiate(GuiceContainer.java:82) ~[atmosphere-guice-0.8.5.jar:0.8.5]
...
If I configure the same application via web.xml with <servlet-class>org.atmosphere.cpr.AtmosphereServlet</servlet-class>
and <init-param>'s atmosphere starts normally.
If I add a following line: bind(ResourceChat.class); (from chat example) it starts normally.
The text was updated successfully, but these errors were encountered:
Salut, again, apology for the delay I've completely missed those two issues :-( Either you bind the resource or you pass the Jersey init-param
com.sun.jersey.config.property.packages
value: your package to make it working. I don't think without Jersey is able to locate its resource. I'm closing the issue as not a bug, please re-open if you think I am wrong.
Hi. I'm having the same problem with Atmosphere 1.1.0.beta2, on Jetty 8.1.2.v20120308.
The difference is that I'm not using Guice (and don't know what it is)
The exception :
2013-02-11 10:40:06.241:WARN:oejs.ServletHandler:/myws com.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes.
I use this Eclipse plugin : run-jetty-run
In my web.xml :
Hi!
I've faced this problem trying to run a guice/websocket application in Jetty.
In web.xml I have something like this:
and in the following in the
com.test.GuiceServletConfig
:And during deployment I get this exception thrown:
If I configure the same application via web.xml with
<servlet-class>org.atmosphere.cpr.AtmosphereServlet</servlet-class>
and
<init-param>
's atmosphere starts normally.If I add a following line:
bind(ResourceChat.class);
(from chat example) it starts normally.The text was updated successfully, but these errors were encountered: