Note that there are some explanatory texts on larger screens.

plurals
  1. POWicket + Atmosphere + Guice
    primarykey
    data
    text
    <p>I'm trying to configure Atmosphere and that is what I get when I post event to EventBus</p> <pre><code>java.lang.IllegalStateException: MeteorServlet not defined in web.xml at org.atmosphere.cpr.Meteor.build(Meteor.java:170) ~[atmosphere-runtime-1.0.8.jar:1.0.8] at org.atmosphere.cpr.Meteor.build(Meteor.java:151) ~[atmosphere-runtime-1.0.8.jar:1.0.8] at org.atmosphere.cpr.Meteor.build(Meteor.java:137) ~[atmosphere-runtime-1.0.8.jar:1.0.8] at org.atmosphere.cpr.Meteor.build(Meteor.java:124) ~[atmosphere-runtime-1.0.8.jar:1.0.8] at org.apache.wicket.atmosphere.AtmosphereBehavior.onResourceRequested(AtmosphereBehavior.java:107) ~[wicket-atmosphere-0.7.jar:0.7] ... 56 common frames omitted </code></pre> <p>I use Wicket, this is AjaxButton onSubmit implementation:</p> <pre><code>public void onSubmit(AjaxRequestTarget target, Form&lt;?&gt; form) { EventBus.get().post(message.getModelObject()); } </code></pre> <p>I'm configuring Atmosphere using Guice. In my ServletModule implementation:</p> <pre><code>Map&lt;String, String&gt; params = new HashMap&lt;String, String&gt;(); params.put("applicationClassName", "org.mycompany.MyWebApplication"); params.put(ApplicationConfig.PROPERTY_SERVLET_MAPPING, "/session/**"); params.put(ApplicationConfig.PROPERTY_SESSION_SUPPORT, "true"); params.put(ApplicationConfig.WEBSOCKET_PROTOCOL, "org.atmosphere.websocket.protocol.EchoProtocol"); params.put(ApplicationConfig.BROADCAST_FILTER_CLASSES, "org.apache.wicket.atmosphere.TrackMessageSizeFilter"); filter("/session/**").through(AtmosphereFilter.class, params); </code></pre> <p>This is my atmosphere.xml:</p> <pre><code>&lt;atmosphere-handler context-root="/session/**" class-name="org.atmosphere.handler.ReflectorServletProcessor"&gt; &lt;/atmosphere-handler&gt; </code></pre> <p>I want to configure filters programmatically, can I do it with atmosphere filters? If yes, what am I doing wrong? </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload