From: Krishna Rokhale Date: 2010-02-22T17:57:24+09:00 Subject: XMPP4r with ejabberd Hi, I have been trying to get ejabberd to work with XMPP4R and have had partial success. ejabberd server page has....... The name of the current ejabberd node is ejabberd@localhost I create a new instance....... >> myJID = JID.new('ejabberd@localhost/Bot') => # and..... >> cl = Client.new(myJID) => #, @iqcbs=#, @keepalive_interval=60, @port=nil, @streamns="jabber:client", @xmlcbs=#, @tls=false, @exception_block=nil, @processing=0, @streamid=nil, @messagecbs=#, @features_timeout=10, @host=nil, @wakeup_thread=nil, @fd=nil, @allow_tls="constant", @features_sem=#, @tickets=0, @cond=#>, @last_send=Mon Feb 22 03:35:28 -0500 2010, @send_lock=#, @parser_thread=nil, @stanzacbs=#, @ssl_verifycb=nil, @threadblocks=[], @presencecbs=#, @status=1, @jid=#, @use_ssl=false> connect it...... >> cl.connect => #, @keepaliveThread=#, @iqcbs=#, @keepalive_interval=60, @port=5222, @streamns="jabber:client", @xmlcbs=#, @tls=false, @exception_block=nil, @processing=0, @streamid="3202133905", @messagecbs=#, @features_timeout=10, @host="localhost", @wakeup_thread=nil, @fd=#, @allow_tls="constant", @features_sem=#, @tickets=0, @cond=#>, @last_send=Mon Feb 22 03:35:46 -0500 2010, @send_lock=#, @socket=#, @parser_thread=#, @stanzacbs=#, @stream_features={}, @stream_mechanisms=[], @ssl_verifycb=nil, @threadblocks=[], @presencecbs=#, @status=2, @parser=#, @stream=#>, @jid=#, @use_ssl=false> authenticate..... >> cl.auth("password") Jabber::ClientAuthenticationFailure: closed stream from /Library/Ruby/Gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/client.rb:118:in `auth' from (irb):7 and try and send a message, i get: >> m = "kjm" => "kjm" >> cl.send(m) IOError: closed stream I am not sure what is wrong, my ejabberd server screen has this......... By default, the ejabberd Web Admin interface is enabled. You should be able to connect to the admin interface and log in with the user krokhale@krokhale and the password you defined during the installation. I guess i am missing something small somewhere, i would really appreciate your help for this!! Thanks!!! -- Posted via http://www.ruby-forum.com/.