Http-bind Issue?

I have installed Openfire on my Linux Box.

I have setup Openfire and was trying to configure http-bind.

I went to Server >> Server Settings >> HTTPBinding >>

Entered:

HTTP binding allows clients using the HTTP protocol to connect to the server.

Now when I browse through http://10.14.2.70:7070/http-bind/

Its not working.

All it shows:

HTTP ERROR: 404

NOT_FOUND

RequestURI=/http-bind/

Powered by Jetty://

Any Idea Why its behaving so?

Now when I browse through http://10.14.2.70:7070/http-bind/

Its not working.

BOSH requests are different then requests which are generated by your browser, so I think you can’t test your BOSH server by simply browsing to the URL. Openfire with http-bind works for me, but I get the same error message when I try to browse with my browser to the URL.

I dint get you…

Do I need to configure anything to make it work?

I do see the option like BOSS Enable or Disable under the Client Access Windows but dont know whats that actually.

You said its working for you.

Can You provide me the steps ?

I need it urgently…

Would appreciate your help.

I wanted to say that you can’t test http-bind by simply browsing to the URL. I’m developing with the BOSH implementation of Openfire. If you want only test your http-bind connection I attached a simple app which tests the http binding of an XMPP service and prints out the debug messages.

Call it with:

$ java -jar bosh-test.jar -u http://server:port/http-bind/ -x server

bosh-test.jar (976112 Bytes)
bosh-test.zip (3134 Bytes)

D:\html\ijab2>java -jar bosh-test.jar -u http://jappod.com:7070/http-bind -x jap
pod.com
SENT:
Feb 14, 2010 11:40:16 AM com.kenai.jbosh.BOSHClient processExchange
WARNING: Could not obtain response
com.kenai.jbosh.BOSHException: Could not parse body
at com.kenai.jbosh.BodyParserXmlPull.parse(BodyParserXmlPull.java:130)
at com.kenai.jbosh.StaticBody.fromString(StaticBody.java:114)
at com.kenai.jbosh.XLightWebResponse.awaitResponse(XLightWebResponse.jav
a:195)
at com.kenai.jbosh.XLightWebResponse.getBody(XLightWebResponse.java:166)

at com.kenai.jbosh.BOSHClient.processExchange(BOSHClient.java:796)
at com.kenai.jbosh.BOSHClient.processMessages(BOSHClient.java:745)
at com.kenai.jbosh.BOSHClient.access$000(BOSHClient.java:93)
at com.kenai.jbosh.BOSHClient$1.run(BOSHClient.java:163)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.EOFException: input contained no data
at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:2890)
at org.xmlpull.mxp1.MXParser.more(MXParser.java:2928)
at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1366)
at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1351)
at org.xmlpull.mxp1.MXParser.next(MXParser.java:1061)
at com.kenai.jbosh.BodyParserXmlPull.parse(BodyParserXmlPull.java:76)
… 8 more
Not connected to http://localhost:7070/http-bind/

i’ll try your step but still got an error like above… what’s wrong…

root@ntu:/tmp# java -jar bosh-test.jar -u http://localhost:7070/http-bind/ -x server

SENT:

RECV: stream:featuresDIGEST-MD5PLAINCRAM-MD5zlib</stream:features>

Successfully connected to http://localhost:7070/http-bind/

httpd.conf

#at the end of the file add

XMPP proxy rule

ProxyRequests Off

ProxyPass /http-bind http://127.0.0.1:7070/http-bind/

ProxyPassReverse /http-bind http://127.0.0.1:7070/http-bind/

activate the apache modules

sudo a2enmod proxy

sudo a2enmod proxy_http

allow to connect to all

proxy.conf

ProxyRequestsOff

<Proxy*>

Orderdeny,allow

Deny fromall

#Allow from localhost => Allow from all

ProxyVia On

**
**

Syntax error on line : Expected </Proxy*> but saw

Action ‘configtest’ failed.

The Apache error log may have more information.