Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > BOOK: Professional XMPP Programming with JavaScript and jQuery
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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?
  #2 (permalink)  
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
  #3 (permalink)  
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.
  #4 (permalink)  
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 ?
  #5 (permalink)  
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?
  #6 (permalink)  
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.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 02:26 PM.


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