How do I get emite to compile in GWT 2.0.4

26 views
Skip to first unread message

saklig

unread,
Sep 29, 2010, 5:33:19 AM9/29/10
to emite
Hi,
Im trying to use emite with gwt 2.0.4.
This seems to be problematic as emite requires suco-0.6, which
requires gwt-log.2.5.3, which seems to be incompatible with gwt-2.0.4

The error I get when compiling is:
Compiling module com.some.thing.web.ABCMod_gwt
[ERROR] Errors in 'jar:file:/generic/path/dev/lib/gwt-
log-2.5.3.jar!/com/allen_sauer/gwt/log/client/util/DOMUtil.java'
[ERROR] Line 32: Rebind result
'com.allen_sauer.gwt.log.client.util.impl.DOMUtilImpl' cannot be
abstract
[ERROR] Cannot proceed due to previous errors

Any idea as to how I can make this work ?

dani

unread,
Sep 29, 2010, 6:10:25 PM9/29/10
to em...@googlegroups.com
Emite (trunk/emite-lib) compiles well with 2.0.4. With eclipse and
google plugin should be straightforward (suco dependency is no longer
required)

Saludos
Dani

> --
> 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.
>
>

saklig

unread,
Sep 30, 2010, 5:46:45 PM9/30/10
to emite
Thanks. Where can i find example code for how to set up a bosh
connection ?

In the previous version(emite 0.5.0) I did the following(it worked,
but it used suco):

connection = Suco.get(Connection.class);
connection.setSettings(new BoshSettings("http-bosh",
"some.address.com"));
session = Suco.get(Session.class);
roster = Suco.get(Roster.class);

session.login(uri("user@domain"), "secret1");

roster.onRosterRetrieved(new Listener<Collection<RosterItem>>() {

@Override
public void onEvent(Collection<RosterItem> items) {
//do some thing
}
});

session.onMessage(new Listener<Message>() {
public void onEvent(final Message message) {
display.output("" + message.getBody());
}
});

On Sep 30, 12:10 am, dani <dan...@gmail.com> wrote:
> Emite (trunk/emite-lib) compiles well with 2.0.4. With eclipse and
> google plugin should be straightforward (suco dependency is no longer
> required)
>
> Saludos
> Dani
>

dani

unread,
Oct 4, 2010, 11:03:31 AM10/4/10
to em...@googlegroups.com
Hello:

Sorry for the delay... Currently the documentation is in my todo-list
(quite big, at this moment), but you can look at the examples in the
emite codebase. For example:
http://code.google.com/p/emite/source/browse/trunk/emite-lib/src/com/calclab/emite/xxamples/core/xmpp/session/client/ExampleXmppSession.java

If you're not familiarized with Gin I recommend you to take a look:
http://code.google.com/p/google-gin/wiki/GinTutorial

Saludos
Dani

saklig

unread,
Oct 6, 2010, 7:40:07 AM10/6/10
to emite
Thanks again. I've made it compile with the code you proposed, but
it's not quite "there" yet :-)

I use the following code:

private ExampleXmppSessionGinjector ginjector;
private XmppSession session;
private XmppConnection connection;

public void onModuleLoad() {

ginjector = GWT.create(ExampleXmppSessionGinjector.class);
connection = ginjector.getXmppConnection();
connection.setSettings(new ConnectionSettings("http-bosh",
"some.address.com"));
session = ginjector.getXmppSession();
session.login(uri("user@domain"), "secret1");


}

I'm using org.jabber.JabberHTTPBind.JHBServlet

Is this the right way to use the HTTP-Bind BOSH setup of emite?
My previous example(used emite-0.5) worked well.



On Oct 4, 5:03 pm, dani <dan...@gmail.com> wrote:
> Hello:
>
> Sorry for the delay... Currently the documentation is in my todo-list
> (quite big, at this moment), but you can look at the examples in the
> emite codebase. For example:http://code.google.com/p/emite/source/browse/trunk/emite-lib/src/com/...
>
> If you're not familiarized with Gin I recommend you to take a look:http://code.google.com/p/google-gin/wiki/GinTutorial
>
> Saludos
> Dani
>
Reply all
Reply to author
Forward
0 new messages