Quick, Is my HTTP-Bind working correctly?

I get the same error-message with Openfire 3.4.2 and 3.4.3. Http-bind is definitly enabled.

What can I do? Did you find a solution dsanghera?

Apparently, 3.4.1 and prior versions do not give this error, only the new versions do. And I am pretty sure the HTTP Binding is enabled, it just doesnt say anything. Let me know if this is correct.

Hi,

i have the same problem as you described above.

i am running openfire 3.4.3, http-bind is def. enabled but i get a 404.

i also trie with of 3.4.2 - the same.

what is wrong?

I do not know whether this is the correct answer or not but, apparently it works if an XMPP request is sent to it, but not an HTTP request. Which I think makes no sense because it is an HTTP BIND, so it should be responsive to HTTP requests. I think it might be a major bug that we should maybe report?

Do you have anything in the log-files?

Do you using th red5 plugin?

I am also discussing the http-bind error with red 5 in this thread: http://www.igniterealtime.org/community/message/163018#163018

You need to be posting data (<body …></body>) according to the XMP Protocol in order not to get a 404 on this page. According to the protocol, I believe the 404 error indicates that you’re not providing an sid/rid and/or not trying to authenticate. So you get the NOT_FOUND 404 page.

After upgrading from 3.4.2 to 3.4.3 I have lost the ability to access the admin console…

I get that same 404 error when i go to http://127.0.0.1:9090 (i changed mine because 8080 is already used on that server):

HTTP ERROR: 404NOT_FOUND

RequestURI=/

Powered by jetty://

Hey rene-1,

my logs dont give any hints according this problem. There is not even a short note neither in the errorlog nor in warninglog.

At least jwchat is now loading without the errormessage “Service unavailable”. Anyway the it doesnt load any data. So my buddylist is empty.

By the way: to install jwchat was my main goal enabling http-binding.

You made a seperate jwchat install?

Maybe ill do also… but: how do you did it?

Hey rene-1,

finally I got jwchat running. At least the roster is loaded, the buttons arent working, but thats not related to our http-bind problem.

So what did I do?

  1. Working with jwchat1.0B3 I deleted all language-files and renamed the *.html.html and *.js.js to *.html and *.js So as a result the jwchat directory just contains *.html and *.js files

  2. Afterwards I changed my Virtualserver settings and made sure that following commands are used in this order.

AddDefaultCharset UTF-8

RewriteEngine on

RewriteRule http-bind/ http://127.0.0.1:9099/http-bind/

<Directory server/public_html/jwchat>

Options Indexes +Multiviews

allow from all

AllowOverride All

</Directory>

  1. Then I followed the steps 2 to 6 of this instruction (http://www.igniterealtime.org/community/message/156835#156835 - see post number four)

I guess thats what Ive done. So try to connect via jwchat. You will see the http-binding is working, though an error message is thrown by jetty sending an http-request to the socket.

Right. Thanks for that!

So lets stick back to the main problem.

Can anyone consider why it does not work? Btw: i installed the red5 plugin v. 0.0.12 but it also does not work…

yeah, same problem for me on Openfire

3.4.3

It used to show the contents of openfire/resources/spank/index.html in earlier versions, that is not the case anymore though

Any news on that one?

Hi:

I don’t think http bind works at all in version openfire:openfire_3_4_5. I am making a request body that looks like this:

<body hold=‘1’ xmlns=‘http://jabber.org/protocol/httpbind’ to=‘localhost:8080’ wait=‘300’ rid=‘162235’ newkey=‘a11b7ce9d202d8c89b1f360b62b3f0168f03edc7’ ver=‘1.6’ xmpp:xmlns=‘urn:xmpp:xbosh’ xmpp:version=‘1.0’/>

and getting an error:

java.io.IOException: Server returned HTTP response code: 400 for URL: http://localhost:8080/http-bind/

When I look in the logs I see:

2008.02.12 14:20:16 Error parsing user request. http://127.0.0.1

When I look earlier in the log, it doesn’t look like the servlet is even being initialized. Please see attached warning log.

thanks

Rich

Hi Again:

I think that I overstated my case in the warn.log, please ignore it. I had tried to substitute the old web.xml to see if that alone would serve up resources from the resources/spank directory. When I put back the web.xml, I just get 2008.02.12 14:36:57 Error parsing user request. http://127.0.0.1. I am still stuck though, trying to use http bind.

thanks

Rich

Hi Again:

So I got openfire debugging in eclipse! I come to HttpBindServlet in doPost. I trace into the parsing of my request and I see “could not determine namespace bound to attribute prefix xmpp (position: START_DOCUMENT seen …26c093’ ver=‘1.6’ xmpp:xmlns=‘urn:xmpp:xbosh’ xmpp:version=‘1.0’/>… @1:211)” is the cause of my problem. It would have been nice if the e.cause.detailMessage had of been in the log. It appears that my request body is being formed incorrectly. I was using jsjac-1.2.2 in rhino to create my request. If I ever get this to work, I am going to add a client to my source tree, and submit it. This http-bind stuff seems to be a little tricky to get going.

<body hold=‘1’

xmlns=‘http://jabber.org/protocol/httpbind’ to=‘localhost:8080’

wait=‘300’ rid=‘162235’

newkey=‘a11b7ce9d202d8c89b1f360b62b3f0168f03edc7’ ver=‘1.6’

xmpp:xmlns=‘urn:xmpp:xbosh’ xmpp:version=‘1.0’/>

Column 211 is the end of the element. I guess that I will have to get looking at the spec.

thanks

Rich

Hi Again:

I finally got my http-bind to do the Romeo and Juliet example from the specs. Turns out that I needed a fix that BenV submitted for policy-violations on non-polling connections.

I found that I could test my javascript code using rhino and John

Resig’s env.js. I attached, to that other thread, the fixes that I made to env.js as well

as a slightly fixed crypt.js from jsjac and my own javascript code for my

HttpClientConnection.js and a test script BOSH.js that does the Romeo

and Juliet scene from the specifications. Hopefully this is as helpful

to someone else as BenV’s fixes were to me.

thanks

Rich

Anyone can make it works?

Thanks in advance.

Could you pleas explain what you mean " and that you actually use the /http-bind/ alias."

Many thanks

hi i am using openfire version 3.5.2 and ijab as chat client.

I tried enabling http-bind in openfire from server settings on port 8181

tried url http://localhost:8181/http-bind/

but got error-404

HTTP ERROR: 400

BAD_REQUEST

RequestURI=/http-bind/

Powered by Jetty://

can anyone help if i am missing somethng to enable http-bind, or how can i test that

is that openfire version prob???

Not a version problem… i am using the latest version and I also have the same issue…

BOSH not working… Due to which you cant connect Ijab