Re: Comment on QuickStartForAppDevelopers in emite

19 views
Skip to first unread message

em...@googlecode.com

unread,
Nov 30, 2009, 4:49:06 PM11/30/09
to em...@googlegroups.com
Comment by PhoenixBladeWing:

I am also having problems with the above example. I am working with
Eclipse with GWT 1.7.1 on windows xp pro sp3. when I click on the green
button to launch the hosted mode, I at first had problems similar to post
number 5 and added JUnit to resolve that one.

Currently I have an issue with the current messages:

---------------------------------------
Bootstrap link for command-line
module 'com.kirkhamsystems.emitetest.EmiteTest'
Validating <servlet> tags for module 'emitetest'
More info:
file:/C:/Documents%20and%20Settings/granville/Desktop/GWT/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.win32_1.7.1.v200909221731/gwt-windows-1.7.1/doc/helpInfo/servletMappings.html
Module declares a servlet
class 'de.spieleck.servlets.ProxyServlet', but the web.xml has no
corresponding declaration; please add the following lines to your 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>/emitetest/proxy</url-pattern>
</servlet-mapping>

Module declares a servlet
class 'com.allen_sauer.gwt.log.server.RemoteLoggerServiceImpl', but the
web.xml has no corresponding declaration; please add the following lines to
your web.xml:
<servlet>
<servlet-name>remoteLoggerServiceImpl</servlet-name>

<servlet-class>com.allen_sauer.gwt.log.server.RemoteLoggerServiceImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>remoteLoggerServiceImpl</servlet-name>
<url-pattern>/emitetest/gwt-log</url-pattern>
</servlet-mapping>

Module declares a servlet
class 'com.google.gwt.junit.server.JUnitHostImpl', but the web.xml has no
corresponding declaration; please add the following lines to your web.xml:
<servlet>
<servlet-name>jUnitHostImpl</servlet-name>
<servlet-class>com.google.gwt.junit.server.JUnitHostImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>jUnitHostImpl</servlet-name>
<url-pattern>/emitetest/junithost</url-pattern>
</servlet-mapping>

---------------------------------------
from this point I get Starting Jetty, a few 304 messages, I get a 200 on
the emitetest.nocache.js file, a few more 304's and then some more errors
---------------------------------------
404 error on POST /emitetest/proxy (127.0.0.1) 1401 bytes
We are now offline
404 - POST /emitetest/proxy (127.0.0.1) 1401 bytes
---------------------------------------

there is nothing in the war folder for the project and I believe that we
need to put in a proxy file or folder for the servlet in the WAR folder but
I have not yet found any documentation on doing that.

Any help would be appreciated immensely
Granville


For more information:
http://code.google.com/p/emite/wiki/QuickStartForAppDevelopers

em...@googlecode.com

unread,
Nov 30, 2009, 5:20:36 PM11/30/09
to em...@googlegroups.com
Comment by PhoenixBladeWing:

to comment on my last comment, I actually read the warnings and realized I
needed to add the entire xml portion of each error to the web.xml file
found in the war/WEB-INF folder. after doing that I encountered another
message about class path vs server path which also included a related link
to "eclipse/plugins/com.google.gwt.eclipse.sdkbundle.win32_1.7.1.v200909221731/gwt-windows-1.7.1/doc/helpInfo/webAppClassPath.html"
I did this as well as copied the 4 files that were added as references to
the war/WEB-INF/lib folder and many of the error messages went away. I
think I need to configure something for eclipse to automatically move the
libraries to the proper folder.

I now got everything working properly with no error messages, but I still
get the following
------------------------------------------
[ERROR] 500 - POST /emitetest/proxy (127.0.0.1) 1571 bytes
[INFO] We are now offline
[ERROR] 500 - POST /emitetest/proxy (127.0.0.1) 1571 bytes
------------------------------------------

Son Ngo

unread,
Nov 30, 2009, 5:38:37 PM11/30/09
to em...@googlegroups.com
It doesn't look like your xmpp server is running.  You will also need to enable Http Bind in your server.  See QuickStartForAppDevelopers wiki page for more details.

- good luck

--

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.



em...@googlecode.com

unread,
Dec 1, 2009, 10:38:37 AM12/1/09
to em...@googlegroups.com
Comment by PhoenixBladeWing:

I was able to figure out what my problem was and it was a matter of me not
following the directions properly, but I will say that the directions were
not absolutely precise and I had to fumble my way through to the answer.

For those of you using OpenFire as their server, you must go into "Server
Settings" > "Http Binding" and change the ports to 5280 or this emite test
will not connect properly. this solved all of my problems and I now get a
functioning test. While I knew that it was on, I did not go in and check
the port number.

em...@googlecode.com

unread,
Jan 22, 2010, 2:55:00 AM1/22/10
to em...@googlegroups.com
Comment by alexnegrila:

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

em...@googlecode.com

unread,
Aug 26, 2010, 4:55:04 AM8/26/10
to em...@googlegroups.com
Comment by richy.brasier:

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);
}
}
});

em...@googlecode.com

unread,
Aug 26, 2010, 5:08:18 AM8/26/10
to em...@googlegroups.com
Comment by richy.brasier:

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?

em...@googlecode.com

unread,
Aug 26, 2010, 5:12:21 AM8/26/10
to em...@googlegroups.com
Comment by richy.brasier:

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:

em...@googlecode.com

unread,
Aug 26, 2010, 5:32:35 AM8/26/10
to em...@googlegroups.com
Comment by richy.brasier:

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);
}

}
});

em...@googlecode.com

unread,
Dec 31, 2010, 8:33:10 AM12/31/10
to em...@googlegroups.com
Comment by bentaleb.khaled:

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

Reply all
Reply to author
Forward
0 new messages