Announcement Announcement Module
Collapse
No announcement yet.
Getting error in final step: roo>perform tests Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Getting error in final step: roo>perform tests

    Hi,
    I am very new to ROO so need help of yours to learn it. I downloaded the ROO 1.2.1 version. and started with it. I started by following the steps given on spring-roo home page.

    Code:
    mkdir hello
    cd hello
    roo
    roo> hint
    roo> project --topLevelPackage com.foo
    roo> jpa setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
    roo> entity jpa --class ~.Timer --testAutomatically
    roo> field string --fieldName message --notNull
    roo> hint web mvc
    roo> web mvc setup
    roo> web mvc all --package ~.web
    roo> selenium test --controller ~.web.TimerController
    roo> web gwt setup
    roo> perform tests
    roo> quit
    But I am getting error in the last step
    Code:
    roo> perform tests
    . Rest of the steps are running fine.
    I am getting error saying:
    Code:
    CreateProcess error=2, The system cannot find the file specified
    Please help.
    I am not getting what am I doing wrong. Below I have attached the steps:

    Thanks,
    Dev

    ************************************************** *********
    ************************************************** *********

    Code:
    roo> project --topLevelPackage com.foo
    Created ROOT\pom.xml
    Created SRC_MAIN_RESOURCES
    Created SRC_MAIN_RESOURCES\log4j.properties
    Created SPRING_CONFIG_ROOT
    Created SPRING_CONFIG_ROOT\applicationContext.xml
    
    roo> jpa setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
    Created SPRING_CONFIG_ROOT\database.properties
    Updated SPRING_CONFIG_ROOT\applicationContext.xml
    Created SRC_MAIN_RESOURCES\META-INF\persistence.xml
    Updated ROOT\pom.xml [added dependencies org.hsqldb:hsqldb:1.8.0.10, org.hibernate:hibernate-core:3.6.9.Final, org.hibernate:hibernate-entitymanager:3
    .6.9.Final, org.hibernate.javax.persistence:hibernate-jpa-2.0-api:1.0.1.Final, org.hibernate:hibernate-validator:4.2.0.Final, javax.validation:validat
    ion-api:1.0.0.GA, cglib:cglib-nodep:2.2.2, javax.transaction:jta:1.1, org.springframework:spring-jdbc:${spring.version}, org.springframework:spring-or
    m:${spring.version}, commons-pool:commons-pool:1.5.6, commons-dbcp:commons-dbcp:1.3]
    
    roo> entity jpa --class ~.Timer --testAutomatically
    Created SRC_MAIN_JAVA\com\foo
    Created SRC_MAIN_JAVA\com\foo\Timer.java
    Created SRC_TEST_JAVA\com\foo
    Created SRC_TEST_JAVA\com\foo\TimerDataOnDemand.java
    Created SRC_TEST_JAVA\com\foo\TimerIntegrationTest.java
    Created SRC_MAIN_JAVA\com\foo\Timer_Roo_Configurable.aj
    Created SRC_MAIN_JAVA\com\foo\Timer_Roo_Jpa_Entity.aj
    Created SRC_MAIN_JAVA\com\foo\Timer_Roo_Jpa_ActiveRecord.aj
    Created SRC_MAIN_JAVA\com\foo\Timer_Roo_ToString.aj
    Created SRC_TEST_JAVA\com\foo\TimerDataOnDemand_Roo_Configurable.aj
    Created SRC_TEST_JAVA\com\foo\TimerDataOnDemand_Roo_DataOnDemand.aj
    Created SRC_TEST_JAVA\com\foo\TimerIntegrationTest_Roo_Configurable.aj
    Created SRC_TEST_JAVA\com\foo\TimerIntegrationTest_Roo_IntegrationTest.aj
    
    ~.Timer roo> field string --fieldName message --notNull
    Updated SRC_MAIN_JAVA\com\foo\Timer.java
    Updated SRC_TEST_JAVA\com\foo\TimerDataOnDemand_Roo_DataOnDemand.aj
    Created SRC_MAIN_JAVA\com\foo\Timer_Roo_JavaBean.aj
    
    ~.Timer roo> web mvc setup
    Created ROOT\src\main\webapp\WEB-INF\spring
    Created ROOT\src\main\webapp\WEB-INF\spring\webmvc-config.xml
    Created ROOT\src\main\webapp\WEB-INF\web.xml
    Updated ROOT\src\main\webapp\WEB-INF\spring\webmvc-config.xml
    Created ROOT\src\main\webapp\images
    Created ROOT\src\main\webapp\images\add.png
    Created ROOT\src\main\webapp\images\banner-graphic.png
    Created ROOT\src\main\webapp\images\create.png
    Created ROOT\src\main\webapp\images\delete.png
    Created ROOT\src\main\webapp\images\favicon.ico
    Created ROOT\src\main\webapp\images\list.png
    Created ROOT\src\main\webapp\images\resultset_first.png
    Created ROOT\src\main\webapp\images\resultset_last.png
    Created ROOT\src\main\webapp\images\resultset_next.png
    Created ROOT\src\main\webapp\images\resultset_previous.png
    Created ROOT\src\main\webapp\images\show.png
    Created ROOT\src\main\webapp\images\springsource-logo.png
    Created ROOT\src\main\webapp\images\update.png
    Created ROOT\src\main\webapp\styles
    Created ROOT\src\main\webapp\styles\alt.css
    Created ROOT\src\main\webapp\styles\standard.css
    Created ROOT\src\main\webapp\WEB-INF\classes
    Created ROOT\src\main\webapp\WEB-INF\classes\alt.properties
    Created ROOT\src\main\webapp\WEB-INF\classes\standard.properties
    Created ROOT\src\main\webapp\WEB-INF\layouts
    Created ROOT\src\main\webapp\WEB-INF\layouts\default.jspx
    Created ROOT\src\main\webapp\WEB-INF\layouts\layouts.xml
    Created ROOT\src\main\webapp\WEB-INF\views
    Created ROOT\src\main\webapp\WEB-INF\views\header.jspx
    Created ROOT\src\main\webapp\WEB-INF\views\menu.jspx
    Created ROOT\src\main\webapp\WEB-INF\views\footer.jspx
    Created ROOT\src\main\webapp\WEB-INF\views\views.xml
    Created ROOT\src\main\webapp\WEB-INF\views\dataAccessFailure.jspx
    Created ROOT\src\main\webapp\WEB-INF\views\index-template.jspx
    Created ROOT\src\main\webapp\WEB-INF\views\index.jspx
    Created ROOT\src\main\webapp\WEB-INF\views\resourceNotFound.jspx
    Created ROOT\src\main\webapp\WEB-INF\views\uncaughtException.jspx
    Created ROOT\src\main\webapp\WEB-INF\tags\form
    Created ROOT\src\main\webapp\WEB-INF\tags\form\create.tagx
    Created ROOT\src\main\webapp\WEB-INF\tags\form\dependency.tagx
    Created ROOT\src\main\webapp\WEB-INF\tags\form\find.tagx
    Created ROOT\src\main\webapp\WEB-INF\tags\form\list.tagx
    Created ROOT\src\main\webapp\WEB-INF\tags\form\show.tagx
    Created ROOT\src\main\webapp\WEB-INF\tags\form\update.tagx
    Created ROOT\src\main\webapp\WEB-INF\tags\form\fields
    Created ROOT\src\main\webapp\WEB-INF\tags\form\fields\checkbox.tagx
    Created ROOT\src\main\webapp\WEB-INF\tags\form\fields\column.tagx
    Created ROOT\src\main\webapp\WEB-INF\tags\form\fields\datetime.tagx
    Created ROOT\src\main\webapp\WEB-INF\tags\form\fields\display.tagx
    Created ROOT\src\main\webapp\WEB-INF\tags\form\fields\editor.tagx
    Created ROOT\src\main\webapp\WEB-INF\tags\form\fields\input.tagx
    Created ROOT\src\main\webapp\WEB-INF\tags\form\fields\reference.tagx
    Created ROOT\src\main\webapp\WEB-INF\tags\form\fields\select.tagx
    Created ROOT\src\main\webapp\WEB-INF\tags\form\fields\simple.tagx
    Created ROOT\src\main\webapp\WEB-INF\tags\form\fields\table.tagx
    Created ROOT\src\main\webapp\WEB-INF\tags\form\fields\textarea.tagx
    Created ROOT\src\main\webapp\WEB-INF\tags\menu
    Created ROOT\src\main\webapp\WEB-INF\tags\menu\category.tagx
    Created ROOT\src\main\webapp\WEB-INF\tags\menu\item.tagx
    Created ROOT\src\main\webapp\WEB-INF\tags\menu\menu.tagx
    Created ROOT\src\main\webapp\WEB-INF\tags\util
    Created ROOT\src\main\webapp\WEB-INF\tags\util\language.tagx
    Created ROOT\src\main\webapp\WEB-INF\tags\util\load-scripts.tagx
    Created ROOT\src\main\webapp\WEB-INF\tags\util\pagination.tagx
    Created ROOT\src\main\webapp\WEB-INF\tags\util\panel.tagx
    Created ROOT\src\main\webapp\WEB-INF\tags\util\placeholder.tagx
    Created ROOT\src\main\webapp\WEB-INF\tags\util\theme.tagx
    Created ROOT\src\main\webapp\WEB-INF\i18n
    Created ROOT\src\main\webapp\WEB-INF\i18n\messages.properties
    Created ROOT\src\main\webapp\images\en.png
    Updated ROOT\src\main\webapp\WEB-INF\i18n\application.properties
    Updated ROOT\src\main\webapp\WEB-INF\web.xml
    Updated ROOT\pom.xml [added dependencies org.springframework:spring-webmvc:${spring.version}, org.springframework.webflow:spring-js-resources:2.2.1.RE
    LEASE, commons-digester:commons-digester:2.1, commons-fileupload:commons-fileupload:1.2.2, javax.servlet.jsp.jstl:jstl-api:1.2, org.glassfish.web:jstl
    -impl:1.2, javax.el:el-api:1.0, joda-time:joda-time:1.6, javax.servlet.jsp:jsp-api:2.1, commons-codec:commons-codec:1.5; updated project type to war;
    added dependency org.apache.tiles:tiles-jsp:2.2.2]
    Updated SRC_MAIN_WEBAPP\WEB-INF\views\footer.jspx
    
    ~.Timer roo> web mvc all --package ~.web
    Created SRC_MAIN_JAVA\com\foo\web
    Created SRC_MAIN_JAVA\com\foo\web\TimerController.java
    Updated SRC_MAIN_WEBAPP\WEB-INF\spring\webmvc-config.xml
    Created SRC_MAIN_JAVA\com\foo\web\ApplicationConversionServiceFactoryBean.java
    Created SRC_MAIN_WEBAPP\WEB-INF\views\timers
    Created SRC_MAIN_WEBAPP\WEB-INF\views\timers\views.xml
    Updated SRC_MAIN_WEBAPP\WEB-INF\views\timers\views.xml
    Updated SRC_MAIN_WEBAPP\WEB-INF\i18n\application.properties
    Created SRC_MAIN_JAVA\com\foo\web\TimerController_Roo_Controller.aj
    Created SRC_MAIN_WEBAPP\WEB-INF\views\timers\list.jspx
    Created SRC_MAIN_WEBAPP\WEB-INF\views\timers\show.jspx
    Created SRC_MAIN_WEBAPP\WEB-INF\views\timers\create.jspx
    Updated SRC_MAIN_WEBAPP\WEB-INF\views\menu.jspx
    Created SRC_MAIN_WEBAPP\WEB-INF\views\timers\update.jspx
    Created SRC_MAIN_JAVA\com\foo\web\ApplicationConversionServiceFactoryBean_Roo_ConversionService.aj
    
    ~.web roo> selenium test --controller ~.web.TimerController
    Updated SRC_MAIN_WEBAPP\WEB-INF\i18n\application.properties
    Created SRC_MAIN_WEBAPP\selenium
    Created SRC_MAIN_WEBAPP\selenium\test-timer.xhtml
    Created SRC_MAIN_WEBAPP\selenium\test-suite.xhtml
    Updated SRC_MAIN_WEBAPP\WEB-INF\views\menu.jspx
    Updated ROOT\pom.xml [added plugin org.codehaus.mojo:selenium-maven-plugin:2.1]
    ~.web roo> web gwt setup
    Created SRC_MAIN_JAVA\com\foo\App.gwt.xml
    Created SRC_MAIN_JAVA\com\foo\client
    Created SRC_MAIN_JAVA\com\foo\client\AppEntryPoint.java
    Updated ROOT\pom.xml [added repository http://maven.springframework.org/external; removed dependency javax.validation:validation-api:1.0.0.GA; added d
    ependencies com.google.gwt:gwt-servlet:2.4.0, com.google.gwt:gwt-user:2.4.0, org.json:json:20090211, com.google.gwt.inject:gin:1.5.0, javax.validation
    :validation-api:1.0.0.GA:sources, xalan:xalan:2.7.1; skipped dependency javax.validation:validation-api:1.0.0.GA; added plugin org.codehaus.mojo:gwt-m
    aven-plugin:2.2.0; added plugin org.codehaus.mojo:exec-maven-plugin:1.2]
    Updated SRC_MAIN_WEBAPP\WEB-INF\web.xml
    
    ~.web roo> perform tests
    CreateProcess error=2, The system cannot find the file specified

  • #2
    Seems the perform tests command is just running the maven tests - so maybe just run those directly from the command line, and see what they give you?

    Comment


    • #3
      Solution

      I had the same mistake.
      To resolve it you need to set system variable JAVA_HOME to your current java jdk location.
      This is needed by maven to run (you can check it by going to %YOUR_STS_LOCATION%/apache-maven-(version)/bin/ and executing basic operation mvn --version. If JAVA_HOME is not set you will see a mistake). Also this maven folder must be accessible through Path variable.

      In a short:
      Start -> Computer (right click) -> Properties -> Advanced System Settings -> Environment Variables -> click Add in System variables:
      Variable name: JAVA_HOME
      Variable value: (your jdk location) (for example, my jdk location is c:\Program Files\Java\jdk1.7.0_05\)

      Also edit Path variable by adding your maven\bin folder.


      You may need to restart computer for changes to work.
      P.S. SpringSource Tool Suite, Version: 2.9.2.RELEASE. OS Windows 7, x64.
      Last edited by andy_pit; Sep 26th, 2012, 07:32 AM. Reason: OS and app info

      Comment

      Working...
      X