Announcement Announcement Module
Collapse
No announcement yet.
Spring Roo 1.2.0.M1 released Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Alan, first time posting, so please forgive me in advance if I break any rules.

    I was experiencing the same issue with the Milestone release. My company is definitely blocking twitter. I downloaded the latest snapshot (babe22d), reset my roo home and verified this is working better. I did get a string index out of bounds exception though. Not sure if this is expected. It does not seem to cause any issues.

    U:\>roo
    ____ ____ ____
    / __ \/ __ \/ __ \
    / /_/ / / / / / / /
    / _, _/ /_/ / /_/ /
    /_/ |_|\____/\____/ 1.2.0.BUILD-SNAPSHOT [rev babe22d]


    Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER.
    Created ROOTsrc\main\resources
    Created ROOTsrc\main\webapp
    Created ROOTsrc\test\resources
    Created ROOTsrc\test\java
    Created ROOTsrc\main\resources\META-INF\spring
    Created ROOTsrc\main\java
    Undo create ROOTsrc\main\java
    Undo create ROOTsrc\main\resources\META-INF\spring
    Undo create ROOTsrc\test\java
    Undo create ROOTsrc\test\resources
    Undo create ROOTsrc\main\webapp
    Undo create ROOTsrc\main\resources
    String index out of range: -1
    roo> d:
    Command 'd:' not found (for assistance press TAB or type "hint" then hit ENTER)
    addon search --requiresCommand "d:" found no matches
    roo> exit
    U:\>D:

    D:\>roo
    ____ ____ ____
    / __ \/ __ \/ __ \
    / /_/ / / / / / / /
    / _, _/ /_/ / /_/ /
    /_/ |_|\____/\____/ 1.2.0.BUILD-SNAPSHOT [rev babe22d]


    Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER.
    roo>

    Comment


    • #17
      Did you start Roo in an empty directory, or in an existing Roo project directory? It appears your directory did not contain a Roo project but was NOT empty before starting Roo (like had a bin directory or something). Please verify and we probably need to raise an issue.

      Comment


      • #18
        Alan,
        You are correct, Roo was started in a directory that was not empty and was not a roo project directory. I am having no issues using roo when launching from an empty directory or a Roo project diirectory.

        Comment


        • #19
          This needs to be either documented or if something we can avoid, fixed for this use case. Would you please raise a Jira bug ticket with some detail on how to reproduce the issue.
          Thanks

          Comment


          • #20
            Alan,
            I created issue https://jira.springsource.org/browse/ROO-2872.

            Comment


            • #21
              Is there a bug in 1.2.0.M1 that would cause my simple app to not sucessfully package, compile or perform eclipse?

              I created two simple entities, then generated all the web mvc controllers, then run perform eclipse, or go to the command line and type mvn package or mvn compile and it won't compile because it can't find the Annotation classes.

              Thanks

              Mark

              Comment


              • #22
                It should work OK. But to fix your issue now, copy the annotations jar out of the spring-roo-1.2..0.M1/annotations directory to the appropriate directory in your .m2 repo

                Comment


                • #23
                  the annotations jar is alread in the .m2 repo.

                  Under

                  org.springframework.roo
                  org.springframework.roo.annotations

                  So there is something else that is wrong.

                  I downloaded the 1.2.0.M1 zip file unzipped it, set a symbolic link, and ran roo and ran the following script

                  project --topLevelPackage com.pwp.address
                  jpa setup --provider HIBERNATE --database POSTGRES
                  entity --class ~.domain.Address --testAutomatically
                  field string --fieldName street2 --notNull
                  entity --class ~.domain.Person
                  field set --fieldName addresses --type com.pwp.address.domain.Address --cardinality ONE_TO_MANY
                  field string --fieldName personName --notNull
                  field number --fieldName age --type int --notNull
                  web mvc setup
                  web mvc all --package com.pwp.address.web
                  perform eclipse

                  Mark

                  Comment


                  • #24
                    Hi

                    CTRL+SPACE is not working.

                    it's really hard to play with the tool with out

                    CTRL+SPACE support

                    Any commet please.

                    Placi.






                    ____ ____ ____
                    / __ \/ __ \/ __ \
                    / /_/ / / / / / / /
                    / _, _/ /_/ / /_/ /
                    /_/ |_|\____/\____/ 1.2.0.BUILD-SNAPSHOT [rev e14b410]


                    Welcome to Spring Roo. For assistance press CTRL+SPACE or type "hint" then hit ENTER.
                    Last edited by placidus; Nov 7th, 2011, 09:35 PM.

                    Comment


                    • #25
                      This will fix in STS soon.

                      CTRL+SPACE is not working.

                      Spring STS --->> http://forum.springsource.org/showth...622#post386622

                      Comment


                      • #26
                        I still can't resolve my issue, but I am narrowing it down to be how Roo runs on a Mac.

                        So, I removed the symbolic link and removed the Roo 1.2.0.M1 directory, so effectively removed it. But if I go directly into the bin directory of Roo 1.1.5.RELEASE and run ./roo.sh Roo tries to start up but shows errors because it still tries to load stuff from 1.2.0 jars or something like that.

                        I thought removing the files of 1.2.0 .M1 from my computer and going directly into 1.1.5 would work.

                        Is there any other files that get created the first time your run roo.sh and that file still exists and anytime I run roo.sh from any version of Roo it will use it and think that I am trying to use 1.2.0?

                        Thanks

                        Mark

                        Comment


                        • #27
                          Hi

                          how are you running roo ?

                          is it STS or command line ?

                          Placidus.

                          Comment


                          • #28
                            Originally posted by placidus View Post
                            Hi

                            how are you running roo ?

                            is it STS or command line ?

                            Placidus.

                            "But if I go directly into the bin directory of Roo 1.1.5.RELEASE and run ./roo.sh Roo tries to start up but shows errors because it still tries to load stuff from 1.2.0 jars or something like that."

                            Don't think you can do that in STS. run a .sh script directly. So definitely, running it from the command line. And my ROO_HOME and PATH are pointing to the ROO-1.1.5.RELEASE directory also, just in case.

                            Mark

                            Comment


                            • #29
                              STS there is roo shell , plugin

                              what you can do is download the latest version of STS 2.8 , it will come with roo 1.5 install to new directory.

                              and try creating new roo project from STS


                              you don't wont run roo command line at-all [bin/roo] ,

                              it's very nice

                              GiveGo and let me know , if you need more info.


                              Placi.

                              Comment


                              • #30
                                Originally posted by placidus View Post
                                STS there is roo shell , plugin

                                what you can do is download the latest version of STS 2.8 , it will come with roo 1.5 install to new directory.

                                and try creating new roo project from STS


                                you don't wont run roo command line at-all [bin/roo] ,

                                it's very nice

                                GiveGo and let me know , if you need more info.


                                Placi.
                                That isn't the issue. I am running the .sh from the command line to remove STS/Eclipse from the equation of what is the problem.

                                I just deleted the cache directories in my roo 1.1.5.RELEASE installation directory, and now it looks like it is working and not getting confused anymore.

                                Yep, that definitely resolved my issue. I was able to run roo.sh from a terminal window and run a script file I had for my entire project and generated the website with it in 17 seconds.

                                Thank you for trying to help.

                                Mark
                                Last edited by bytor99999; Nov 8th, 2011, 11:30 PM.

                                Comment

                                Working...
                                X