Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > BOOK: Professional XMPP Programming with JavaScript and jQuery
| Search | Today's Posts | Mark Forums Read
BOOK: Professional XMPP Programming with JavaScript and jQuery
This is the forum to discuss the Wrox book Professional XMPP Programming with JavaScript and jQuery by Jack Moffitt; ISBN: 978-0-470-54071-8
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional XMPP Programming with JavaScript and jQuery section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 4th, 2012, 07:41 AM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default chapter 6 gab can not connect with openfire 3.7.1

I tried
var conn = new Strophe.Connection('http://127.0.0.1:7070/xmpp-httpbind/')
var conn = new Strophe.Connection('http://127.0.0.1:5080/http-bind/')
var conn = new Strophe.Connection('http://127.0.0.1:7070/http-bind/')
var conn = new Strophe.Connection('http://127.0.0.1:5080/xmpp-httpbind/')
var conn = new Strophe.Connection('http://127.0.0.1:5222/xmpp-httpbind/')
var conn = new Strophe.Connection('http://127.0.0.1:5222/http-bind/')
but there is no connection in openfire admin console.I enabled httpbind and I am using windows 7 x64 and closed firewall. what can ı do ,any ideas?
 
Old October 8th, 2012, 03:11 AM
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Just try with following

var conn = new Strophe.Connection('http://127.0.0.1:7070/')

Please confirm that you have enabled the http bind service from your server settings

let me know if you have any confusion
 
Old October 8th, 2012, 10:30 AM
Wrox Author
Points: 702, Level: 10
Points: 702, Level: 10 Points: 702, Level: 10 Points: 702, Level: 10
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2010
Posts: 178
Thanks: 0
Thanked 16 Times in 15 Posts
Default

It would probably be more productive for you to determine the exact error that happens. From what I understand, http://127.0.0.1:7070/http-bind/ is the correct default URL for BOSH on Openfire.

Use the network panel of Firefox or Chrome's developer tools to see what happens on the connection request. Knowing the exact HTTP error is usually quite revealing.
 
Old October 9th, 2012, 08:35 AM
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I accept that ... but the same problem I have found when use http://127.0.0.1:7070/http-bind/

It gives me 404 not found error in the error console ... even after i have enable the http bind from openfire server setting ...

does this problem may cause with my local server apache settings ?
 
Old October 9th, 2012, 08:42 AM
Wrox Author
Points: 702, Level: 10
Points: 702, Level: 10 Points: 702, Level: 10 Points: 702, Level: 10
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2010
Posts: 178
Thanks: 0
Thanked 16 Times in 15 Posts
Default

That URL is an attempt to connect to Openfire's internal web server directly, so Apache is not involved at all. I think you'd be better served asking on the Openfire mailing list. It seems to me that the BOSH part is not getting enabled for some reason.

Note that unlike other BOSH endpoints, I believe Openfire does not work with normal GET requests, it will only work with HTTP POSTs from a BOSH client. The normal sanity check of visiting the URL in your browser will fail. Are you visiting the page directly or attempting to use that URL with strophe? If with Strophe, are you seeing a 404 that way?
 
Old November 9th, 2012, 04:46 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Session Terminate in CH-6

I am using my ejabberd server http://localhost:5280/http-bind but after few time the session terminate. and ask again JID and Password. This action repeat again and again.

any one help me in this.




Similar Threads
Thread Thread Starter Forum Replies Last Post
Hello example connected user is always offline in openfire babyfool BOOK: Professional XMPP Programming with JavaScript and jQuery 3 August 21st, 2014 09:56 AM
Chapter 10 Netpad with Openfire? Raiser BOOK: Professional XMPP Programming with JavaScript and jQuery 2 July 21st, 2014 12:40 PM
BOSH, Strophe, and Openfire iowadeifan BOOK: Professional XMPP Programming with JavaScript and jQuery 11 March 31st, 2014 03:08 PM
Problem to attach (StropheJS/OpenFire) Woodgate BOOK: Professional XMPP Programming with JavaScript and jQuery 0 March 6th, 2012 12:49 PM
Openfire and xmpp:restart sarahgt BOOK: Professional XMPP Programming with JavaScript and jQuery 1 February 5th, 2012 08:10 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.