--
You received this message because you are subscribed to the Google Groups "emite" group.
To post to this group, send email to em...@googlegroups.com.
To unsubscribe from this group, send email to emite+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/emite?hl=en.
Maybe you should add there that you have to add a servlet mapping in web.xml
<servlet>
<servlet-name>proxyServlet</servlet-name>
<servlet-class>de.spieleck.servlets.ProxyServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>proxyServlet</servlet-name>
<url-pattern>/core/proxy</url-pattern>
</servlet-mapping>
this should fix the 404 errors
thanks,
great library
Hmm, im getting this problem when i tried to build:
The method onStateChanged(Listener<Session>) in the type Session is not
applicable for the arguments (new Listener<Session.State>(){})
to do with this line:
session.onStateChanged(new Listener<Session.State>() {
public void onEvent(final State state) {
if (state == Session.State.loggedIn) {
GWT.log("We are now online", null);
sendHelloWorldMessage(session);
} else if (state == Session.State.disconnected) {
GWT.log("We are now offline", null);
}
}
});
Im getting an error when trying to build the java file:
The method onStateChanged(Listener<Session>) in the type Session is not
applicable for the arguments (new Listener<Session.State>(){})
Any ideas?
I'm having trouble. In the java code i have:
session.onStateChanged(new Listener<Session.State>() {
public void onEvent(final State state) {
if (state == Session.State.loggedIn) {
GWT.log("We are now online", null);
sendHelloWorldMessage(session);
} else if (state == Session.State.disconnected) {
GWT.log("We are now offline", null);
}
}
});
but its throwing an error:
I solved my own problem. I replaced the above with:
session.onStateChanged(new Listener<Session>() {
public void onEvent(final Session session) {
if (session.getState() == Session.State.loggedIn) {
GWT.log("We are now online", null);
sendHelloWorldMessage(session);
} else if (session.getState() == Session.State.disconnected) {
GWT.log("We are now offline", null);
}
}
});
proxyservlet dont work !
[WARN] 404 - POST /emitetest/proxy (127.0.0.1) 1401 bytes
Request headers
Host: 127.0.0.1:8888
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.6)
Gecko/20100625 Firefox/3.6.6 ( .NET CLR 3.5.30729)
Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Cookie: JSESSIONID=anxet5arrj1v;
jiveforums.admin.logviewer=debug.size=0&info.size=1248&warn.size=723&error.size=2979
Referer: http://127.0.0.1:8888/emitetest/hosted.html?emitetest
Content-Type: text/plain; charset=utf-8
Content-Length: 227
Pragma: no-cache
Cache-Control: no-cache
Response headers
Content-Type: text/html; charset=iso-8859-1
Content-Length: 1401