[JDEV] Users-Agent Problem
Brazell, Bill
bill.brazell at attws.com
Mon Apr 9 10:51:42 CDT 2001
I'm attempting to get Ryan Eatmon's users-agent user's directory to work but
am having a problem. I receive a "Server Connect Failed" message when
attempting to find a user.
Hopefully someone will be able to help.
Here is a copy of my config.xml file:
<config>
<server>
<connectiontype>stdinout</connectiontype>
<hostname>etech-web.nwest.attws.com</hostname>
<port>5226</port>
<secret>foobar</secret>
</server>
<component>
<name>users.etech-web.nwest.attws.com</name>
</component>
<mysql>
<dbname>JUD</dbname>
<username>root</username>
</password>
<limit>250</limit>
</mysql>
</config>
The hostname exists in our internal DNS. The component name does not. I
have entered the component name into the local hosts file as follows:
127.0.0.1 localhost.localdomain localhost
users.etech-web.nwest.attws.com
Here is the first service entry within my jabber.xml file:
<service type="jud" jid="users.etech-web.nwest.attws.com" name="ETech User
Directory">
<ns>jabber:iq:search</ns>
<ns>jabber:iq:register</ns>
</service>
When I start users-agent in debug mode, I receive the following output:
"my" variable $sth masks earlier declaration in same scope at ./users-agent
line 267.
DBI::db=HASH(0x870e2a4) trace level set to 2 in DBI 1.14-nothread
XML::Stream: new: hostname = (etech-web.nwest.attws.com)
XML::Stream: SetCallBacks: tag(node) func(CODE(0x871d5e4))
NJ::Component: SetCallBacks: tag(iq) func(CODE(0x86906e8))
NJ::Component: SetCallBacks: tag(presence) func(CODE(0x8689b28))
NJ::Component: SetCallBacks: tag(message) func(CODE(0x868961c))
NJ::Component: Connect: type(stdinout)
XML::Stream: Connect: type(stdinout)
XML::Stream: Send: (<?xml version="1.0"?><stream:stream
xmlns:stream="http://etherx.jabber.org/streams"
xmlns="jabber:component:exec" >)
<?xml version="1.0"?><stream:stream
xmlns:stream="http://etherx.jabber.org/streams"
xmlns="jabber:component:exec" >
When I select Find from within JabberIM, I receive this:
[root at etech-web users-agent]# 20010409T14:02:16: [alert]
(users.etech-web.nwest.attws.com): hostname maps back to ourselves!
20010409T14:02:16: [notice] (users.etech-web.nwest.attws.com): failed to
establish connection
20010409T14:02:16: [notice] (users.etech-web.nwest.attws.com): bouncing a
packet to users.etech-web.nwest.attws.com from
bbrazell at etech-web.nwest.attws.com/Work: Server Connect Failed
I think the first error is somewhat strange. I want it to map back to the
local host. I'm also not sure why the Stream module wants to send to
etherx.jabber.org/streams.
Does anyone have any idea of what I'm missing here?
Thanks,
Bill Brazell
AT&T Wireless
More information about the JDev
mailing list