jackrabbitsgroup / learn-mean-seed

Learn Angular (AngularJS). Learn Node (node.js). Learn HTML5, CSS3, Javascript. Learn to build responsive, cross-platform (mobile) apps and websites using the MEAN stack / generator-mean-seed.
9 stars 2 forks source link

Error: Unable to access jarfile node_modulesprotractorseleniumselenium-server-standalone-2.39.0.jar #1

Closed jackygrahamez closed 10 years ago

jackygrahamez commented 10 years ago

following these directions to start the lesson

command window #2: run the grunt build/test watcher to auto reload the site and run tests as you make changes
open a SECOND command window and again navigate (using cd) to the root folder of this project/app
type grunt lessons-dev

after entering grunt lessons-dev I get the following error. It looks like a configuration file is not pointing to the correct path for the webdriver but not sure which file to enter the path in or if the path is set in the environment as a variable.

Running "ngtemplates:main" (ngtemplates) task
Verifying property ngtemplates.main exists in config...OK
Files: ./app/src/modules/services/nav/header-centered/header-centered.html, ./app/src/modules/services/nav/footer-flex/footer-flex.html, ./app/src/modules/pages/header/header.html, ./app/src/modules/pages/footer/footer.html, ./app/src/modules/pages/home/home.html, ./app/src/modules/pages/login/login.html, ./app/src/modules/pages/signup/signup.html, ./app/src/modules/pages/passwordReset/password-reset.html, ./app/src/modules/pages/logout/logout.html, ./app/src/modules/pages/userDelete/user-delete.html, ./app/src/modules/pages/angular/directive/use/forminput/angular-forminput-basic/angular-forminput-basic.html, ./app/src/modules/pages/angular/controller/test/scope/angular-controller-test-scope/angular-controller-test-scope.html, ./app/src/modules/pages/angular/test/scope-digest/angular-test-scope-digest/angular-test-scope-digest.html, ./app/src/modules/pages/angular/test/scope-on/angular-test-scope-on/angular-test-scope-on.html, ./app/src/modules/pages/angular/test/angular-test-element-find/angular-test-element-find.html, ./app/src/modules/pages/docs/angular/docs-angular/docs-angular.html, ./app/src/modules/pages/docs/angular/docs-angular-directive/docs-angular-directive.html, ./app/src/modules/pages/docs/testing/docs-testing/docs-testing.html, ./app/src/modules/pages/docs/testing/docs-testing-jasmine/docs-testing-jasmine.html, ./app/src/modules/pages/docs/getting-started/docs-getting-started/docs-getting-started.html, ./app/src/modules/pages/toc/toc/toc.html, ./app/src/modules/pages/html/html-attributes/html-attributes.html, ./app/src/modules/pages/html/html-intro/html-intro.html, ./app/src/modules/pages/html/html-div/html-div.html, ./app/src/modules/pages/html/html-img/html-img.html, ./app/src/modules/pages/html/html-self-closing/html-self-closing.html, ./app/src/modules/pages/html/html-br/html-br.html, ./app/src/modules/pages/html/html-input/html-input.html, ./app/src/modules/pages/html/html-a/html-a.html, ./app/src/modules/pages/html/html-hpspan/html-hpspan.html, ./app/src/modules/pages/callback/twitter-auth-callback/twitter-auth-callback.html, ./app/src/modules/pages/dev-test/test/test.html, ./app/src/modules/pages/dev-test/design/design.html, ./app/src/modules/pages/dev-test/socketio/socketio.html, ./app/src/modules/pages/css/css-intro/css-intro.html, ./app/src/modules/pages/css/css-transition/css-transition.html, ./app/src/modules/pages/css/css-selectors/css-selectors.html, ./app/src/modules/pages/css/css-textstyles/css-textstyles.html, ./app/src/modules/pages/css/css-spacing/css-spacing.html, ./app/src/modules/pages/css/css-colors/css-colors.html, ./app/src/modules/pages/css/layout/css-layout-position/css-layout-position.html, ./app/src/modules/pages/css/layout/css-layout-float/css-layout-float.html, ./app/src/modules/pages/css/layout/css-layout-inline/css-layout-inline.html, ./app/src/modules/pages/css/layout/css-layout-flexbox/css-layout-flexbox.html, ./app/src/modules/pages/css/pseudo-classes/css-pclasses-hover/css-pclasses-hover.html, ./app/src/modules/pages/css/pseudo-classes/css-pclasses-children/css-pclasses-children.html, ./app/src/modules/pages/css/css-descendant/css-descendant.html, ./app/src/modules/pages/css/css-vendor-prefix/css-vendor-prefix.html, ./app/src/modules/pages/css/css-mixin/css-mixin.html, ./app/src/modules/pages/misc-tips/web-debugger/web-debugger.html, ./app/src/modules/pages/js/js-intro/js-intro.html, ./app/src/modules/pages/js/js-variables/js-variables.html, ./app/src/modules/pages/js/js-functions/js-functions.html, ./app/src/modules/pages/js/js-arrays/js-arrays.html, ./app/src/modules/pages/js/js-objects/js-objects.html, ./app/src/modules/pages/js/js-operators/js-operators.html, ./app/src/modules/pages/js/js-logic/js-logic.html, ./app/src/modules/pages/js/js-loops/js-loops.html, ./app/src/modules/pages/js/js-math/js-math.html, ./app/src/modules/pages/js/js-recursion/js-recursion.html, ./app/src/modules/pages/angular-basics/angular-intro/angular-intro.html, ./app/src/modules/pages/angular-basics/ang-scope/ang-scope.html, ./app/src/modules/pages/angular-basics/directives/ang-directives-intro/ang-directives-intro.html, ./app/src/modules/pages/angular-basics/directives/ang-directives-repeat/ang-directives-repeat.html, ./app/src/modules/pages/angular-basics/directives/ang-directives-click/ang-directives-click.html, ./app/src/modules/pages/angular-basics/directives/ang-directives-show-if/ang-directives-show-if.html -> app/src/build/templates.js
Options: base="app/src", prepend="/src/", module="myApp"
Options: base="app/src", prepend="/src/", module="myApp"
Reading ./app/src/modules/services/nav/header-centered/header-centered.html...OK
Reading ./app/src/modules/services/nav/footer-flex/footer-flex.html...OK
Reading ./app/src/modules/pages/header/header.html...OK
Reading ./app/src/modules/pages/footer/footer.html...OK
Reading ./app/src/modules/pages/home/home.html...OK
Reading ./app/src/modules/pages/login/login.html...OK
Reading ./app/src/modules/pages/signup/signup.html...OK
Reading ./app/src/modules/pages/passwordReset/password-reset.html...OK
Reading ./app/src/modules/pages/logout/logout.html...OK
Reading ./app/src/modules/pages/userDelete/user-delete.html...OK
Reading ./app/src/modules/pages/angular/directive/use/forminput/angular-forminput-basic/angular-forminput-basic.html...OK
Reading ./app/src/modules/pages/angular/controller/test/scope/angular-controller-test-scope/angular-controller-test-scope.html...OK
Reading ./app/src/modules/pages/angular/test/scope-digest/angular-test-scope-digest/angular-test-scope-digest.html...OK
Reading ./app/src/modules/pages/angular/test/scope-on/angular-test-scope-on/angular-test-scope-on.html...OK
Reading ./app/src/modules/pages/angular/test/angular-test-element-find/angular-test-element-find.html...OK
Reading ./app/src/modules/pages/docs/angular/docs-angular/docs-angular.html...OK
Reading ./app/src/modules/pages/docs/angular/docs-angular-directive/docs-angular-directive.html...OK
Reading ./app/src/modules/pages/docs/testing/docs-testing/docs-testing.html...OK
Reading ./app/src/modules/pages/docs/testing/docs-testing-jasmine/docs-testing-jasmine.html...OK
Reading ./app/src/modules/pages/docs/getting-started/docs-getting-started/docs-getting-started.html...OK
Reading ./app/src/modules/pages/toc/toc/toc.html...OK
Reading ./app/src/modules/pages/html/html-attributes/html-attributes.html...OK
Reading ./app/src/modules/pages/html/html-intro/html-intro.html...OK
Reading ./app/src/modules/pages/html/html-div/html-div.html...OK
Reading ./app/src/modules/pages/html/html-img/html-img.html...OK
Reading ./app/src/modules/pages/html/html-self-closing/html-self-closing.html...OK
Reading ./app/src/modules/pages/html/html-br/html-br.html...OK
Reading ./app/src/modules/pages/html/html-input/html-input.html...OK
Reading ./app/src/modules/pages/html/html-a/html-a.html...OK
Reading ./app/src/modules/pages/html/html-hpspan/html-hpspan.html...OK
Reading ./app/src/modules/pages/callback/twitter-auth-callback/twitter-auth-callback.html...OK
Reading ./app/src/modules/pages/dev-test/test/test.html...OK
Reading ./app/src/modules/pages/dev-test/design/design.html...OK
Reading ./app/src/modules/pages/dev-test/socketio/socketio.html...OK
Reading ./app/src/modules/pages/css/css-intro/css-intro.html...OK
Reading ./app/src/modules/pages/css/css-transition/css-transition.html...OK
Reading ./app/src/modules/pages/css/css-selectors/css-selectors.html...OK
Reading ./app/src/modules/pages/css/css-textstyles/css-textstyles.html...OK
Reading ./app/src/modules/pages/css/css-spacing/css-spacing.html...OK
Reading ./app/src/modules/pages/css/css-colors/css-colors.html...OK
Reading ./app/src/modules/pages/css/layout/css-layout-position/css-layout-position.html...OK
Reading ./app/src/modules/pages/css/layout/css-layout-float/css-layout-float.html...OK
Reading ./app/src/modules/pages/css/layout/css-layout-inline/css-layout-inline.html...OK
Reading ./app/src/modules/pages/css/layout/css-layout-flexbox/css-layout-flexbox.html...OK
Reading ./app/src/modules/pages/css/pseudo-classes/css-pclasses-hover/css-pclasses-hover.html...OK
Reading ./app/src/modules/pages/css/pseudo-classes/css-pclasses-children/css-pclasses-children.html...OK
Reading ./app/src/modules/pages/css/css-descendant/css-descendant.html...OK
Reading ./app/src/modules/pages/css/css-vendor-prefix/css-vendor-prefix.html...OK
Reading ./app/src/modules/pages/css/css-mixin/css-mixin.html...OK
Reading ./app/src/modules/pages/misc-tips/web-debugger/web-debugger.html...OK
Reading ./app/src/modules/pages/js/js-intro/js-intro.html...OK
Reading ./app/src/modules/pages/js/js-variables/js-variables.html...OK
Reading ./app/src/modules/pages/js/js-functions/js-functions.html...OK
Reading ./app/src/modules/pages/js/js-arrays/js-arrays.html...OK
Reading ./app/src/modules/pages/js/js-objects/js-objects.html...OK
Reading ./app/src/modules/pages/js/js-operators/js-operators.html...OK
Reading ./app/src/modules/pages/js/js-logic/js-logic.html...OK
Reading ./app/src/modules/pages/js/js-loops/js-loops.html...OK
Reading ./app/src/modules/pages/js/js-math/js-math.html...OK
Reading ./app/src/modules/pages/js/js-recursion/js-recursion.html...OK
Reading ./app/src/modules/pages/angular-basics/angular-intro/angular-intro.html...OK
Reading ./app/src/modules/pages/angular-basics/ang-scope/ang-scope.html...OK
Reading ./app/src/modules/pages/angular-basics/directives/ang-directives-intro/ang-directives-intro.html...OK
Reading ./app/src/modules/pages/angular-basics/directives/ang-directives-repeat/ang-directives-repeat.html...OK
Reading ./app/src/modules/pages/angular-basics/directives/ang-directives-click/ang-directives-click.html...OK
Reading ./app/src/modules/pages/angular-basics/directives/ang-directives-show-if/ang-directives-show-if.html...OK
Writing app/src/build/templates.js...OK
File app/src/build/templates.js created.
>> Error: Unable to access jarfile node_modulesprotractorseleniumselenium-server-standalone-2.39.0.jar
configFile: ./app/configs/config.test.json

Running "less:dev" (less) task
Verifying property less.dev exists in config...OK
Files: app/src/common/less/_base.less -> app/src/build/base.css
Options: (none)
Reading app/src/common/less/_base.less...OK
Warning: Done, with errors. Use --force to continue.

Aborted due to warnings.
lukemadera commented 10 years ago

Did you try the changelog: https://github.com/jackrabbitsgroup/learn-mean-seed/blob/master/CHANGELOG.md

I updated the seed to Protractor 0.16.1 so you'll need to update accordingly with:

./node_modules/protractor/bin/webdriver-manager update

You may also need to (first) run npm install && bower install

Sorry if that was unclear; we're working on a better versioning system where Grunt will fail / show a warning if dependencies are out of date to make this easier.

If that's NOT the problem let me know and we can debug further!

jackygrahamez commented 10 years ago

I did not see a selenium folder in the root project directory. This is what I tried and I failed. :-(

$ find . -name "selenium" -print
./node_modules/protractor/selenium
$ rm -rf node_modules/protractor/selenium/
$ ./node_modules/protractor/bin/webdriver-manager update
Updating selenium standalone
downloading https://selenium.googlecode.com/files/selenium-server-standalone-2.39.0.jar...
Updating chromedriver
downloading https://chromedriver.storage.googleapis.com/2.8/chromedriver_mac32.zip...
chromedriver_2.8.zip downloaded to /Users/jgs/Projects/learn-mean-seed/node_modules/protractor/selenium/chromedriver_2.8.zip
selenium-server-standalone-2.39.0.jar downloaded to /Users/jgs/Projects/learn-mean-seed/node_modules/protractor/selenium/selenium-server-standalone-2.39.0.jar
$ grunt lessons-dev
init
configFile: ./app/configs/config.json

Running "lessons-dev" task

Running "lessons-config" task
init
LESSONS grunt option
configFile: ./app/configs/config.json

Running "http:seleniumShutdown" (http) task
>> 0

Running "shell:seleniumStartup" (shell) task

Running "http:nodeShutdown" (http) task
>> 0

Running "shell:nodeServer" (shell) task

Running "buildfiles" task
WARNING: undefined: filePaths.testsLessons and/or filePaths.testsLessons.testE2E

buildfiles forming configPaths:
SKIPPED files (due to ifOpts):
1. key: noPrefixTest
2. key: karmaUnitCoverageNoLessons
3. key: testProtractor

buildfiles writing files (if multiple files go to the same destination, the LAST one is the src that will have been used):
SKIPPED files (due to ifOpts):
1. src: app/src/index-prod-grunt.html
2. src: app/src/index-phonegap-grunt.html
3. src: app/src/index-triggerio-grunt.html
WRITTEN files:
1. app/src/index.html src: app/src/index-grunt.html
2. app/src/common/less/_base.less src: app/src/common/less/_base-grunt.less
3. app/src/modules/services/config/config.js src: app/src/modules/services/config/config-grunt.js
4. app/src/config/karma.conf.js src: app/src/config/karma.conf-grunt.js
5. app/src/config/karma-no-coverage.conf.js src: app/src/config/karma-no-coverage.conf-grunt.js
6. app/src/common/less/variables/_dir-paths.less src: app/src/common/less/variables/_dir-paths.tpl
7. app/src/config/protractor/protractor.conf.js src: app/src/config/protractor.conf-grunt.js

buildfiles done

Running "ngtemplates:main" (ngtemplates) task
File app/src/build/templates.js created.
>> Error: Unable to access jarfile node_modulesprotractorseleniumselenium-server-standalone-2.39.0.jar
configFile: ./app/configs/config.test.json

Running "less:dev" (less) task
Warning: Done, with errors. Use --force to continue.

Aborted due to warnings.
lukemadera commented 10 years ago

Ah sorry, 1 more change to make sure your path is correct - make sure your operating system in config.json is correct; I added a config-mac.json file in app/configs and instructions in the changelog to use that environment / config instead (similarly for linux if you're using linux). Pull the new code and follow that and that should fix your path!

https://github.com/jackrabbitsgroup/learn-mean-seed/blob/master/CHANGELOG.md

jackygrahamez commented 10 years ago

Environment key? you mean setting the variable? I tried that. I keep getting the same error

$ node_modules/protractor/bin/webdriver-manager update

selenium standalone is up to date.

chromedriver is up to date.

$ export environment="mac"

$ grunt lessons-dev

init

configFile: ./app/configs/config.json

Running "lessons-dev" task

Running "lessons-config" task

init

LESSONS grunt option

configFile: ./app/configs/config.json

Running "http:seleniumShutdown" (http) task

0

Running "shell:seleniumStartup" (shell) task

Running "http:nodeShutdown" (http) task

0

Running "shell:nodeServer" (shell) task

Running "buildfiles" task

WARNING: undefined: filePaths.testsLessons and/or filePaths.testsLessons.testE2E

buildfiles forming configPaths:

SKIPPED files (due to ifOpts):

  1. key: noPrefixTest
  2. key: karmaUnitCoverageNoLessons
  3. key: testProtractor

buildfiles writing files (if multiple files go to the same destination, the LAST one is the src that will have been used):

SKIPPED files (due to ifOpts):

  1. src: app/src/index-prod-grunt.html
  2. src: app/src/index-phonegap-grunt.html
  3. src: app/src/index-triggerio-grunt.html

WRITTEN files:

  1. app/src/index.html src: app/src/index-grunt.html
  2. app/src/common/less/_base.less src: app/src/common/less/_base-grunt.less
  3. app/src/modules/services/config/config.js src: app/src/modules/services/config/config-grunt.js
  4. app/src/config/karma.conf.js src: app/src/config/karma.conf-grunt.js
  5. app/src/config/karma-no-coverage.conf.js src: app/src/config/karma-no-coverage.conf-grunt.js
  6. app/src/common/less/variables/_dir-paths.less src: app/src/common/less/variables/_dir-paths.tpl
  7. app/src/config/protractor/protractor.conf.js src: app/src/config/protractor.conf-grunt.js

buildfiles done

Running "ngtemplates:main" (ngtemplates) task

File app/src/build/templates.js created.

Error: Unable to access jarfile node_modulesprotractorseleniumselenium-server-standalone-2.39.0.jar

configFile: ./app/configs/config.test.json

Running "less:dev" (less) task

Warning: Done, with errors. Use --force to continue.

Aborted due to warnings.

On Sun, Feb 16, 2014 at 5:01 PM, Luke Madera notifications@github.comwrote:

Ah sorry, 1 more change to make sure your path is correct - make sure your operating system in config.json is correct; I added a config-mac.json file in app/configs and instructions in the changelog to use that environment / config instead. Pull the new code and follow that and that should fix your path!

https://github.com/jackrabbitsgroup/learn-mean-seed/blob/master/CHANGELOG.md

Reply to this email directly or view it on GitHubhttps://github.com/jackrabbitsgroup/learn-mean-seed/issues/1#issuecomment-35217096 .

jackygrahamez commented 10 years ago

I also copied this fileto the root project direcotry

$ cp app/configs/config-mac.json .

On Sun, Feb 16, 2014 at 5:12 PM, Jack Shultz jackygrahamez@gmail.comwrote:

Environment key? you mean setting the variable? I tried that. I keep getting the same error

$ node_modules/protractor/bin/webdriver-manager update

selenium standalone is up to date.

chromedriver is up to date.

$ export environment="mac"

$ grunt lessons-dev

init

configFile: ./app/configs/config.json

Running "lessons-dev" task

Running "lessons-config" task

init

LESSONS grunt option

configFile: ./app/configs/config.json

Running "http:seleniumShutdown" (http) task

0

Running "shell:seleniumStartup" (shell) task

Running "http:nodeShutdown" (http) task

0

Running "shell:nodeServer" (shell) task

Running "buildfiles" task

WARNING: undefined: filePaths.testsLessons and/or filePaths.testsLessons.testE2E

buildfiles forming configPaths:

SKIPPED files (due to ifOpts):

  1. key: noPrefixTest
  2. key: karmaUnitCoverageNoLessons
  3. key: testProtractor

buildfiles writing files (if multiple files go to the same destination, the LAST one is the src that will have been used):

SKIPPED files (due to ifOpts):

  1. src: app/src/index-prod-grunt.html
  2. src: app/src/index-phonegap-grunt.html
  3. src: app/src/index-triggerio-grunt.html

WRITTEN files:

  1. app/src/index.html src: app/src/index-grunt.html
  2. app/src/common/less/_base.less src: app/src/common/less/_base-grunt.less
  3. app/src/modules/services/config/config.js src: app/src/modules/services/config/config-grunt.js
  4. app/src/config/karma.conf.js src: app/src/config/karma.conf-grunt.js
  5. app/src/config/karma-no-coverage.conf.js src: app/src/config/karma-no-coverage.conf-grunt.js
  6. app/src/common/less/variables/_dir-paths.less src: app/src/common/less/variables/_dir-paths.tpl
  7. app/src/config/protractor/protractor.conf.js src: app/src/config/protractor.conf-grunt.js

buildfiles done

Running "ngtemplates:main" (ngtemplates) task

File app/src/build/templates.js created.

Error: Unable to access jarfile node_modulesprotractorseleniumselenium-server-standalone-2.39.0.jar

configFile: ./app/configs/config.test.json

Running "less:dev" (less) task

Warning: Done, with errors. Use --force to continue.

Aborted due to warnings.

On Sun, Feb 16, 2014 at 5:01 PM, Luke Madera notifications@github.comwrote:

Ah sorry, 1 more change to make sure your path is correct - make sure your operating system in config.json is correct; I added a config-mac.json file in app/configs and instructions in the changelog to use that environment / config instead. Pull the new code and follow that and that should fix your path!

https://github.com/jackrabbitsgroup/learn-mean-seed/blob/master/CHANGELOG.md

Reply to this email directly or view it on GitHubhttps://github.com/jackrabbitsgroup/learn-mean-seed/issues/1#issuecomment-35217096 .

jackygrahamez commented 10 years ago

I typed env

environment=mac
lukemadera commented 10 years ago

Not the environment on your computer, the 'environment' key in config-environment.json You should NOT copy any config.json files into the root of the app; they should be in app/configs only. See the docs for more info on configs and steps:

https://github.com/jackrabbitsgroup/learn-mean-seed/blob/master/docs/files/configs.md

jackygrahamez commented 10 years ago

Now I remember, sorry. Same way you configure the mean seed generator. Got it.