Announcement Announcement Module
Collapse
No announcement yet.
Flex Addon for Spring Roo - Compatibility Update Page Title Module
Move Remove Collapse
This is a sticky topic.
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • #46
    Try http://localhost:8080/flexroo/flexroo_scaffold.html

    Your src\main\webapp directory is the application root.

    Comment


    • #47
      No Change

      Thanks, I tried running the flexroo_scaffold.html with Run As-> Ron on Server, before, so I created an index.html with the link anchor as you suggested.

      Code:
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <!-- saved from url=(0014)about:internet -->
      <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">	
          
          <head>
              <title>flexroo</title>          
          </head>
          <body>
              <a href="http://localhost:8080/flexroo/flexroo_scaffold.html" target="_blank" rel="nofollow">http://localhost:8080/flexroo/flexroo_scaffold.html</a>
         </body>
      </html>
      The index.html comes up as expected on http://localhost:8080/flexroo/

      But clicking the link throws the same error...


      Code:
      Feb 24, 2011 7:49:25 AM org.apache.catalina.core.StandardHostValve custom
      SEVERE: Exception Processing ErrorPage[errorCode=404, location=/resourceNotFound]
      javax.servlet.ServletException: Circular view path [resourceNotFound]: would dispatch back to the current handler URL [/flexroo/resourceNotFound] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)
      	at org.springframework.web.servlet.view.InternalResourceView.prepareForRendering(InternalResourceView.java:292)
      	at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:214)
      	at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
      So something else is wrong.

      Comment


      • #48
        Success!!!

        Here is the roo.log...

        Code:
        // Spring Roo 1.1.1.RELEASE [rev 156ccd6] log opened at 2011-02-24 08:19:51
        project --topLevelPackage com.corent.flex.wedding --projectName FlexWedding --java 6
        // Spring Roo 1.1.1.RELEASE [rev 156ccd6] log closed at 2011-02-24 08:19:54
        // Spring Roo 1.1.1.RELEASE [rev 156ccd6] log opened at 2011-02-24 08:19:57
        persistence setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
        entity --class ~.domain.Rsvp
        field string code --notNull --sizeMin 1 --sizeMax 30
        field string email --sizeMax 30
        field number attending --type java.lang.Integer
        field string specialRequests --sizeMax 100
        field date confirmed --type java.util.Date
        test integration
        // Spring Roo 1.1.1.RELEASE [rev 156ccd6] log closed at 2011-02-24 08:21:38
        // Spring Roo 1.1.1.RELEASE [rev 156ccd6] log opened at 2011-02-24 08:25:13
        flex setup
        flex remoting all --package ~.service
        logging setup --level DEBUG
        Then I opened /src/main/webapp/FlexWedding_scaffold.html and did a save as index.html.

        Then Run on Server and bingo Flex application running AOK

        I did notice that in FlexWedding/html-template/ there is a file called index.template.html that is exactly the same as FlexWedding_scaffold.html, so I could have copied that into src/main/webapp/ and renamed that index.html, which by the names must have been indended.

        So I am guessing the Flex addon is missing that step that takes index.template.html and copies it and renames it so the applicatoin will run without this much effort.

        Of course now that I know, I can do it myself, and I hope this thread helps others avoid the confusion.

        Comment


        • #49
          Hmmm not so fast Ollie

          I left out one important step to Success.

          This last time, I had installed the Flash Builder 4 Plugin into STS 2.5.2 before trying it again.

          I want back to the plain STS 2.5.2 and tried it again, and even after copy and rename from FlexWedding_scaffold.html to index.html, I still got the Circular View Error.

          So it was installing Flash Builder 4 in my case coupled to the copy to index.html that fixed it for me.

          Comment


          • #50
            for anyone who's interested I've managed to run this from command line, here are the details

            http://www.flexonjava.net/2011/02/ro...-tutorial.html

            Comment


            • #51
              Maven missing artifact: spring-flex-core

              I was pulled off my work on the Roo-Flex work I chimed in a while back. Glad to hear of the progress made by others in this area. I am using the following environment:

              Mac OS X 10.6.6
              Java 1.6.X
              STS 2.5.2.RELEASE
              Roo 1.1.1.RELEASE
              org.springframework.flex.roo.addon-1.0.0.BUILD-20110219.075648-225.jar

              Per post on Feb 4 by Jeremy, I tried tweaking the pom.xml file, yet I continue to get the following:

              2/27/11 10:18:30 PM PST: Missing artifact org.springframework.flex:spring-flex-core:jar:1.5.0.BUILD-SNAPSHOT:compile
              2/27/11 10:18:30 PM PST: Missing artifact org.springframework.flex.roo.addon:org.springframe work.flex.roo.annotations:jar:1.0.0.BUILD-SNAPSHOT:compile

              Is this an environment setup I am missing or is this a missing dependency in my pom.xml file?

              Thanks

              Comment


              • #52
                Hi, I'm having exact;y the same issue. Did you ever find a resolution?

                Comment


                • #53
                  spring-foo-flex setup on STS 2.5.2

                  geordieracer, I was pulled off again, but left the project in an unstable condition. Though I was able to pull off an initial full build from scratch, I could not replicate the setup more than once. I believe in the build, tear down, build again paradigm so that I can show others what was done. Unfortunately, when we use bleeding edge libraries, we are going to come across this. I hope to get back at the use of the STS-spring-roo-flex setup tomorrow. Let us (the general community) if you find yourself in a state that can be published for general consumption.... Cheers!

                  Comment


                  • #54
                    amercado, the wuick solution for me was to add the folopwing repository to the roo project pom.xml to pick up the snapshot builds

                    <repository>
                    <id>spring-maven-snapshot</id>
                    <name>Spring Maven Snapshot Repository</name>
                    <url>http://maven.springframework.org/snapshot</url>
                    </repository>

                    The project now build correectly. My only remaining issue is that I can't deploy it to the Springsource tc server! See post below

                    http://forum.springsource.org/showthread.php?t=106543

                    Comment


                    • #55
                      Can anybody tell me what is the latest stable known configuration that works with STS 2.6?

                      I cannot get to work STS 2.6 with Spring Roo and the snapshot build of flex plugin...

                      Comment


                      • #56
                        I've personally given up on the roo flex addon ever becoming a stable usable product that's kept inline with the roo releases.

                        Perhaps now roo has CI the addon can be brought back into the fold?

                        Comment


                        • #57
                          1.1.4 was released today, seems like the perfect time to update to flex plugin non?

                          Anyways I've created a thread with a poll:

                          http://forum.springsource.org/showth...-for-roo-1.1.4

                          Comment


                          • #58
                            Regarding this:
                            Further changes were required to bring the addon into line with Spring Roo 1.1.1.RELEASE. These changes are available as of tonight's snapshot (http://maven.springframework.org/sna...075648-225.jar) and going forward. Many thanks to Thomas Fowler for supplying a patch that served as the foundation for this update.

                            I found there is some problem with this patch with Spring Roo 1.1.1.Release. My persistence layer is using Oracle with Hibernate.
                            First problem, pom.xml is using spring-flex-core.1.5.0.BUILD-SNAPSHOT, and it will complain the jar is missing, so I have to change it back to spring-flex-core.1.5.0.M1.
                            Second problem, I found I could not be able to add a new record from GUI. Got "org.hibernate.PersistentObjectException: detached entity passed to persist:" error.

                            but I don't the same problems with flex addon 1.0.0.M1 with Spring Roo 1.1.0.M1.

                            Does anyone has the same problem, or I missed something?

                            Thanks.

                            Comment


                            • #59
                              Ok, I resolved my problem.
                              I need add
                              <repository>
                              <id>spring-maven-snapshot</id>
                              <snapshots>
                              <enabled>true</enabled>
                              </snapshots>
                              <name>Springframework Maven SNAPSHOT Repository</name>
                              <url>http://maven.springframework.org/snapshot</url>
                              </repository>

                              to pom.xml, this resolved all the problems.

                              Comment


                              • #60
                                Originally posted by xiongfeng17 View Post
                                Regarding this:
                                Further changes were required to bring the addon into line with Spring Roo 1.1.1.RELEASE. These changes are available as of tonight's snapshot (http://maven.springframework.org/sna...075648-225.jar) and going forward. Many thanks to Thomas Fowler for supplying a patch that served as the foundation for this update.

                                I found there is some problem with this patch with Spring Roo 1.1.1.Release. My persistence layer is using Oracle with Hibernate.
                                First problem, pom.xml is using spring-flex-core.1.5.0.BUILD-SNAPSHOT, and it will complain the jar is missing, so I have to change it back to spring-flex-core.1.5.0.M1.
                                Second problem, I found I could not be able to add a new record from GUI. Got "org.hibernate.PersistentObjectException: detached entity passed to persist:" error.

                                but I don't the same problems with flex addon 1.0.0.M1 with Spring Roo 1.1.0.M1.

                                Does anyone has the same problem, or I missed something?

                                Thanks.
                                Hi Xiong-

                                Thank you very much for the kind words. I'm very glad I could help with the patch and I would be happy to continue contributing to the development of the flex add-on.

                                Cheers,

                                Thomas

                                Comment

                                Working...
                                X