Announcement Announcement Module
Collapse
No announcement yet.
Roo release 1.1.5 not working Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Roo release 1.1.5 not working

    Hi,

    I want to start using Roo. But I can't get the samples working.
    Am I missing something in my setup?

    On my mac I use java 6 and maven which works fine.
    I can start Roo but the first line to start a project fails.
    I only could found one message on the forum.
    Any ideas are welcome.

    Code:
    roo> script --file ~/sandbox/spring-roo-1.1.5.RELEASE/samples/clinic.roo
    project --topLevelPackage com.springsource.petclinic
    Unable to obtain required element '/project/artifactId' from element '[project: null]'
    java.lang.IllegalArgumentException: Unable to obtain required element '/project/artifactId' from element '[project: null]'
        at org.springframework.roo.support.util.Assert.notNull(Assert.java:112)
        at org.springframework.roo.support.util.XmlUtils.findRequiredElement(XmlUtils.java:352)
        at org.springframework.roo.project.MavenOperationsImpl.createProject(MavenOperationsImpl.java:87)
        at org.springframework.roo.project.MavenCommands.createProject(MavenCommands.java:36)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.roo.support.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191)
        at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExecutionStrategy.java:49)
        at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:180)
        at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:143)
        at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47)
        at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:191)
        at org.springframework.roo.shell.AbstractShell.executeScriptLine(AbstractShell.java:131)
        at org.springframework.roo.shell.AbstractShell.script(AbstractShell.java:98)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.roo.support.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191)
        at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExecutionStrategy.java:49)
        at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:180)
        at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:143)
        at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47)
        at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:191)
        at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:374)
        at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:135)
        at java.lang.Thread.run(Thread.java:680)
    Script required 0 second(s) to execute
    Script execution aborted
    java.lang.IllegalStateException: Script execution aborted
        at org.springframework.roo.shell.AbstractShell.script(AbstractShell.java:103)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.roo.support.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191)
        at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy$1.callback(ProcessManagerHostedExecutionStrategy.java:49)
        at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:180)
        at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:143)
        at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47)
        at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:191)
        at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:374)
        at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:135)
        at java.lang.Thread.run(Thread.java:680)

  • #2
    Are you running Roo in an empty directory or does the directory already contain a pom.xml file? Which OS are you using?

    Comment


    • #3
      Hi Stefan, I'm running OSX 10.7 Lion.
      When I create a directory it doesn't contain a pom.xml.
      The directory is empty, I actually do same as described in the documentation.

      Comment


      • #4
        We have not extensively tested on OSX 10.7 yet but one of the Roo team members has been successfully using it. To run the script command for the clinic sample you can simply run it without the path definition (Roo knows where to find its own sample scripts). roo> script clinic.roo. See if that helps, otherwise please open a Jira ticket for this issue so we can investigate further.

        Comment


        • #5
          Works OK for me on Lion

          Code:
          syd2-lv19-dhcp-25:petclinic_orig stewarta$ sw_vers
          ProductName:	Mac OS X
          ProductVersion:	10.7
          BuildVersion:	11A511
          syd2-lv19-dhcp-25:petclinic_orig stewarta$ roo.sh
              ____  ____  ____  
             / __ \/ __ \/ __ \ 
            / /_/ / / / / / / / 
           / _, _/ /_/ / /_/ /  
          /_/ |_|\____/\____/    1.1.5.RELEASE [rev d3a68c3]
          
          
          7mWelcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER.
          roo> script --file ~/java/spring-roo-1.1.5.RELEASE/samples/clinic.roo   
          project --topLevelPackage com.springsource.petclinic
          073bc87 Created ROOT/pom.xml
          Created SRC_MAIN_JAVAingsource.petclinic
          Created SRC_MAIN_RESOURCES
          Created SRC_TEST_JAVA
          Created SRC_TEST_RESOURCES
          Created SRC_MAIN_WEBAPP
          Created SRC_MAIN_RESOURCES/META-INF/spring
          53126d9 Created SRC_MAIN_RESOURCES/log4j.properties
          ee239fb Created SRC_MAIN_RESOURCES/META-INF/spring/applicationContext.xml
          ...
          Last edited by Alan Stewart; Jul 29th, 2011, 06:26 AM.

          Comment

          Working...
          X