[jdev] having trouble with writing external components with some Java lib?
Hao Chen
h8chen at uwaterloo.ca
Thu Oct 21 00:57:12 CDT 2004
Hi,
I want to use Java to write an external component for my Jabber server. My
server is Jabberd2, and I picked Yaja library.
I have a problem in the very beginning. Each component has a JID. Yaja
specifies a component's JID and make this component browsable in a
configuration file, i.e. jabber.xml. But this is for Jabberd1.4, NOT for
Jabberd2 !!!
Right now, I can connect to the server with the handshake protocol and this
seems work, but right after the session gets disconnected, with the
following error stanza:
<stream:error xmlns:stream="http://etherx.jabber.org/streams"><host-unknown
xmlns="urn:ietf:params:xml:ns:xmpp-streams"/><text
xmlns="urn:ietf:params:xml:ns:xmpp-streams">requested name is already in
use</text></stream:error>
So my question is how I can specify the component's name(JID) using Yaja
lib? Or any better choice for the Java library, because Yaja seems not being
updated since 2002.
Any advice or comment is welcomed, and your help is highly appreciated!
Hao
More information about the JDev
mailing list