Running the cross-domain sample to connect to OpenFilre

803 views
Skip to first unread message

Yaron

unread,
Nov 28, 2009, 2:42:47 PM11/28/09
to Strophe
Hello,
I have installed the OpenFire server and Uploaded the strophe library
& samples to Apache web server.
I am trying to run the crossdomain.html sample after I changed the
BOSH_SERVICE variable to the value:
http://localhost:7070/http-bind
I have enabled Bosh on the OpenFire server
but I am getting the error:
16, ioError, An error occured preventing completion of the request.

Thank you

Yaron

Jack Moffitt

unread,
Dec 13, 2009, 5:11:07 PM12/13/09
to str...@googlegroups.com
Where do you get this error from? This doesn't look like any web
browser error I'm familiar with.

Is crossdomain.xml being served at
http://localhost:7070/crossdomain.xml? If not, you won't be able to
connect.

jack.

Raj

unread,
Dec 16, 2009, 4:08:16 AM12/16/09
to Strophe
I am having similar issue. crossdomain.xml is getting served on port
7070 in my case. The callback passed to connect method just gets
called while connecting to the server (figured it out by the status
code 1). I get a blank response with HTTP status 200 from the server.
When I don't use the Http proxy I get Http status 302. I am not able
to figure out where I am going wrong.

On Dec 13, 2:11 pm, Jack Moffitt <metaj...@gmail.com> wrote:
> > I have installed the OpenFire server and Uploaded the strophe library
> > & samples to Apache web server.
> > I am trying to run the crossdomain.html sample after I changed the
> > BOSH_SERVICE variable to the value:
> >http://localhost:7070/http-bind
> > I have enabled Bosh on the OpenFire server
> > but I am getting the error:
> > 16, ioError, An error occured preventing completion of the request.
>
> Where do you get this error from? This doesn't look like any web
> browser error I'm familiar with.
>
> Is crossdomain.xml being served athttp://localhost:7070/crossdomain.xml? If not, you won't be able to
> connect.
>
> jack.

Jack Moffitt

unread,
Dec 16, 2009, 11:43:38 AM12/16/09
to str...@googlegroups.com
> I am having similar issue. crossdomain.xml is getting served on port
> 7070 in my case. The callback passed to connect method just gets
> called while connecting to the server (figured it out by the status
> code 1). I get a blank response with HTTP status 200 from the server.
> When I don't use the Http proxy I get Http status 302. I am not able
> to figure out where I am going wrong.

HTTP is sensitive to trailing slashes. You probably need to add a
trailing slash somewhere. I think openfire wants the http bind url to
be /http-bind/ not /http-bind like everyone else. If you forget that
trailing /, it doesn't work.

I ran into this a few days ago when verifying some code on Openfire myself.

jack.

Raj

unread,
Dec 16, 2009, 12:11:06 PM12/16/09
to str...@googlegroups.com
Following is what I have in my httpd.conf

ProxyRequests Off
ProxyPass /http-bind http://localhost:7070/http-bind/
ProxyPassReverse /http-bind http://localhost:7070/http-bind/

I cross checked it again, my request goes as http:/localhost:7070/http-bind/. I just get a blank response with http status 200.

Raj


jack.

--

You received this message because you are subscribed to the Google Groups "Strophe" group.
To post to this group, send email to str...@googlegroups.com.
To unsubscribe from this group, send email to strophe+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/strophe?hl=en.



Jack Moffitt

unread,
Dec 16, 2009, 12:30:06 PM12/16/09
to str...@googlegroups.com
> I cross checked it again, my request goes as
> http:/localhost:7070/http-bind/. I just get a blank response with http
> status 200.

Openfire does not support GET requests to that URL. Are you doing POST
requests or GET requests? I can't tell from your email whether you are
testing Strophe or manually checking in a browser :)

jack.

Raj

unread,
Dec 16, 2009, 12:36:12 PM12/16/09
to str...@googlegroups.com
I have embedded strophe in my web application and trying to connect to Openfire. Strophe is sending out a POST request. The callback in the connect method gets called only once with status as 1.

Raj


jack.

Raj

unread,
Dec 16, 2009, 2:03:32 PM12/16/09
to str...@googlegroups.com
Can please you tell me how to figure out if the strophe request is indeed hitting the http-bind port of openfire?

Thanks
Raj

Raj

unread,
Dec 17, 2009, 2:04:14 PM12/17/09
to str...@googlegroups.com
I got this working finally. Firefox with firebug enabled was the problem. http://code.stanziq.com/strophe/ticket/57 Does anyone know what configuration changes are needed to connect to a tigase server using strophe?

-Raj

Jack Moffitt

unread,
Dec 19, 2009, 1:07:22 AM12/19/09
to str...@googlegroups.com
> I got this working finally. Firefox with firebug enabled was the problem.
> http://code.stanziq.com/strophe/ticket/57 Does anyone know what
> configuration changes are needed to connect to a tigase server using
> strophe?

You shouldn't need anything different except the bosh endpoint url you
pass into the Strophe.Connection constructor. I'm not sure what
ports/path Tigase uses by default though.

jack.

Reply all
Reply to author
Forward
0 new messages