Page 5 of 6 FirstFirst ... 3456 LastLast
Results 41 to 50 of 60

Thread: Flex Addon for Spring Roo - Compatibility Update

  1. #41
    Join Date
    Nov 2010
    Location
    Santo Domingo, Albay Philippines
    Posts
    158

    Default

    I did as you said, no difference still getting the "circular view" error.

    So I did a clean install of STS 2.5.2, then did the same ROO script as in the getting started part 2 link above, and it worked fine.

    Then I installed the flex addon .225 into fhe roo bundle and did the following ROO script and then Run on Server...


    // Spring Roo 1.1.1.RELEASE [rev 156ccd6] log opened at 2011-02-22 11:42:35
    project --topLevelPackage com.corent.flexwedding --projectName FlexWedding --java 6
    // Spring Roo 1.1.1.RELEASE [rev 156ccd6] log closed at 2011-02-22 11:42:39
    // Spring Roo 1.1.1.RELEASE [rev 156ccd6] log opened at 2011-02-22 11:42:43
    persistence setup --provider HIBERNATE --database HYPERSONIC_PERSISTENT
    flex setup
    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
    flex remoting all --package ~.service


    The error was ...


    SEVERE: Exception Processing ErrorPage[errorCode=404, location=/resourceNotFound]
    javax.servlet.ServletException: Circular view path [resourceNotFound]: would dispatch back to the current handler URL [/FlexWedding/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.InternalResou rceView.prepareForRendering(InternalResourceView.j ava:292)
    at org.springframework.web.servlet.view.InternalResou rceView.renderMergedOutputModel(InternalResourceVi ew.java:214)
    at org.springframework.web.servlet.view.AbstractView. render(AbstractView.java:250)


    This was an absolute clean 2.5.2 install in a new directory with a new workspace nothing from before. ROO by itself worked fine on the Wedding example, the same ROO Script plus the two flex lines was the same.

  2. #42
    Join Date
    Nov 2010
    Location
    Santo Domingo, Albay Philippines
    Posts
    158

    Default After much hammering

    The FlexWebbing application I created with ROO above, now won't run because "Resource out of sync with the filesystem, ...FlexWebbing_scaffold.swf"

    About to quit for the day, and hope I will get a clue in the morning when I get up.

  3. #43
    Join Date
    Jan 2011
    Location
    Denver, CO
    Posts
    12

    Default

    Quote Originally Posted by MikeOliverAZ View Post
    The FlexWebbing application I created with ROO above, now won't run because "Resource out of sync with the filesystem, ...FlexWebbing_scaffold.swf"

    About to quit for the day, and hope I will get a clue in the morning when I get up.
    Hi Mike-

    Sorry for just now responding, but did you have any more luck with this today? If not, I was wondering if you could try and run a very small .roo script from the Roo shell for me. If it doesn't work then there's something else we're missing.

    So first, download the attached 'flexroo.roo' script somewhere and in the same location create a directory called 'flexroo'. Then, 'cd' into the 'flexroo' dir. and (I'm sure you know this) run the script by typing the following in the Roo shell:

    Code:
    script --file ../flexroo.roo
    Let me know what your results are and let's see what we find.


    Thanks,

    Thomas
    Attached Files Attached Files

  4. #44
    Join Date
    Nov 2010
    Location
    Santo Domingo, Albay Philippines
    Posts
    158

    Thumbs down Ran it and here are results

    Thomas,

    Thanks for your assistance.

    I downloaded the zip and created a folder and ran it in the folder as suggested.

    That folder with the output of the roo script is at http://dl.dropbox.com/u/249163/STS/flexrooProj.zip

    A screen shot of the cmd window is attached. It appeared to work as advertised. The resulting pom is attached.

    roo.log...

    Code:
    // Spring Roo 1.1.1.RELEASE [rev 156ccd6] log opened at 2011-02-23 06:39:26
    project --topLevelPackage net.digitalprimates.flex.roo --projectName flexroo --java 6
    persistence setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
    entity --class ~.domain.SomeEntity --testAutomatically
    field string --fieldName name --notNull
    flex setup
    flex remoting all --package ~.service
    logging setup --level INFO
    // script --file ../flexroo.roo
    exit
    // Spring Roo 1.1.1.RELEASE [rev 156ccd6] log closed at 2011-02-23 06:43:43
    Then I did

    Code:
    perform eclipse
    and imported the project into STS 2.5.2

    Then Run on Server...

    Code:
    Feb 23, 2011 7:21:26 AM org.apache.catalina.core.ApplicationDispatcher invoke
    SEVERE: Servlet.service() for servlet flexroo threw exception
    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)
    	at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1047)


    I might add that the Flex BlazeDS testDrive is working on that same STS.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by MikeOliverAZ; Feb 22nd, 2011 at 05:43 PM. Reason: added comment

  5. #45
    Join Date
    Nov 2010
    Location
    Santo Domingo, Albay Philippines
    Posts
    158

    Default mvn tomcat:run

    I also tried running from command line with mvn tomcat:run and it started fine but the error it threw when I hit http://localhost:8080/flexroo was exactly the same circular view error above.
    Last edited by MikeOliverAZ; Feb 22nd, 2011 at 11:40 PM. Reason: corrected sentence.

  6. #46
    Join Date
    Oct 2010
    Posts
    29

    Default

    Try http://localhost:8080/flexroo/flexroo_scaffold.html

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

  7. #47
    Join Date
    Nov 2010
    Location
    Santo Domingo, Albay Philippines
    Posts
    158

    Default 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.

  8. #48
    Join Date
    Nov 2010
    Location
    Santo Domingo, Albay Philippines
    Posts
    158

    Talking 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.

  9. #49
    Join Date
    Nov 2010
    Location
    Santo Domingo, Albay Philippines
    Posts
    158

    Wink 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.

  10. #50
    Join Date
    Apr 2008
    Posts
    13

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •