librelist archives

« back to archive

OpenFire, Converse and Visual Studio questions

OpenFire, Converse and Visual Studio questions

From:
Moerk, Gina M
Date:
2014-11-05 @ 19:38
Hi,
                I have installed Openfire on my local computer as the XMPP
Server, and enabled HTTP binding and created some sample users.  I then 
created a Web Application in Visual Studio 2010 and added connection to 
the latest version Converse.js.  With this in the.aspx file:

<script>
require(['converse'], function (converse) {
    converse.initialize({
        auto_list_rooms: false,
        auto_subscribe: false,
        bosh_service_url: 'http://localhost:7070/http-bind/',
        hide_muc_server: false,
        i18n: locales.en, // Refer to ./locale/locales.js to see which 
locales are supported
        prebind: false,
        show_controlbox_by_default: true,
        roster_groups: true

    });
});
</script>

When I run the web page in visual studio, it brings up Converse's login, 
but when I login with one of the users I created in Openfire, it never 
logs in and just says connecting.  Sometime running the web page, I get 
this error:

A "url" property or function must be specified
converse.min.js, line 229 character 382205<0>

First, what am I missing in setting up so I can login as one of my users?
Second, why am I getting an error message?

Thanks so much for any help,



Gina Moerk
Software Engineer Assoc Mgr
Lockheed Martin MST
407.306.6724

Re: [conversejs] OpenFire, Converse and Visual Studio questions

From:
Jc Brand
Date:
2014-11-06 @ 07:08

On 05 November 2014 8:38:45 nm. CET, "Moerk, Gina M" 
<gina.m.moerk@lmco.com> wrote:
>Hi,
>I have installed Openfire on my local computer as the XMPP Server, and
>enabled HTTP binding and created some sample users.  I then created a
>Web Application in Visual Studio 2010 and added connection to the
>latest version Converse.js.  With this in the.aspx file:
>
><script>
>require(['converse'], function (converse) {
>    converse.initialize({
>        auto_list_rooms: false,
>        auto_subscribe: false,
>        bosh_service_url: 'http://localhost:7070/http-bind/',
>        hide_muc_server: false,
>i18n: locales.en, // Refer to ./locale/locales.js to see which locales
>are supported
>        prebind: false,
>        show_controlbox_by_default: true,
>        roster_groups: true
>
>    });
>});
></script>
>
>When I run the web page in visual studio, it brings up Converse's
>login, but when I login with one of the users I created in Openfire, it
>never logs in and just says connecting.  Sometime running the web page,
>I get this error:
>
>A "url" property or function must be specified
>converse.min.js, line 229 character 382205<0>
>
>First, what am I missing in setting up so I can login as one of my
>users?  Second, why am I getting an error message?
>
>Thanks so much for any help,

If your BOSH server and web application are not running on the same 
domain, then you'll need CORS enabled (which is only supported by the 
newest IEs).

This might be the issue here. Easiest fix is to configure a web server to 
serve both your web app and the BOSH server on the same domain.

This is explained in the  documentation and there are examples for Nginx 
and Apache.

If you do this in a different web browser, please send me an example 
snippet and I'll put it in the docs.

Additionally, you can add "debug: true" to your initialize call to get 
debug output in the browser's developer console.

JC

-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

Re: EXTERNAL: Re: [conversejs] OpenFire, Converse and Visual Studio questions

From:
Moerk, Gina M
Date:
2014-11-20 @ 18:23
Thanks JC, I was able to get past this issue utilizing Candy's 
documentation on set up with IIS Web Server and Openfire.  So I am now 
able to login, but when I try to add contacts, after I click the Add 
button it doesn't add the contact.  I can communicate with other contacts 
in a chat room, but that is about it.  Is there something I have set up 
wrong? How can I figure out what is going wrong?

Thanks


Gina Moerk
Software Engineer Assoc Mgr
Lockheed Martin MST
407.306.6724



-----Original Message-----
From: JC Brand [mailto:lists@opkode.com] 
Sent: Thursday, November 06, 2014 2:09 AM
To: conversejs@librelist.com; Moerk, Gina M
Subject: EXTERNAL: Re: [conversejs] OpenFire, Converse and Visual Studio questions



On 05 November 2014 8:38:45 nm. CET, "Moerk, Gina M" 
<gina.m.moerk@lmco.com> wrote:
>Hi,
>I have installed Openfire on my local computer as the XMPP Server, and 
>enabled HTTP binding and created some sample users.  I then created a 
>Web Application in Visual Studio 2010 and added connection to the 
>latest version Converse.js.  With this in the.aspx file:
>
><script>
>require(['converse'], function (converse) {
>    converse.initialize({
>        auto_list_rooms: false,
>        auto_subscribe: false,
>        bosh_service_url: 'http://localhost:7070/http-bind/',
>        hide_muc_server: false,
>i18n: locales.en, // Refer to ./locale/locales.js to see which locales 
>are supported
>        prebind: false,
>        show_controlbox_by_default: true,
>        roster_groups: true
>
>    });
>});
></script>
>
>When I run the web page in visual studio, it brings up Converse's 
>login, but when I login with one of the users I created in Openfire, it 
>never logs in and just says connecting.  Sometime running the web page, 
>I get this error:
>
>A "url" property or function must be specified converse.min.js, line 
>229 character 382205<0>
>
>First, what am I missing in setting up so I can login as one of my 
>users?  Second, why am I getting an error message?
>
>Thanks so much for any help,

If your BOSH server and web application are not running on the same 
domain, then you'll need CORS enabled (which is only supported by the 
newest IEs).

This might be the issue here. Easiest fix is to configure a web server to 
serve both your web app and the BOSH server on the same domain.

This is explained in the  documentation and there are examples for Nginx 
and Apache.

If you do this in a different web browser, please send me an example 
snippet and I'll put it in the docs.

Additionally, you can add "debug: true" to your initialize call to get 
debug output in the browser's developer console.

JC

--
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

Re: EXTERNAL: Re: [conversejs] OpenFire, Converse and Visual Studio questions

From:
Moerk, Gina M
Date:
2014-11-20 @ 18:30
I believe my issue might be related to rosters? In Openfire, my user is 
not showing as online even though I was able to login, and someone 
suggested that perhaps the initial <presence> isn't being sent with 
converse.js. When I look in Converse.js,  it seems like this is sent on 
initialization of the Roster, is that right?  I don't think this may be 
set up right perhaps in my configuration? I have created users in Openfire
that have rosters and belong to a group. Does anyone have any ideas on 
what I might be doing wrong?

Thanks,

Gina

-----Original Message-----
From: conversejs@librelist.com [mailto:conversejs@librelist.com] On Behalf
Of Moerk, Gina M
Sent: Thursday, November 20, 2014 1:24 PM
To: conversejs@librelist.com
Subject: RE: EXTERNAL: Re: [conversejs] OpenFire, Converse and Visual 
Studio questions

Thanks JC, I was able to get past this issue utilizing Candy's 
documentation on set up with IIS Web Server and Openfire.  So I am now 
able to login, but when I try to add contacts, after I click the Add 
button it doesn't add the contact.  I can communicate with other contacts 
in a chat room, but that is about it.  Is there something I have set up 
wrong? How can I figure out what is going wrong?

Thanks


Gina Moerk
Software Engineer Assoc Mgr
Lockheed Martin MST
407.306.6724



-----Original Message-----
From: JC Brand [mailto:lists@opkode.com] 
Sent: Thursday, November 06, 2014 2:09 AM
To: conversejs@librelist.com; Moerk, Gina M
Subject: EXTERNAL: Re: [conversejs] OpenFire, Converse and Visual Studio questions



On 05 November 2014 8:38:45 nm. CET, "Moerk, Gina M" 
<gina.m.moerk@lmco.com> wrote:
>Hi,
>I have installed Openfire on my local computer as the XMPP Server, and 
>enabled HTTP binding and created some sample users.  I then created a 
>Web Application in Visual Studio 2010 and added connection to the 
>latest version Converse.js.  With this in the.aspx file:
>
><script>
>require(['converse'], function (converse) {
>    converse.initialize({
>        auto_list_rooms: false,
>        auto_subscribe: false,
>        bosh_service_url: 'http://localhost:7070/http-bind/',
>        hide_muc_server: false,
>i18n: locales.en, // Refer to ./locale/locales.js to see which locales 
>are supported
>        prebind: false,
>        show_controlbox_by_default: true,
>        roster_groups: true
>
>    });
>});
></script>
>
>When I run the web page in visual studio, it brings up Converse's 
>login, but when I login with one of the users I created in Openfire, it 
>never logs in and just says connecting.  Sometime running the web page, 
>I get this error:
>
>A "url" property or function must be specified converse.min.js, line 
>229 character 382205<0>
>
>First, what am I missing in setting up so I can login as one of my 
>users?  Second, why am I getting an error message?
>
>Thanks so much for any help,

If your BOSH server and web application are not running on the same 
domain, then you'll need CORS enabled (which is only supported by the 
newest IEs).

This might be the issue here. Easiest fix is to configure a web server to 
serve both your web app and the BOSH server on the same domain.

This is explained in the  documentation and there are examples for Nginx 
and Apache.

If you do this in a different web browser, please send me an example 
snippet and I'll put it in the docs.

Additionally, you can add "debug: true" to your initialize call to get 
debug output in the browser's developer console.

JC

--
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

Re: EXTERNAL: Re: [conversejs] OpenFire, Converse and Visual Studio questions

From:
Jc Brand
Date:
2014-11-21 @ 10:13
On Thu, Nov 20, 2014 at 06:30:14PM +0000, Moerk, Gina M wrote:
> I believe my issue might be related to rosters? In Openfire, my user is 
not showing as online even though I was able to login, and someone 
suggested that perhaps the initial <presence> isn't being sent with 
converse.js. When I look in Converse.js,  it seems like this is sent on 
initialization of the Roster, is that right?

Correct.

> I don't think this may be set up right perhaps in my configuration? I 
have created users in Openfire that have rosters and belong to a group. 
Does anyone have any ideas on what I might be doing wrong?

The groups that you add, do you know if this relates to XEP-0083?
Converse.js doesn't support that XMPP extension.

However, normal roster contacts should still be shown.

I'm not sure what the issue is here.

You can set debug=false in converse.initialize and see if you get any helpful
errors or debug messages in the browser console.

Other than that, you'll likely have to set up a development environment and
then put a breakpoint in the rosterHandler method to see what's going on:

https://github.com/jcbrand/converse.js/blob/master/converse.js#L3583

JC


> -----Original Message-----
> From: conversejs@librelist.com [mailto:conversejs@librelist.com] On 
Behalf Of Moerk, Gina M
> Sent: Thursday, November 20, 2014 1:24 PM
> To: conversejs@librelist.com
> Subject: RE: EXTERNAL: Re: [conversejs] OpenFire, Converse and Visual 
Studio questions
> 
> Thanks JC, I was able to get past this issue utilizing Candy's 
documentation on set up with IIS Web Server and Openfire.  So I am now 
able to login, but when I try to add contacts, after I click the Add 
button it doesn't add the contact.  I can communicate with other contacts 
in a chat room, but that is about it.  Is there something I have set up 
wrong? How can I figure out what is going wrong?
> 
> Thanks
> 
> 
> Gina Moerk
> Software Engineer Assoc Mgr
> Lockheed Martin MST
> 407.306.6724
> 
> 
> 
> -----Original Message-----
> From: JC Brand [mailto:lists@opkode.com] 
> Sent: Thursday, November 06, 2014 2:09 AM
> To: conversejs@librelist.com; Moerk, Gina M
> Subject: EXTERNAL: Re: [conversejs] OpenFire, Converse and Visual Studio
questions
> 
> 
> 
> On 05 November 2014 8:38:45 nm. CET, "Moerk, Gina M" 
<gina.m.moerk@lmco.com> wrote:
> >Hi,
> >I have installed Openfire on my local computer as the XMPP Server, and 
> >enabled HTTP binding and created some sample users.  I then created a 
> >Web Application in Visual Studio 2010 and added connection to the 
> >latest version Converse.js.  With this in the.aspx file:
> >
> ><script>
> >require(['converse'], function (converse) {
> >    converse.initialize({
> >        auto_list_rooms: false,
> >        auto_subscribe: false,
> >        bosh_service_url: 'http://localhost:7070/http-bind/',
> >        hide_muc_server: false,
> >i18n: locales.en, // Refer to ./locale/locales.js to see which locales 
> >are supported
> >        prebind: false,
> >        show_controlbox_by_default: true,
> >        roster_groups: true
> >
> >    });
> >});
> ></script>
> >
> >When I run the web page in visual studio, it brings up Converse's 
> >login, but when I login with one of the users I created in Openfire, it 
> >never logs in and just says connecting.  Sometime running the web page, 
> >I get this error:
> >
> >A "url" property or function must be specified converse.min.js, line 
> >229 character 382205<0>
> >
> >First, what am I missing in setting up so I can login as one of my 
> >users?  Second, why am I getting an error message?
> >
> >Thanks so much for any help,
> 
> If your BOSH server and web application are not running on the same 
domain, then you'll need CORS enabled (which is only supported by the 
newest IEs).
> 
> This might be the issue here. Easiest fix is to configure a web server 
to serve both your web app and the BOSH server on the same domain.
> 
> This is explained in the  documentation and there are examples for Nginx
and Apache.
> 
> If you do this in a different web browser, please send me an example 
snippet and I'll put it in the docs.
> 
> Additionally, you can add "debug: true" to your initialize call to get 
debug output in the browser's developer console.
> 
> JC
> 
> --
> Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

Re: EXTERNAL: Re: [conversejs] OpenFire, Converse and Visual Studio questions

From:
Moerk, Gina M
Date:
2014-11-23 @ 20:02
Thanks JC, I looked at Openfire docs and it doesn't mention XEP-0083 as a 
standard they meet.  I see in the development notes that it has been 
reported that converse.js can't be built in Windows, is that still true?

Thanks,

Gina

-----Original Message-----
From: conversejs@librelist.com [mailto:conversejs@librelist.com] On Behalf
Of JC Brand
Sent: Friday, November 21, 2014 5:14 AM
To: conversejs@librelist.com
Subject: Re: EXTERNAL: Re: [conversejs] OpenFire, Converse and Visual 
Studio questions

On Thu, Nov 20, 2014 at 06:30:14PM +0000, Moerk, Gina M wrote:
> I believe my issue might be related to rosters? In Openfire, my user is 
not showing as online even though I was able to login, and someone 
suggested that perhaps the initial <presence> isn't being sent with 
converse.js. When I look in Converse.js,  it seems like this is sent on 
initialization of the Roster, is that right?

Correct.

> I don't think this may be set up right perhaps in my configuration? I 
have created users in Openfire that have rosters and belong to a group. 
Does anyone have any ideas on what I might be doing wrong?

The groups that you add, do you know if this relates to XEP-0083?
Converse.js doesn't support that XMPP extension.

However, normal roster contacts should still be shown.

I'm not sure what the issue is here.

You can set debug=false in converse.initialize and see if you get any 
helpful errors or debug messages in the browser console.

Other than that, you'll likely have to set up a development environment 
and then put a breakpoint in the rosterHandler method to see what's going 
on:

https://github.com/jcbrand/converse.js/blob/master/converse.js#L3583

JC


> -----Original Message-----
> From: conversejs@librelist.com [mailto:conversejs@librelist.com] On 
> Behalf Of Moerk, Gina M
> Sent: Thursday, November 20, 2014 1:24 PM
> To: conversejs@librelist.com
> Subject: RE: EXTERNAL: Re: [conversejs] OpenFire, Converse and Visual 
> Studio questions
> 
> Thanks JC, I was able to get past this issue utilizing Candy's 
documentation on set up with IIS Web Server and Openfire.  So I am now 
able to login, but when I try to add contacts, after I click the Add 
button it doesn't add the contact.  I can communicate with other contacts 
in a chat room, but that is about it.  Is there something I have set up 
wrong? How can I figure out what is going wrong?
> 
> Thanks
> 
> 
> Gina Moerk
> Software Engineer Assoc Mgr
> Lockheed Martin MST
> 407.306.6724
> 
> 
> 
> -----Original Message-----
> From: JC Brand [mailto:lists@opkode.com]
> Sent: Thursday, November 06, 2014 2:09 AM
> To: conversejs@librelist.com; Moerk, Gina M
> Subject: EXTERNAL: Re: [conversejs] OpenFire, Converse and Visual 
> Studio questions
> 
> 
> 
> On 05 November 2014 8:38:45 nm. CET, "Moerk, Gina M" 
<gina.m.moerk@lmco.com> wrote:
> >Hi,
> >I have installed Openfire on my local computer as the XMPP Server, 
> >and enabled HTTP binding and created some sample users.  I then 
> >created a Web Application in Visual Studio 2010 and added connection 
> >to the latest version Converse.js.  With this in the.aspx file:
> >
> ><script>
> >require(['converse'], function (converse) {
> >    converse.initialize({
> >        auto_list_rooms: false,
> >        auto_subscribe: false,
> >        bosh_service_url: 'http://localhost:7070/http-bind/',
> >        hide_muc_server: false,
> >i18n: locales.en, // Refer to ./locale/locales.js to see which 
> >locales are supported
> >        prebind: false,
> >        show_controlbox_by_default: true,
> >        roster_groups: true
> >
> >    });
> >});
> ></script>
> >
> >When I run the web page in visual studio, it brings up Converse's 
> >login, but when I login with one of the users I created in Openfire, 
> >it never logs in and just says connecting.  Sometime running the web 
> >page, I get this error:
> >
> >A "url" property or function must be specified converse.min.js, line
> >229 character 382205<0>
> >
> >First, what am I missing in setting up so I can login as one of my 
> >users?  Second, why am I getting an error message?
> >
> >Thanks so much for any help,
> 
> If your BOSH server and web application are not running on the same 
domain, then you'll need CORS enabled (which is only supported by the 
newest IEs).
> 
> This might be the issue here. Easiest fix is to configure a web server 
to serve both your web app and the BOSH server on the same domain.
> 
> This is explained in the  documentation and there are examples for Nginx
and Apache.
> 
> If you do this in a different web browser, please send me an example 
snippet and I'll put it in the docs.
> 
> Additionally, you can add "debug: true" to your initialize call to get 
debug output in the browser's developer console.
> 
> JC
> 
> --
> Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

Re: EXTERNAL: Re: [conversejs] OpenFire, Converse and Visual Studio questions

From:
Jc Brand
Date:
2014-11-24 @ 11:22
On Sun, Nov 23, 2014 at 08:02:48PM +0000, Moerk, Gina M wrote:
> Thanks JC, I looked at Openfire docs and it doesn't mention XEP-0083 as 
a standard they meet.
> I see in the development notes that it has been reported that 
converse.js can't be built in Windows, is that still true?

I forgot that in 0.8.4 we now have an unminified build of converse.js, so you
can to use that for debugging.

You can then put a breakpoint in the rosterHandler method to see what happens.

Instead of using converse.min.js, just use converse.js.

-----

Regarding windows, the situation is still like I described in my email on 
22nd Oct.

Currently, there is no step-by-step recipe for setting up a development
environment on Windows. 

It should however be possible to build converse.js on Windows, someone just needs
to spend the time and figure it out.

JC


> -----Original Message-----
> From: conversejs@librelist.com [mailto:conversejs@librelist.com] On 
Behalf Of JC Brand
> Sent: Friday, November 21, 2014 5:14 AM
> To: conversejs@librelist.com
> Subject: Re: EXTERNAL: Re: [conversejs] OpenFire, Converse and Visual 
Studio questions
> 
> On Thu, Nov 20, 2014 at 06:30:14PM +0000, Moerk, Gina M wrote:
> > I believe my issue might be related to rosters? In Openfire, my user 
is not showing as online even though I was able to login, and someone 
suggested that perhaps the initial <presence> isn't being sent with 
converse.js. When I look in Converse.js,  it seems like this is sent on 
initialization of the Roster, is that right?
> 
> Correct.
> 
> > I don't think this may be set up right perhaps in my configuration? I 
have created users in Openfire that have rosters and belong to a group. 
Does anyone have any ideas on what I might be doing wrong?
> 
> The groups that you add, do you know if this relates to XEP-0083?
> Converse.js doesn't support that XMPP extension.
> 
> However, normal roster contacts should still be shown.
> 
> I'm not sure what the issue is here.
> 
> You can set debug=false in converse.initialize and see if you get any 
helpful errors or debug messages in the browser console.
> 
> Other than that, you'll likely have to set up a development environment 
and then put a breakpoint in the rosterHandler method to see what's going 
on:
> 
> https://github.com/jcbrand/converse.js/blob/master/converse.js#L3583
> 
> JC
> 
> 
> > -----Original Message-----
> > From: conversejs@librelist.com [mailto:conversejs@librelist.com] On 
> > Behalf Of Moerk, Gina M
> > Sent: Thursday, November 20, 2014 1:24 PM
> > To: conversejs@librelist.com
> > Subject: RE: EXTERNAL: Re: [conversejs] OpenFire, Converse and Visual 
> > Studio questions
> > 
> > Thanks JC, I was able to get past this issue utilizing Candy's 
documentation on set up with IIS Web Server and Openfire.  So I am now 
able to login, but when I try to add contacts, after I click the Add 
button it doesn't add the contact.  I can communicate with other contacts 
in a chat room, but that is about it.  Is there something I have set up 
wrong? How can I figure out what is going wrong?
> > 
> > Thanks
> > 
> > 
> > Gina Moerk
> > Software Engineer Assoc Mgr
> > Lockheed Martin MST
> > 407.306.6724
> > 
> > 
> > 
> > -----Original Message-----
> > From: JC Brand [mailto:lists@opkode.com]
> > Sent: Thursday, November 06, 2014 2:09 AM
> > To: conversejs@librelist.com; Moerk, Gina M
> > Subject: EXTERNAL: Re: [conversejs] OpenFire, Converse and Visual 
> > Studio questions
> > 
> > 
> > 
> > On 05 November 2014 8:38:45 nm. CET, "Moerk, Gina M" 
<gina.m.moerk@lmco.com> wrote:
> > >Hi,
> > >I have installed Openfire on my local computer as the XMPP Server, 
> > >and enabled HTTP binding and created some sample users.  I then 
> > >created a Web Application in Visual Studio 2010 and added connection 
> > >to the latest version Converse.js.  With this in the.aspx file:
> > >
> > ><script>
> > >require(['converse'], function (converse) {
> > >    converse.initialize({
> > >        auto_list_rooms: false,
> > >        auto_subscribe: false,
> > >        bosh_service_url: 'http://localhost:7070/http-bind/',
> > >        hide_muc_server: false,
> > >i18n: locales.en, // Refer to ./locale/locales.js to see which 
> > >locales are supported
> > >        prebind: false,
> > >        show_controlbox_by_default: true,
> > >        roster_groups: true
> > >
> > >    });
> > >});
> > ></script>
> > >
> > >When I run the web page in visual studio, it brings up Converse's 
> > >login, but when I login with one of the users I created in Openfire, 
> > >it never logs in and just says connecting.  Sometime running the web 
> > >page, I get this error:
> > >
> > >A "url" property or function must be specified converse.min.js, line
> > >229 character 382205<0>
> > >
> > >First, what am I missing in setting up so I can login as one of my 
> > >users?  Second, why am I getting an error message?
> > >
> > >Thanks so much for any help,
> > 
> > If your BOSH server and web application are not running on the same 
domain, then you'll need CORS enabled (which is only supported by the 
newest IEs).
> > 
> > This might be the issue here. Easiest fix is to configure a web server
to serve both your web app and the BOSH server on the same domain.
> > 
> > This is explained in the  documentation and there are examples for 
Nginx and Apache.
> > 
> > If you do this in a different web browser, please send me an example 
snippet and I'll put it in the docs.
> > 
> > Additionally, you can add "debug: true" to your initialize call to get
debug output in the browser's developer console.
> > 
> > JC
> > 
> > --
> > Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

Re: EXTERNAL: Re: [conversejs] OpenFire, Converse and Visual Studio questions

From:
Moerk, Gina M
Date:
2014-12-03 @ 15:32
Thanks JC for your help, I was able to set up the development environment 
to debug and found that I wasn't logging in w/ the JID but the name of the
user. It allowed me to login with both but logging in with the jid sent 
the appropriate message to Openfire.

Here is what I had to do to set up the development environment in Windows:

1) Install GIT, and Node.js:  Note when installing GIT make sure to 
configure with windows command prompt setting
2) Configure node.js: Via command line in admin to work with proxy, and 
set the ssl to false (npm config set strict-ssl false)
3) Install
	-npm install
             -npm install -g bower
4) Configure bower to work w/proxy which included updated the .bowerrc 
included with converse to include "strict-ssl": false, "https-proxy": 
<proxy_name>; Which ends up looking like
		{
			"directory": "components",
			"strict-ssl": false, "https-proxy": <proxy_path>
		}
5) Then update bower command:
	-bower update

Thanks again for all your help,


Gina Moerk
Software Engineer Assoc Mgr
Lockheed Martin MST
407.306.6724



-----Original Message-----
From: conversejs@librelist.com [mailto:conversejs@librelist.com] On Behalf
Of JC Brand
Sent: Monday, November 24, 2014 6:22 AM
To: conversejs@librelist.com
Subject: Re: EXTERNAL: Re: [conversejs] OpenFire, Converse and Visual 
Studio questions

On Sun, Nov 23, 2014 at 08:02:48PM +0000, Moerk, Gina M wrote:
> Thanks JC, I looked at Openfire docs and it doesn't mention XEP-0083 as 
a standard they meet.
> I see in the development notes that it has been reported that 
converse.js can't be built in Windows, is that still true?

I forgot that in 0.8.4 we now have an unminified build of converse.js, so 
you can to use that for debugging.

You can then put a breakpoint in the rosterHandler method to see what happens.

Instead of using converse.min.js, just use converse.js.

-----

Regarding windows, the situation is still like I described in my email on 
22nd Oct.

Currently, there is no step-by-step recipe for setting up a development 
environment on Windows. 

It should however be possible to build converse.js on Windows, someone 
just needs to spend the time and figure it out.

JC


> -----Original Message-----
> From: conversejs@librelist.com [mailto:conversejs@librelist.com] On 
> Behalf Of JC Brand
> Sent: Friday, November 21, 2014 5:14 AM
> To: conversejs@librelist.com
> Subject: Re: EXTERNAL: Re: [conversejs] OpenFire, Converse and Visual 
> Studio questions
> 
> On Thu, Nov 20, 2014 at 06:30:14PM +0000, Moerk, Gina M wrote:
> > I believe my issue might be related to rosters? In Openfire, my user 
is not showing as online even though I was able to login, and someone 
suggested that perhaps the initial <presence> isn't being sent with 
converse.js. When I look in Converse.js,  it seems like this is sent on 
initialization of the Roster, is that right?
> 
> Correct.
> 
> > I don't think this may be set up right perhaps in my configuration? I 
have created users in Openfire that have rosters and belong to a group. 
Does anyone have any ideas on what I might be doing wrong?
> 
> The groups that you add, do you know if this relates to XEP-0083?
> Converse.js doesn't support that XMPP extension.
> 
> However, normal roster contacts should still be shown.
> 
> I'm not sure what the issue is here.
> 
> You can set debug=false in converse.initialize and see if you get any 
helpful errors or debug messages in the browser console.
> 
> Other than that, you'll likely have to set up a development environment 
and then put a breakpoint in the rosterHandler method to see what's going 
on:
> 
> https://github.com/jcbrand/converse.js/blob/master/converse.js#L3583
> 
> JC
> 
> 
> > -----Original Message-----
> > From: conversejs@librelist.com [mailto:conversejs@librelist.com] On 
> > Behalf Of Moerk, Gina M
> > Sent: Thursday, November 20, 2014 1:24 PM
> > To: conversejs@librelist.com
> > Subject: RE: EXTERNAL: Re: [conversejs] OpenFire, Converse and 
> > Visual Studio questions
> > 
> > Thanks JC, I was able to get past this issue utilizing Candy's 
documentation on set up with IIS Web Server and Openfire.  So I am now 
able to login, but when I try to add contacts, after I click the Add 
button it doesn't add the contact.  I can communicate with other contacts 
in a chat room, but that is about it.  Is there something I have set up 
wrong? How can I figure out what is going wrong?
> > 
> > Thanks
> > 
> > 
> > Gina Moerk
> > Software Engineer Assoc Mgr
> > Lockheed Martin MST
> > 407.306.6724
> > 
> > 
> > 
> > -----Original Message-----
> > From: JC Brand [mailto:lists@opkode.com]
> > Sent: Thursday, November 06, 2014 2:09 AM
> > To: conversejs@librelist.com; Moerk, Gina M
> > Subject: EXTERNAL: Re: [conversejs] OpenFire, Converse and Visual 
> > Studio questions
> > 
> > 
> > 
> > On 05 November 2014 8:38:45 nm. CET, "Moerk, Gina M" 
<gina.m.moerk@lmco.com> wrote:
> > >Hi,
> > >I have installed Openfire on my local computer as the XMPP Server, 
> > >and enabled HTTP binding and created some sample users.  I then 
> > >created a Web Application in Visual Studio 2010 and added 
> > >connection to the latest version Converse.js.  With this in the.aspx file:
> > >
> > ><script>
> > >require(['converse'], function (converse) {
> > >    converse.initialize({
> > >        auto_list_rooms: false,
> > >        auto_subscribe: false,
> > >        bosh_service_url: 'http://localhost:7070/http-bind/',
> > >        hide_muc_server: false,
> > >i18n: locales.en, // Refer to ./locale/locales.js to see which 
> > >locales are supported
> > >        prebind: false,
> > >        show_controlbox_by_default: true,
> > >        roster_groups: true
> > >
> > >    });
> > >});
> > ></script>
> > >
> > >When I run the web page in visual studio, it brings up Converse's 
> > >login, but when I login with one of the users I created in 
> > >Openfire, it never logs in and just says connecting.  Sometime 
> > >running the web page, I get this error:
> > >
> > >A "url" property or function must be specified converse.min.js, 
> > >line
> > >229 character 382205<0>
> > >
> > >First, what am I missing in setting up so I can login as one of my 
> > >users?  Second, why am I getting an error message?
> > >
> > >Thanks so much for any help,
> > 
> > If your BOSH server and web application are not running on the same 
domain, then you'll need CORS enabled (which is only supported by the 
newest IEs).
> > 
> > This might be the issue here. Easiest fix is to configure a web server
to serve both your web app and the BOSH server on the same domain.
> > 
> > This is explained in the  documentation and there are examples for 
Nginx and Apache.
> > 
> > If you do this in a different web browser, please send me an example 
snippet and I'll put it in the docs.
> > 
> > Additionally, you can add "debug: true" to your initialize call to get
debug output in the browser's developer console.
> > 
> > JC
> > 
> > --
> > Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

Re: EXTERNAL: Re: [conversejs] OpenFire, Converse and Visual Studio questions

From:
Moerk, Gina M
Date:
2014-12-03 @ 15:31
Thanks JC for your help, I was able to set up the development environment 
to debug and found that I wasn't logging in w/ the JID but the name of the
user. It allowed me to login with both but logging in with the jid sent 
the appropriate message to Openfire.

Here is what I had to do to set up the development environment in Windows:

1) Install GIT, and Node.js:  Note when installing GIT make sure to 
configure with windows command prompt setting
2) Configure node.js: Via command line in admin to work with proxy, and 
set the ssl to false (npm config set strict-ssl false)
3) Install
	-npm install
             -npm install -g bower
4) Configure bower to work w/proxy which included updated the .bowerrc 
included with converse to include "strict-ssl": false, "https-proxy": 
http://proxy1.global.lmco.com:8080; Which ends up looking like
		{
			"directory": "components",
			"strict-ssl": false, "https-proxy": <proxy_path>
		}
5) Then update bower command:
	-bower update

Thanks again for all your help,


Gina Moerk
Software Engineer Assoc Mgr
Lockheed Martin MST
407.306.6724



-----Original Message-----
From: conversejs@librelist.com [mailto:conversejs@librelist.com] On Behalf
Of JC Brand
Sent: Monday, November 24, 2014 6:22 AM
To: conversejs@librelist.com
Subject: Re: EXTERNAL: Re: [conversejs] OpenFire, Converse and Visual 
Studio questions

On Sun, Nov 23, 2014 at 08:02:48PM +0000, Moerk, Gina M wrote:
> Thanks JC, I looked at Openfire docs and it doesn't mention XEP-0083 as 
a standard they meet.
> I see in the development notes that it has been reported that 
converse.js can't be built in Windows, is that still true?

I forgot that in 0.8.4 we now have an unminified build of converse.js, so 
you can to use that for debugging.

You can then put a breakpoint in the rosterHandler method to see what happens.

Instead of using converse.min.js, just use converse.js.

-----

Regarding windows, the situation is still like I described in my email on 
22nd Oct.

Currently, there is no step-by-step recipe for setting up a development 
environment on Windows. 

It should however be possible to build converse.js on Windows, someone 
just needs to spend the time and figure it out.

JC


> -----Original Message-----
> From: conversejs@librelist.com [mailto:conversejs@librelist.com] On 
> Behalf Of JC Brand
> Sent: Friday, November 21, 2014 5:14 AM
> To: conversejs@librelist.com
> Subject: Re: EXTERNAL: Re: [conversejs] OpenFire, Converse and Visual 
> Studio questions
> 
> On Thu, Nov 20, 2014 at 06:30:14PM +0000, Moerk, Gina M wrote:
> > I believe my issue might be related to rosters? In Openfire, my user 
is not showing as online even though I was able to login, and someone 
suggested that perhaps the initial <presence> isn't being sent with 
converse.js. When I look in Converse.js,  it seems like this is sent on 
initialization of the Roster, is that right?
> 
> Correct.
> 
> > I don't think this may be set up right perhaps in my configuration? I 
have created users in Openfire that have rosters and belong to a group. 
Does anyone have any ideas on what I might be doing wrong?
> 
> The groups that you add, do you know if this relates to XEP-0083?
> Converse.js doesn't support that XMPP extension.
> 
> However, normal roster contacts should still be shown.
> 
> I'm not sure what the issue is here.
> 
> You can set debug=false in converse.initialize and see if you get any 
helpful errors or debug messages in the browser console.
> 
> Other than that, you'll likely have to set up a development environment 
and then put a breakpoint in the rosterHandler method to see what's going 
on:
> 
> https://github.com/jcbrand/converse.js/blob/master/converse.js#L3583
> 
> JC
> 
> 
> > -----Original Message-----
> > From: conversejs@librelist.com [mailto:conversejs@librelist.com] On 
> > Behalf Of Moerk, Gina M
> > Sent: Thursday, November 20, 2014 1:24 PM
> > To: conversejs@librelist.com
> > Subject: RE: EXTERNAL: Re: [conversejs] OpenFire, Converse and 
> > Visual Studio questions
> > 
> > Thanks JC, I was able to get past this issue utilizing Candy's 
documentation on set up with IIS Web Server and Openfire.  So I am now 
able to login, but when I try to add contacts, after I click the Add 
button it doesn't add the contact.  I can communicate with other contacts 
in a chat room, but that is about it.  Is there something I have set up 
wrong? How can I figure out what is going wrong?
> > 
> > Thanks
> > 
> > 
> > Gina Moerk
> > Software Engineer Assoc Mgr
> > Lockheed Martin MST
> > 407.306.6724
> > 
> > 
> > 
> > -----Original Message-----
> > From: JC Brand [mailto:lists@opkode.com]
> > Sent: Thursday, November 06, 2014 2:09 AM
> > To: conversejs@librelist.com; Moerk, Gina M
> > Subject: EXTERNAL: Re: [conversejs] OpenFire, Converse and Visual 
> > Studio questions
> > 
> > 
> > 
> > On 05 November 2014 8:38:45 nm. CET, "Moerk, Gina M" 
<gina.m.moerk@lmco.com> wrote:
> > >Hi,
> > >I have installed Openfire on my local computer as the XMPP Server, 
> > >and enabled HTTP binding and created some sample users.  I then 
> > >created a Web Application in Visual Studio 2010 and added 
> > >connection to the latest version Converse.js.  With this in the.aspx file:
> > >
> > ><script>
> > >require(['converse'], function (converse) {
> > >    converse.initialize({
> > >        auto_list_rooms: false,
> > >        auto_subscribe: false,
> > >        bosh_service_url: 'http://localhost:7070/http-bind/',
> > >        hide_muc_server: false,
> > >i18n: locales.en, // Refer to ./locale/locales.js to see which 
> > >locales are supported
> > >        prebind: false,
> > >        show_controlbox_by_default: true,
> > >        roster_groups: true
> > >
> > >    });
> > >});
> > ></script>
> > >
> > >When I run the web page in visual studio, it brings up Converse's 
> > >login, but when I login with one of the users I created in 
> > >Openfire, it never logs in and just says connecting.  Sometime 
> > >running the web page, I get this error:
> > >
> > >A "url" property or function must be specified converse.min.js, 
> > >line
> > >229 character 382205<0>
> > >
> > >First, what am I missing in setting up so I can login as one of my 
> > >users?  Second, why am I getting an error message?
> > >
> > >Thanks so much for any help,
> > 
> > If your BOSH server and web application are not running on the same 
domain, then you'll need CORS enabled (which is only supported by the 
newest IEs).
> > 
> > This might be the issue here. Easiest fix is to configure a web server
to serve both your web app and the BOSH server on the same domain.
> > 
> > This is explained in the  documentation and there are examples for 
Nginx and Apache.
> > 
> > If you do this in a different web browser, please send me an example 
snippet and I'll put it in the docs.
> > 
> > Additionally, you can add "debug: true" to your initialize call to get
debug output in the browser's developer console.
> > 
> > JC
> > 
> > --
> > Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

Re: EXTERNAL: Re: [conversejs] OpenFire, Converse and Visual Studio questions

From:
Jc Brand
Date:
2014-12-04 @ 20:31
Hello Gina

Thanks a lot for writing down the steps you took.

I'll update the  documentation with your findings.

I might ask you to just double check once I've updated the docs.

Regards
JC


On 03 Desember 2014 4:31:12 nm. CET, "Moerk, Gina M" 
<gina.m.moerk@lmco.com> wrote:
>Thanks JC for your help, I was able to set up the development
>environment to debug and found that I wasn't logging in w/ the JID but
>the name of the user. It allowed me to login with both but logging in
>with the jid sent the appropriate message to Openfire.
>
>Here is what I had to do to set up the development environment in
>Windows:
>
>1) Install GIT, and Node.js:  Note when installing GIT make sure to
>configure with windows command prompt setting
>2) Configure node.js: Via command line in admin to work with proxy, and
>set the ssl to false (npm config set strict-ssl false)
>3) Install
>	-npm install
>             -npm install -g bower
>4) Configure bower to work w/proxy which included updated the .bowerrc
>included with converse to include "strict-ssl": false, "https-proxy":
>http://proxy1.global.lmco.com:8080; Which ends up looking like
>		{
>			"directory": "components",
>			"strict-ssl": false, "https-proxy": <proxy_path>
>		}
>5) Then update bower command:
>	-bower update
>
>Thanks again for all your help,
>
>
>Gina Moerk
>Software Engineer Assoc Mgr
>Lockheed Martin MST
>407.306.6724
>
>
>
>-----Original Message-----
>From: conversejs@librelist.com [mailto:conversejs@librelist.com] On
>Behalf Of JC Brand
>Sent: Monday, November 24, 2014 6:22 AM
>To: conversejs@librelist.com
>Subject: Re: EXTERNAL: Re: [conversejs] OpenFire, Converse and Visual
>Studio questions
>
>On Sun, Nov 23, 2014 at 08:02:48PM +0000, Moerk, Gina M wrote:
>> Thanks JC, I looked at Openfire docs and it doesn't mention XEP-0083
>as a standard they meet.
>> I see in the development notes that it has been reported that
>converse.js can't be built in Windows, is that still true?
>
>I forgot that in 0.8.4 we now have an unminified build of converse.js,
>so you can to use that for debugging.
>
>You can then put a breakpoint in the rosterHandler method to see what
>happens.
>
>Instead of using converse.min.js, just use converse.js.
>
>-----
>
>Regarding windows, the situation is still like I described in my email
>on 22nd Oct.
>
>Currently, there is no step-by-step recipe for setting up a development
>environment on Windows. 
>
>It should however be possible to build converse.js on Windows, someone
>just needs to spend the time and figure it out.
>
>JC
>
>
>> -----Original Message-----
>> From: conversejs@librelist.com [mailto:conversejs@librelist.com] On 
>> Behalf Of JC Brand
>> Sent: Friday, November 21, 2014 5:14 AM
>> To: conversejs@librelist.com
>> Subject: Re: EXTERNAL: Re: [conversejs] OpenFire, Converse and Visual
>
>> Studio questions
>> 
>> On Thu, Nov 20, 2014 at 06:30:14PM +0000, Moerk, Gina M wrote:
>> > I believe my issue might be related to rosters? In Openfire, my
>user is not showing as online even though I was able to login, and
>someone suggested that perhaps the initial <presence> isn't being sent
>with converse.js. When I look in Converse.js,  it seems like this is
>sent on initialization of the Roster, is that right?
>> 
>> Correct.
>> 
>> > I don't think this may be set up right perhaps in my configuration?
>I have created users in Openfire that have rosters and belong to a
>group. Does anyone have any ideas on what I might be doing wrong?
>> 
>> The groups that you add, do you know if this relates to XEP-0083?
>> Converse.js doesn't support that XMPP extension.
>> 
>> However, normal roster contacts should still be shown.
>> 
>> I'm not sure what the issue is here.
>> 
>> You can set debug=false in converse.initialize and see if you get any
>helpful errors or debug messages in the browser console.
>> 
>> Other than that, you'll likely have to set up a development
>environment and then put a breakpoint in the rosterHandler method to
>see what's going on:
>> 
>> https://github.com/jcbrand/converse.js/blob/master/converse.js#L3583
>> 
>> JC
>> 
>> 
>> > -----Original Message-----
>> > From: conversejs@librelist.com [mailto:conversejs@librelist.com] On
>
>> > Behalf Of Moerk, Gina M
>> > Sent: Thursday, November 20, 2014 1:24 PM
>> > To: conversejs@librelist.com
>> > Subject: RE: EXTERNAL: Re: [conversejs] OpenFire, Converse and 
>> > Visual Studio questions
>> > 
>> > Thanks JC, I was able to get past this issue utilizing Candy's
>documentation on set up with IIS Web Server and Openfire.  So I am now
>able to login, but when I try to add contacts, after I click the Add
>button it doesn't add the contact.  I can communicate with other
>contacts in a chat room, but that is about it.  Is there something I
>have set up wrong? How can I figure out what is going wrong?
>> > 
>> > Thanks
>> > 
>> > 
>> > Gina Moerk
>> > Software Engineer Assoc Mgr
>> > Lockheed Martin MST
>> > 407.306.6724
>> > 
>> > 
>> > 
>> > -----Original Message-----
>> > From: JC Brand [mailto:lists@opkode.com]
>> > Sent: Thursday, November 06, 2014 2:09 AM
>> > To: conversejs@librelist.com; Moerk, Gina M
>> > Subject: EXTERNAL: Re: [conversejs] OpenFire, Converse and Visual 
>> > Studio questions
>> > 
>> > 
>> > 
>> > On 05 November 2014 8:38:45 nm. CET, "Moerk, Gina M"
><gina.m.moerk@lmco.com> wrote:
>> > >Hi,
>> > >I have installed Openfire on my local computer as the XMPP Server,
>
>> > >and enabled HTTP binding and created some sample users.  I then 
>> > >created a Web Application in Visual Studio 2010 and added 
>> > >connection to the latest version Converse.js.  With this in
>the.aspx file:
>> > >
>> > ><script>
>> > >require(['converse'], function (converse) {
>> > >    converse.initialize({
>> > >        auto_list_rooms: false,
>> > >        auto_subscribe: false,
>> > >        bosh_service_url: 'http://localhost:7070/http-bind/',
>> > >        hide_muc_server: false,
>> > >i18n: locales.en, // Refer to ./locale/locales.js to see which 
>> > >locales are supported
>> > >        prebind: false,
>> > >        show_controlbox_by_default: true,
>> > >        roster_groups: true
>> > >
>> > >    });
>> > >});
>> > ></script>
>> > >
>> > >When I run the web page in visual studio, it brings up Converse's 
>> > >login, but when I login with one of the users I created in 
>> > >Openfire, it never logs in and just says connecting.  Sometime 
>> > >running the web page, I get this error:
>> > >
>> > >A "url" property or function must be specified converse.min.js, 
>> > >line
>> > >229 character 382205<0>
>> > >
>> > >First, what am I missing in setting up so I can login as one of my
>
>> > >users?  Second, why am I getting an error message?
>> > >
>> > >Thanks so much for any help,
>> > 
>> > If your BOSH server and web application are not running on the same
>domain, then you'll need CORS enabled (which is only supported by the
>newest IEs).
>> > 
>> > This might be the issue here. Easiest fix is to configure a web
>server to serve both your web app and the BOSH server on the same
>domain.
>> > 
>> > This is explained in the  documentation and there are examples for
>Nginx and Apache.
>> > 
>> > If you do this in a different web browser, please send me an
>example snippet and I'll put it in the docs.
>> > 
>> > Additionally, you can add "debug: true" to your initialize call to
>get debug output in the browser's developer console.
>> > 
>> > JC
>> > 
>> > --
>> > Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail
>gesendet.

-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.