[wtr-general] Re: jssh error - Watir::Exception::UnableToStartJSShException

2009-04-27 Thread emz452

Just an update -
I didn't end up working from home today, so didn't get a chance to
test those things out. However, I had to re-install / setup everything
on a different computer (again) at the new office and it's all working
perfectly!

Once I try out faejon's suggestions, if they don't work, I think I'll
setup my environment from scratch again and see if that fixes it!

thanks all :)

On Apr 24, 5:46 pm, emz452 emz...@gmail.com wrote:
 Thanks for the suggestions faejon, I'll try these things and let you
 know how I go (long weekend where I am, so Tuesday will be the next
 working day for me!)

 Angrez - Yep, I have sudo/admin rights and can start firefox with
 sudo.

 On Apr 24, 4:08 pm, Angrez Singh ang...@gmail.com wrote:

  I think jssh is not installed properly, do you have admin rights? or can you
  start Firefox -jssh with sudo command?

  - Angrez

  On Fri, Apr 24, 2009 at 8:04 AM, faejon fae...@gmail.com wrote:

   On Apr 22, 7:17 pm, emz452 emz...@gmail.com wrote:
Hi there,

   ~~~ SNIP ~~~
If I launch firefox with -jssh and try to telnet:
em...@emily-desktop:~$ firefox -jssh
em...@emily-desktop:~$ telnet localhost 9997
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
em...@emily-desktop:~$
   ~~~ SNIP ~~~
Many thanks,
Emily

   Emily the above telnet test indicates that you are unable to
   communicate with your local machine on port 9997. I would check your
   firewall / ipchains settings and make sure that you are not blocking
   connections from 127.0.0.1 - 127.0.0.1. I would think that it would
   be allowed but you never know.

   You could also try disabling the firewall on your machine and then
   telnet to port 9997 while firefox is running to make certain if it is
   the firewall or not.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: jssh error - Watir::Exception::UnableToStartJSShException

2009-04-24 Thread emz452

Thanks for the suggestions faejon, I'll try these things and let you
know how I go (long weekend where I am, so Tuesday will be the next
working day for me!)

Angrez - Yep, I have sudo/admin rights and can start firefox with
sudo.

On Apr 24, 4:08 pm, Angrez Singh ang...@gmail.com wrote:
 I think jssh is not installed properly, do you have admin rights? or can you
 start Firefox -jssh with sudo command?

 - Angrez

 On Fri, Apr 24, 2009 at 8:04 AM, faejon fae...@gmail.com wrote:

  On Apr 22, 7:17 pm, emz452 emz...@gmail.com wrote:
   Hi there,

  ~~~ SNIP ~~~
   If I launch firefox with -jssh and try to telnet:
   em...@emily-desktop:~$ firefox -jssh
   em...@emily-desktop:~$ telnet localhost 9997
   Trying 127.0.0.1...
   telnet: Unable to connect to remote host: Connection refused
   em...@emily-desktop:~$
  ~~~ SNIP ~~~
   Many thanks,
   Emily

  Emily the above telnet test indicates that you are unable to
  communicate with your local machine on port 9997. I would check your
  firewall / ipchains settings and make sure that you are not blocking
  connections from 127.0.0.1 - 127.0.0.1. I would think that it would
  be allowed but you never know.

  You could also try disabling the firewall on your machine and then
  telnet to port 9997 while firefox is running to make certain if it is
  the firewall or not.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: jssh error - Watir::Exception::UnableToStartJSShException

2009-04-23 Thread emz452

Thanks for all your assistance so far guys!

Bret - yes, you're right - it is a different issue because my error is
produce consistently every time.

Alex - 32-bit (Linux emily-desktop 2.6.24-19-generic #1 SMP Wed Jun 18
14:43:41 UTC 2008 i686 GNU/Linux)

Is there a way to check if the jssh extension has installed
successfully (apart from it appear in the Add-ons  Extensions list in
Firefox). I keep feeling like something hasn't installed correctly or
I've missed a step.

Would anyone know if it's possible for router settings to affect the
jssh extension? (I'm just thinking of any differences between my work
 home setup).

Thanks again,
Em

On Apr 24, 6:44 am, Bret Pettichord b...@pettichord.com wrote:
 George,

 The main difference is that yours is an intermittent problem, whereas
 Emily's is reproducible every time.

 BTW, here is a ticket for the problem you reported to me last 
 week:http://jira.openqa.org/browse/WTR-309

 Bret



 George wrote:
  Sorry, Bret...I thought it might have been the same since the error
  message looked the same...

  On Apr 23, 9:35 am, Bret Pettichord b...@pettichord.com wrote:

  I think Emily's problem is different from the one we've discussed.

  Bret

  George wrote:

  Hi Emily,

  I've talked to Bret personally about this same issue...it appears that
  it is some kind of timing issue when Firefox opens its first browser.
  I would get this message once, but all subsequent attempts to open FF
  via Watir does not display the error from that point on.

  -George

  On Apr 22, 7:17 pm, emz452 emz...@gmail.com wrote:

  Hi there,

  I have recently started working from home and have just finished
  setting up my rails development environment. I'm running into a
  problem with Watir when running some of my tests.

  This was all running smoothly on my PC at work, so it must be some
  setting or configuration problem on my home pc.

  I've seen this posted a couple of times in the forum, however I have
  tried all the recommended solutions and still can't seem to resolve
  it.

  The full error is:
   Unable to connect to machine : 127.0.0.1 on port 9997. Make sure that
  JSSh is properly installed and Firefox is running with '-jssh' option
  (Watir::Exception::UnableToStartJSShException)
        /home/emily/Documents/metis/vendor/plugins/watir-on-rails/lib/
  watir_on_rails.rb:35:in `open_browser'
        ./features/support/watir.rb:331:in `initialize'
        ./features/support/watir.rb:11:in `new'
        ./features/support/watir.rb:11:in `initialize'

  A firefox browser does open up, but nothing further happens.

  My setup:
  I'm using Ubuntu 8.04 (Hardy) (dual boot with a windows pc)
  I have the gem firewatir 1.6.2 installed.
  I'm using Firefox 3 and have the JSSh 0.9 extension installed and
  enabled. (I made sure to select the Linux, Firefox 3 version from
  here:http://wiki.openqa.org/display/WTR/FireWatir+Installation#FireWatirIn...

  My firefox settings are -
  - New pages should be opened in a new window
  - Popups are not blocked

  I have tried uninstalling/re-installing the JSSh extension, disabling
  and re-enabling it and restarted firefox each time.

  If I launch firefox with -jssh and try to telnet:
  em...@emily-desktop:~$ firefox -jssh
  em...@emily-desktop:~$ telnet localhost 9997
  Trying 127.0.0.1...
  telnet: Unable to connect to remote host: Connection refused
  em...@emily-desktop:~$

  When I run the unit tests it fails:
  em...@emily-desktop:/usr/lib/ruby/gems/1.8/gems/firewatir-1.6.2/
  unittests$ sudo ruby mozilla_all_tests.rb
  [sudo] password for emily:
  /usr/lib/ruby/gems/1.8/gems/firewatir-1.6.2/unittests/setup.rb:13:in
  `require': no such file to load -- watir (LoadError)
          from 
  /usr/lib/ruby/gems/1.8/gems/firewatir-1.6.2/unittests/setup.rb:
  13
          from mozilla_all_tests.rb:3:in `require'
          from mozilla_all_tests.rb:3
  However I read that this happens with 1.6.2, so I'm not sure if this
  means anything. (I think I need to copy development files across?)

  If anyone has any suggestions of possible settings/config changes I
  could check, it would be greatly appreciated! I'm new to watir - so
  there may be something very obvious I've missed!

  Many thanks,
  Emily

  --
  Bret Pettichord
  CTO, WatirCraft LLC,www.watircraft.com
  Lead Developer, Watir,www.watir.com
  Blog,www.io.com/~wazmo/blog
  Twitter,www.twitter.com/bpettichord

  Ask me about Watir trainingwww.watircraft.com/training

 --
 Bret Pettichord
 CTO, WatirCraft LLC,www.watircraft.com
 Lead Developer, Watir,www.watir.com
 Blog,www.io.com/~wazmo/blog
 Twitter,www.twitter.com/bpettichord

 Ask me about Watir trainingwww.watircraft.com/training

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org

[wtr-general] jssh error - Watir::Exception::UnableToStartJSShException

2009-04-22 Thread emz452

Hi there,

I have recently started working from home and have just finished
setting up my rails development environment. I'm running into a
problem with Watir when running some of my tests.

This was all running smoothly on my PC at work, so it must be some
setting or configuration problem on my home pc.

I've seen this posted a couple of times in the forum, however I have
tried all the recommended solutions and still can't seem to resolve
it.

The full error is:
 Unable to connect to machine : 127.0.0.1 on port 9997. Make sure that
JSSh is properly installed and Firefox is running with '-jssh' option
(Watir::Exception::UnableToStartJSShException)
  /home/emily/Documents/metis/vendor/plugins/watir-on-rails/lib/
watir_on_rails.rb:35:in `open_browser'
  ./features/support/watir.rb:331:in `initialize'
  ./features/support/watir.rb:11:in `new'
  ./features/support/watir.rb:11:in `initialize'

A firefox browser does open up, but nothing further happens.

My setup:
I'm using Ubuntu 8.04 (Hardy) (dual boot with a windows pc)
I have the gem firewatir 1.6.2 installed.
I'm using Firefox 3 and have the JSSh 0.9 extension installed and
enabled. (I made sure to select the Linux, Firefox 3 version from
here: 
http://wiki.openqa.org/display/WTR/FireWatir+Installation#FireWatirInstallation-2)InstalltheJSSHFirefoxExtension

My firefox settings are -
- New pages should be opened in a new window
- Popups are not blocked

I have tried uninstalling/re-installing the JSSh extension, disabling
and re-enabling it and restarted firefox each time.

If I launch firefox with -jssh and try to telnet:
em...@emily-desktop:~$ firefox -jssh
em...@emily-desktop:~$ telnet localhost 9997
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
em...@emily-desktop:~$

When I run the unit tests it fails:
em...@emily-desktop:/usr/lib/ruby/gems/1.8/gems/firewatir-1.6.2/
unittests$ sudo ruby mozilla_all_tests.rb
[sudo] password for emily:
/usr/lib/ruby/gems/1.8/gems/firewatir-1.6.2/unittests/setup.rb:13:in
`require': no such file to load -- watir (LoadError)
from /usr/lib/ruby/gems/1.8/gems/firewatir-1.6.2/unittests/setup.rb:
13
from mozilla_all_tests.rb:3:in `require'
from mozilla_all_tests.rb:3
However I read that this happens with 1.6.2, so I'm not sure if this
means anything. (I think I need to copy development files across?)

If anyone has any suggestions of possible settings/config changes I
could check, it would be greatly appreciated! I'm new to watir - so
there may be something very obvious I've missed!

Many thanks,
Emily


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: jssh error - Watir::Exception::UnableToStartJSShException

2009-04-22 Thread emz452

hmm - thanks George.

I'm not sure if it's the same problem, but if it is the same, is there
any way around it?
I tried increasing the number of tries in the set_defaults method in
firefox.rb (to 25, 100, 1000 and 5000) with no luck.

Thanks,
Em


On Apr 23, 12:52 pm, George george.sand...@gmail.com wrote:
 Hi Emily,

 I've talked to Bret personally about this same issue...it appears that
 it is some kind of timing issue when Firefox opens its first browser.
 I would get this message once, but all subsequent attempts to open FF
 via Watir does not display the error from that point on.

 -George

 On Apr 22, 7:17 pm, emz452 emz...@gmail.com wrote:

  Hi there,

  I have recently started working from home and have just finished
  setting up my rails development environment. I'm running into a
  problem with Watir when running some of my tests.

  This was all running smoothly on my PC at work, so it must be some
  setting or configuration problem on my home pc.

  I've seen this posted a couple of times in the forum, however I have
  tried all the recommended solutions and still can't seem to resolve
  it.

  The full error is:
   Unable to connect to machine : 127.0.0.1 on port 9997. Make sure that
  JSSh is properly installed and Firefox is running with '-jssh' option
  (Watir::Exception::UnableToStartJSShException)
        /home/emily/Documents/metis/vendor/plugins/watir-on-rails/lib/
  watir_on_rails.rb:35:in `open_browser'
        ./features/support/watir.rb:331:in `initialize'
        ./features/support/watir.rb:11:in `new'
        ./features/support/watir.rb:11:in `initialize'

  A firefox browser does open up, but nothing further happens.

  My setup:
  I'm using Ubuntu 8.04 (Hardy) (dual boot with a windows pc)
  I have the gem firewatir 1.6.2 installed.
  I'm using Firefox 3 and have the JSSh 0.9 extension installed and
  enabled. (I made sure to select the Linux, Firefox 3 version from
  here:http://wiki.openqa.org/display/WTR/FireWatir+Installation#FireWatirIn...

  My firefox settings are -
  - New pages should be opened in a new window
  - Popups are not blocked

  I have tried uninstalling/re-installing the JSSh extension, disabling
  and re-enabling it and restarted firefox each time.

  If I launch firefox with -jssh and try to telnet:
  em...@emily-desktop:~$ firefox -jssh
  em...@emily-desktop:~$ telnet localhost 9997
  Trying 127.0.0.1...
  telnet: Unable to connect to remote host: Connection refused
  em...@emily-desktop:~$

  When I run the unit tests it fails:
  em...@emily-desktop:/usr/lib/ruby/gems/1.8/gems/firewatir-1.6.2/
  unittests$ sudo ruby mozilla_all_tests.rb
  [sudo] password for emily:
  /usr/lib/ruby/gems/1.8/gems/firewatir-1.6.2/unittests/setup.rb:13:in
  `require': no such file to load -- watir (LoadError)
          from /usr/lib/ruby/gems/1.8/gems/firewatir-1.6.2/unittests/setup.rb:
  13
          from mozilla_all_tests.rb:3:in `require'
          from mozilla_all_tests.rb:3
  However I read that this happens with 1.6.2, so I'm not sure if this
  means anything. (I think I need to copy development files across?)

  If anyone has any suggestions of possible settings/config changes I
  could check, it would be greatly appreciated! I'm new to watir - so
  there may be something very obvious I've missed!

  Many thanks,
  Emily

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: jssh error - Watir::Exception::UnableToStartJSShException

2009-04-22 Thread emz452

hmm - thanks George.

I'm not sure if it's the same problem, but if it is the same, is there
any way around it?
I tried increasing the number of tries in the set_defaults method in
firefox.rb (to 25, 100, 1000 and 5000) with no luck.

Thanks,
Em

On Apr 23, 12:52 pm, George george.sand...@gmail.com wrote:
 Hi Emily,

 I've talked to Bret personally about this same issue...it appears that
 it is some kind of timing issue when Firefox opens its first browser.
 I would get this message once, but all subsequent attempts to open FF
 via Watir does not display the error from that point on.

 -George

 On Apr 22, 7:17 pm, emz452 emz...@gmail.com wrote:

  Hi there,

  I have recently started working from home and have just finished
  setting up my rails development environment. I'm running into a
  problem with Watir when running some of my tests.

  This was all running smoothly on my PC at work, so it must be some
  setting or configuration problem on my home pc.

  I've seen this posted a couple of times in the forum, however I have
  tried all the recommended solutions and still can't seem to resolve
  it.

  The full error is:
   Unable to connect to machine : 127.0.0.1 on port 9997. Make sure that
  JSSh is properly installed and Firefox is running with '-jssh' option
  (Watir::Exception::UnableToStartJSShException)
        /home/emily/Documents/metis/vendor/plugins/watir-on-rails/lib/
  watir_on_rails.rb:35:in `open_browser'
        ./features/support/watir.rb:331:in `initialize'
        ./features/support/watir.rb:11:in `new'
        ./features/support/watir.rb:11:in `initialize'

  A firefox browser does open up, but nothing further happens.

  My setup:
  I'm using Ubuntu 8.04 (Hardy) (dual boot with a windows pc)
  I have the gem firewatir 1.6.2 installed.
  I'm using Firefox 3 and have the JSSh 0.9 extension installed and
  enabled. (I made sure to select the Linux, Firefox 3 version from
  here:http://wiki.openqa.org/display/WTR/FireWatir+Installation#FireWatirIn...

  My firefox settings are -
  - New pages should be opened in a new window
  - Popups are not blocked

  I have tried uninstalling/re-installing the JSSh extension, disabling
  and re-enabling it and restarted firefox each time.

  If I launch firefox with -jssh and try to telnet:
  em...@emily-desktop:~$ firefox -jssh
  em...@emily-desktop:~$ telnet localhost 9997
  Trying 127.0.0.1...
  telnet: Unable to connect to remote host: Connection refused
  em...@emily-desktop:~$

  When I run the unit tests it fails:
  em...@emily-desktop:/usr/lib/ruby/gems/1.8/gems/firewatir-1.6.2/
  unittests$ sudo ruby mozilla_all_tests.rb
  [sudo] password for emily:
  /usr/lib/ruby/gems/1.8/gems/firewatir-1.6.2/unittests/setup.rb:13:in
  `require': no such file to load -- watir (LoadError)
          from /usr/lib/ruby/gems/1.8/gems/firewatir-1.6.2/unittests/setup.rb:
  13
          from mozilla_all_tests.rb:3:in `require'
          from mozilla_all_tests.rb:3
  However I read that this happens with 1.6.2, so I'm not sure if this
  means anything. (I think I need to copy development files across?)

  If anyone has any suggestions of possible settings/config changes I
  could check, it would be greatly appreciated! I'm new to watir - so
  there may be something very obvious I've missed!

  Many thanks,
  Emily

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---