You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by coincoinfou <ol...@gmail.com> on 2012/06/09 11:06:12 UTC
Can't deal with wicket atmosphere
I migrate my app from 5 to 6 and everything work fine.
However i'm unable to try atmosphere due to network 500 server error
Here is my configuration :
FilterHolder atmosphere = new FilterHolder(AtmosphereFilter.class);
atmosphere.setName("AtmosphereApplication");
atmosphere.setClassName("org.atmosphere.cpr.AtmosphereFilter");
atmosphere.setInitParameter("applicationClassName",
"com.mycompany.WicketApplication");
atmosphere.setInitParameter("org.atmosphere.filter",
"org.apache.wicket.protocol.http.WicketFilter");
atmosphere.setInitParameter("org.atmosphere.useWebSocket", "true");
atmosphere.setInitParameter("org.atmosphere.useNative", "true");
atmosphere.setInitParameter("org.atmosphere.cpr.CometSupport.maxInactiveActivity",
"30000");
atmosphere.setInitParameter("filterMappingUrlPattern",
"/atmosphere/*");
atmosphere.setInitParameter("org.atmosphere.websocket.WebSocketProtocol",
"org.atmosphere.websocket.protocol.EchoProtocol");
bb.addFilter(atmosphere, "/atmosphere/*", 0);
FilterHolder wicket = new
FilterHolder(org.apache.wicket.protocol.http.WicketFilter.class);
wicket.setName("wicket.csstest");
wicket.setClassName("org.apache.wicket.protocol.http.WicketFilter");
wicket.setInitParameter("applicationClassName",
"com.mycompany.WicketApplication");
wicket.setInitParameter(WicketFilter.FILTER_MAPPING_PARAM, "/*");
bb.addFilter(wicket, "/*", 1);
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Can-t-deal-with-wicket-atmosphere-tp4649792.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Can't deal with wicket atmosphere
Posted by Martin Grigorov <mg...@apache.org>.
Hi,
It is something about your way to setup the app. You do it programatically.
Try with web.xml and if it still doesn't work you may check what is
different than wicket-examples/atmpsphere demo app.
Finally you can ask at atmosphere users mailing list.
On Mon, Jun 11, 2012 at 8:29 AM, coincoinfou <ol...@gmail.com> wrote:
> he didn't find org.atmosphere.cpr.AtmosphereResource
>
> Caused by: java.lang.IllegalStateException: MeteorServlet not defined in
> web.xml
> at org.atmosphere.cpr.Meteor.build(Meteor.java:170)
> at org.atmosphere.cpr.Meteor.build(Meteor.java:151)
> at org.atmosphere.cpr.Meteor.build(Meteor.java:137)
> at org.atmosphere.cpr.Meteor.build(Meteor.java:124)
> at
> org.apache.wicket.atmosphere.AtmosphereBehavior.onResourceRequested(AtmosphereBehavior.java:80)
> ... 38 more
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Can-t-deal-with-wicket-atmosphere-tp4649792p4649840.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Can't deal with wicket atmosphere
Posted by coincoinfou <ol...@gmail.com>.
he didn't find org.atmosphere.cpr.AtmosphereResource
Caused by: java.lang.IllegalStateException: MeteorServlet not defined in
web.xml
at org.atmosphere.cpr.Meteor.build(Meteor.java:170)
at org.atmosphere.cpr.Meteor.build(Meteor.java:151)
at org.atmosphere.cpr.Meteor.build(Meteor.java:137)
at org.atmosphere.cpr.Meteor.build(Meteor.java:124)
at
org.apache.wicket.atmosphere.AtmosphereBehavior.onResourceRequested(AtmosphereBehavior.java:80)
... 38 more
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Can-t-deal-with-wicket-atmosphere-tp4649792p4649840.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Can't deal with wicket atmosphere
Posted by Martin Grigorov <mg...@apache.org>.
Hi,
On Sat, Jun 9, 2012 at 12:06 PM, coincoinfou <ol...@gmail.com> wrote:
> I migrate my app from 5 to 6 and everything work fine.
> However i'm unable to try atmosphere due to network 500 server error
Error 500 means that there must be an exception in the server logs.
See what exactly fails.
>
> Here is my configuration :
>
> FilterHolder atmosphere = new FilterHolder(AtmosphereFilter.class);
> atmosphere.setName("AtmosphereApplication");
> atmosphere.setClassName("org.atmosphere.cpr.AtmosphereFilter");
> atmosphere.setInitParameter("applicationClassName",
> "com.mycompany.WicketApplication");
> atmosphere.setInitParameter("org.atmosphere.filter",
> "org.apache.wicket.protocol.http.WicketFilter");
> atmosphere.setInitParameter("org.atmosphere.useWebSocket", "true");
> atmosphere.setInitParameter("org.atmosphere.useNative", "true");
>
> atmosphere.setInitParameter("org.atmosphere.cpr.CometSupport.maxInactiveActivity",
> "30000");
> atmosphere.setInitParameter("filterMappingUrlPattern",
> "/atmosphere/*");
>
> atmosphere.setInitParameter("org.atmosphere.websocket.WebSocketProtocol",
> "org.atmosphere.websocket.protocol.EchoProtocol");
>
> bb.addFilter(atmosphere, "/atmosphere/*", 0);
>
> FilterHolder wicket = new
> FilterHolder(org.apache.wicket.protocol.http.WicketFilter.class);
> wicket.setName("wicket.csstest");
> wicket.setClassName("org.apache.wicket.protocol.http.WicketFilter");
> wicket.setInitParameter("applicationClassName",
> "com.mycompany.WicketApplication");
> wicket.setInitParameter(WicketFilter.FILTER_MAPPING_PARAM, "/*");
>
> bb.addFilter(wicket, "/*", 1);
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Can-t-deal-with-wicket-atmosphere-tp4649792.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org