Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: STS 2.5.0.RELEASE + spring-flex.1.5.0.M1 - roo shell hangs

  1. #11
    Join Date
    Apr 2005
    Location
    San Francisco, CA
    Posts
    1,224

    Default

    I believe I've now fixed everything with today's snapshot build (which you can grab here: http://s3browse.springsource.com/bro...UILD-SNAPSHOT/). Need to do a little more testing tomorrow before I consider the issue completely resolved, but so far so good...been testing successfully against Roo 1.1.0.RELEASE and STS 2.5.1.
    Jeremy Grelle

    Staff Engineer, Web Products Team
    SpringSource

  2. #12
    Join Date
    Nov 2010
    Posts
    1

    Default

    Thanks a bunch Jeremy! I'll see if we can take a shot at running it tomorrow with the nightly as this would make our lives much easier If we do try it tomorrow, I'll try and give you an update as to the success/failure of it.

    Cheers!

  3. #13
    Join Date
    Nov 2010
    Posts
    15

    Cool Project built and compiling using STS 2.5.1 + nightly

    Awesome! The nightly build Jeremy linked appears to be working. I am able to run through the youtube videos with no errors!

    The major issue of having it lock up STS is resolved, however there are still a few issues that people might run into:

    1. If your pom.xml is giving you a dependency error on the spring-roo.anotations.jar add the nightly repository to your pom.xml manually as mentioned here:

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

    2. The flex interface loads once you navigate to:

    http://localhost:8080/rootunes/rootunes_scaffold.html

    And I am able to see both the Artist and Album entities listed, but clicking on them doesn't bring up the list editors as shown in the videos.

    To replicate create a new roo project called "rootunes", give it the top level domain of "org.sample.rootunes" and run the following roo script:

    (same commands and order as shown in the video)

    persistence setup --provider HIBERNATE --database H2_IN_MEMORY
    flex setup
    entity --class ~.domain.Artist
    field string --fieldName name --notNull
    flex remoting all --package ~.service

    field number --type java.lang.Integer --fieldName numberOfMembers --notNull --min 1
    field string --fieldName homeCity

    entity --class ~.domain.Album
    field string --fieldName title --notNull
    field date --type java.util.Date --fieldName releaseDate
    field reference --type ~.domain.Artist --fieldName artist

    flex remoting scaffold --name ~.service.AlbumService

    The one difference between the video and the STS 2.5.1 implementation I am using is that I am deploying the App directly to the included tc Server Developer Edition 2.1 instead of Tomcat 2.0.28 because the current version of STS 2.5.1 doesn't have Tomcat as an available server by default.

    See the next post for the full roo output.

    It's almost as if it's generating the .mxml (Flex source) but never compiling it to the resulting .swf files (?) I think it's because my project isn't set up as a "flex project". I have installed the Flex Builder 4 Plugin and can create and compile other Flex based project.

    Complete Environment:

    Mac OS X 10.6
    STS 2.5.1.RELEASE.carbon
    Flex Builder Plugin 4
    SpringSource tc Server Developer Edition 2.1

    Awesome Job on this Jeremy! This gets the newbies like me much closer to the end game.

    -rOcK

  4. #14
    Join Date
    Nov 2010
    Posts
    15

    Default

    Here is the complete Roo output after running the roo script above:

    ____ ____ ____
    / __ \/ __ \/ __ \
    / /_/ / / / / / / /
    / _, _/ /_/ / /_/ /
    /_/ |_|\____/\____/ 1.1.0.RELEASE [rev 793f2b0]


    Welcome to Spring Roo. For assistance press CTRL+SPACE or type "hint" then hit ENTER.
    roo> script /Users/nrock/Documents/workspace-sts-2.5.1.RELEASE.carbon.flex/Mob/rootunes.roo
    persistence setup --provider HIBERNATE --database H2_IN_MEMORY
    Managed SRC_MAIN_RESOURCES/META-INF/spring/applicationContext.xml
    Created SRC_MAIN_RESOURCES/META-INF/persistence.xml
    Created SRC_MAIN_RESOURCES/META-INF/spring/database.properties
    Managed ROOT/pom.xml [Added dependency com.h2database:h2:1.2.144]
    Managed ROOT/pom.xml [Added dependency org.hibernate:hibernate-core:3.5.5-Final]
    Managed ROOT/pom.xml [Added dependency org.hibernate:hibernate-entitymanager:3.5.5-Final]
    Managed ROOT/pom.xml [Added dependency org.hibernate.javax.persistence:hibernate-jpa-2.0-api:1.0.0.Final]
    Managed ROOT/pom.xml [Added dependency org.hibernate:hibernate-validator:4.1.0.Final]
    Managed ROOT/pom.xml [Added dependency javax.validation:validation-api:1.0.0.GA]
    Managed ROOT/pom.xml [Added dependency cglib:cglib-nodep:2.2]
    Managed ROOT/pom.xml [Added dependency javax.transaction:jta:1.1]
    Managed ROOT/pom.xml [Added dependency org.springframework:spring-jdbc:${spring.version}]
    Managed ROOT/pom.xml [Added dependency org.springframework:spring-orm:${spring.version}]
    Managed ROOT/pom.xml [Added dependency commons-pool:commons-pool:1.5.4]
    Managed ROOT/pom.xml [Added dependency commons-dbcp:commons-dbcp:1.3]
    Managed ROOT/pom.xml
    roo> Created SRC_MAIN_WEBAPP/WEB-INF/flex
    Created SRC_MAIN_WEBAPP/WEB-INF/flex/services-config.xml
    Created SRC_MAIN_WEBAPP/WEB-INF/spring
    Created SRC_MAIN_WEBAPP/WEB-INF/spring/flex-config.xml
    Created SRC_MAIN_WEBAPP/WEB-INF/spring/webmvc-config.xml
    Created SRC_MAIN_WEBAPP/WEB-INF/web.xml
    Managed SRC_MAIN_WEBAPP/WEB-INF/web.xml
    Managed ROOT/pom.xml [Added dependency org.springframework:spring-web:${spring.version}]
    Managed ROOT/pom.xml [Added dependency org.springframework:spring-webmvc:${spring.version}]
    Managed ROOT/pom.xml [Added dependency org.springframework.webflow:spring-js-resources:2.2.0.RELEASE]
    Managed ROOT/pom.xml [Added dependency commons-digester:commons-digester:2.0]
    Managed ROOT/pom.xml [Added dependency commons-fileupload:commons-fileupload:1.2.1]
    Managed ROOT/pom.xml [Added dependency javax.servlet:jstl:1.2]
    Managed ROOT/pom.xml [Added dependency javax.el:el-api:1.0]
    Managed ROOT/pom.xml [Added dependency joda-time:joda-time:1.6]
    Managed ROOT/pom.xml [Added dependency javax.servlet.jsp:jsp-api:2.1]
    Managed ROOT/pom.xml
    Managed SRC_MAIN_WEBAPP/WEB-INF/spring/webmvc-config.xml
    Managed ROOT/pom.xml [Added dependency com.adobe.flex.framework:flex-framework:4.0.0.14159]
    Managed ROOT/pom.xml [Added dependency org.springframework.flex:spring-flex-core:1.5.0.BUILD-SNAPSHOT]
    Managed ROOT/pom.xml [Added dependency org.springframework.flex.roo.addon:org.springframe work.flex.roo.annotations:1.0.0.BUILD-SNAPSHOT]
    Managed ROOT/pom.xml
    Created ROOT/.flexProperties
    Created ROOT/.actionScriptProperties
    Created ROOT/src/main/flex/rootunes_scaffold.mxml
    Created SRC_MAIN_WEBAPP/rootunes_scaffold.html
    Created SRC_MAIN_WEBAPP/osmf_flex.4.0.0.13495.swf
    Created SRC_MAIN_WEBAPP/playerProductInstall.swf
    Created SRC_MAIN_WEBAPP/sparkskins_4.0.0.14159.swf
    Created SRC_MAIN_WEBAPP/textLayout_1.0.0.595.swf
    Created SRC_MAIN_WEBAPP/framework_4.0.0.14159.swf
    Created SRC_MAIN_WEBAPP/swfobject.js
    Created SRC_MAIN_WEBAPP/spark_4.0.0.14159.swf
    Created SRC_MAIN_WEBAPP/rpc_4.0.0.14159.swf
    Created SRC_MAIN_WEBAPP/history
    Created SRC_MAIN_WEBAPP/history/history.css
    Created SRC_MAIN_WEBAPP/history/historyFrame.html
    Created SRC_MAIN_WEBAPP/history/history.js
    Created ROOT/html-template
    Created ROOT/html-template/index.template.html
    Created ROOT/html-template/playerProductInstall.swf
    Created ROOT/html-template/swfobject.js
    Created ROOT/html-template/history
    Created ROOT/html-template/history/history.css
    Created ROOT/html-template/history/historyFrame.html
    Created ROOT/html-template/history/history.js
    Created ROOT/src/main/flex/rootunes_scaffold-config.xml
    roo> Created SRC_MAIN_JAVA/org/example/rootunes/domain
    Created SRC_MAIN_JAVA/org/example/rootunes/domain/Artist.java
    Created SRC_MAIN_JAVA/org/example/rootunes/domain/Artist_Roo_Configurable.aj
    Created SRC_MAIN_JAVA/org/example/rootunes/domain/Artist_Roo_Entity.aj
    Created SRC_MAIN_JAVA/org/example/rootunes/domain/Artist_Roo_ToString.aj
    ~.domain.Artist roo> Managed SRC_MAIN_JAVA/org/example/rootunes/domain/Artist.java
    Created SRC_MAIN_JAVA/org/example/rootunes/domain/Artist_Roo_JavaBean.aj
    Managed SRC_MAIN_JAVA/org/example/rootunes/domain/Artist_Roo_ToString.aj
    ~.domain.Artist roo> Created SRC_MAIN_JAVA/org/example/rootunes/service
    Created SRC_MAIN_JAVA/org/example/rootunes/service/ArtistService.java
    Created ROOT/src/main/flex/org/example/rootunes/domain
    Created ROOT/src/main/flex/org/example/rootunes/domain/Artist.as
    Created SRC_MAIN_JAVA/org/example/rootunes/service/ArtistService_Roo_Service.aj
    Managed ROOT/src/main/flex/rootunes_scaffold.mxml
    Managed ROOT/src/main/flex/rootunes_scaffold-config.xml
    Created ROOT/src/main/flex/org/example/rootunes/presentation/artist
    Created ROOT/src/main/flex/org/example/rootunes/presentation/artist/ArtistEvent.as
    Created ROOT/src/main/flex/org/example/rootunes/presentation/artist/ArtistView.mxml
    Created ROOT/src/main/flex/org/example/rootunes/presentation/artist/ArtistForm.mxml
    ~.domain.Artist roo> Managed SRC_MAIN_JAVA/org/example/rootunes/domain/Artist.java
    Managed SRC_MAIN_JAVA/org/example/rootunes/domain/Artist_Roo_JavaBean.aj
    Managed SRC_MAIN_JAVA/org/example/rootunes/domain/Artist_Roo_ToString.aj
    Managed ROOT/src/main/flex/org/example/rootunes/presentation/artist/ArtistView.mxml
    Managed ROOT/src/main/flex/org/example/rootunes/presentation/artist/ArtistForm.mxml
    Managed ROOT/src/main/flex/org/example/rootunes/domain/Artist.as
    ~.domain.Artist roo> Managed SRC_MAIN_JAVA/org/example/rootunes/domain/Artist.java
    Managed SRC_MAIN_JAVA/org/example/rootunes/domain/Artist_Roo_JavaBean.aj
    Managed SRC_MAIN_JAVA/org/example/rootunes/domain/Artist_Roo_ToString.aj
    Managed ROOT/src/main/flex/org/example/rootunes/presentation/artist/ArtistView.mxml
    Managed ROOT/src/main/flex/org/example/rootunes/presentation/artist/ArtistForm.mxml
    Managed ROOT/src/main/flex/org/example/rootunes/domain/Artist.as
    ~.domain.Artist roo> Created SRC_MAIN_JAVA/org/example/rootunes/domain/Album.java
    Created SRC_MAIN_JAVA/org/example/rootunes/domain/Album_Roo_Configurable.aj
    Created SRC_MAIN_JAVA/org/example/rootunes/domain/Album_Roo_Entity.aj
    Created SRC_MAIN_JAVA/org/example/rootunes/domain/Album_Roo_ToString.aj
    ~.domain.Album roo> Managed SRC_MAIN_JAVA/org/example/rootunes/domain/Album.java
    Created SRC_MAIN_JAVA/org/example/rootunes/domain/Album_Roo_JavaBean.aj
    Managed SRC_MAIN_JAVA/org/example/rootunes/domain/Album_Roo_ToString.aj
    ~.domain.Album roo> Managed SRC_MAIN_JAVA/org/example/rootunes/domain/Album.java
    Managed SRC_MAIN_JAVA/org/example/rootunes/domain/Album_Roo_JavaBean.aj
    Managed SRC_MAIN_JAVA/org/example/rootunes/domain/Album_Roo_ToString.aj
    ~.domain.Album roo> Managed SRC_MAIN_JAVA/org/example/rootunes/domain/Album.java
    Managed SRC_MAIN_JAVA/org/example/rootunes/domain/Album_Roo_JavaBean.aj
    Managed SRC_MAIN_JAVA/org/example/rootunes/domain/Album_Roo_ToString.aj
    ~.domain.Album roo> Created SRC_MAIN_JAVA/org/example/rootunes/service/AlbumService.java
    Created ROOT/src/main/flex/org/example/rootunes/domain/Album.as
    Created SRC_MAIN_JAVA/org/example/rootunes/service/AlbumService_Roo_Service.aj
    Managed ROOT/src/main/flex/rootunes_scaffold.mxml
    Managed ROOT/src/main/flex/rootunes_scaffold-config.xml
    Created ROOT/src/main/flex/org/example/rootunes/presentation/album
    Created ROOT/src/main/flex/org/example/rootunes/presentation/album/AlbumEvent.as
    Created ROOT/src/main/flex/org/example/rootunes/presentation/album/AlbumView.mxml
    Created ROOT/src/main/flex/org/example/rootunes/presentation/album/AlbumForm.mxml

  5. #15
    Join Date
    Apr 2005
    Location
    San Francisco, CA
    Posts
    1,224

    Default

    Quote Originally Posted by rockhowse View Post
    It's almost as if it's generating the .mxml (Flex source) but never compiling it to the resulting .swf files (?) I think it's because my project isn't set up as a "flex project". I have installed the Flex Builder 4 Plugin and can create and compile other Flex based project.
    Actually, running "flex setup" in Roo should have added the necessary metadata for FB4 to see it as a Flex project and compile automatically. The one issue I have seen is that the Flex compilation doesn't always sync up correctly with Eclipse's auto-deployment to the given server (whether tc Server, Tomcat, or any other).

    The most consistent way I've found to work around this is to disable automatic publishing. (This varies from container to container, but generally you right-click on the given container in the Servers tab, and select "Open", and there is usually a "Publishing" section where you can tweak the settings.) Then when you do want to see changes, right-click on the container again and select "Publish" and wait for things to sync up before reloading the browser page.
    Jeremy Grelle

    Staff Engineer, Web Products Team
    SpringSource

  6. #16
    Join Date
    Nov 2010
    Posts
    15

    Thumbs up Thx! I got it working now \:D/ - YAY!

    There was a bit of noob detection on my part. Initially I wasn't double clicking on the entities >.< and I wasn't keeping my mouse over the entity long enough to see the tooltip =P I was single clicking the Entity, it showed it as "selected" and I assumed it wasn't working.

    Beyond that, I figured out how to get STS to show the project as a "flex project" so users can actually see the flex configuration parameters etc.

    If you open up the .project file for a standard Flex application it has the following:


    <projectDescription>
    <name>FlexTest</name>
    <comment></comment>
    <projects>
    </projects>
    <buildSpec>
    <buildCommand>
    <name>com.adobe.flexbuilder.project.flexbuilder</name>
    <arguments>
    </arguments>
    </buildCommand>
    </buildSpec>
    <natures>
    <nature>com.adobe.flexbuilder.project.flexnature </nature>
    <nature>com.adobe.flexbuilder.project.actionscript nature</nature>
    </natures>
    </projectDescription>

    The <buildCommand> and both <nature/> are not present inside the .project file that is managed by the flex-roo plugin. If you hand copy them into the default created .project, Flash Builder 4 was able to pick up on it right away.

    Is this something the roo-flex plugin could manage?

    I also noticed that the default startupURL that is generated goes to the root, instead of the <projectName>_scaffold.html

    http://localhost:8080/<projectName>/

    The .actionScriptProperties file contains the location that this opened by default when you choose to run application in the browser. If this file is manged by roo it could be updated to

    rootURL="http://<server>:<port>/<projectName>/<projectName>_scaffold.html"

    Again thanks for all the hard work you and your team are doing to integrate spring with the various APIs (Flex, Comet etc.) these are platforms people are already using and making it easier to configure and manage leaves more time for coding =P

    -rOck

  7. #17
    Join Date
    Feb 2006
    Posts
    7

    Default STS 2.52 + Roo 1.1.1 + spring-flex-1.5.0.M1 hangs indefinitely

    In order to make with work Maven and Spring build, I set up STS 2.5.2 + Roo 1.1.1 + spring-flex-1.5.0.M1 and Flex4 plug-in as shown in the youtube video, but Roo shell hangs indefinitely even when creating the persistency layer. Can any one advise how to resolve this issue. Thanks

Tags for this Thread

Posting Permissions

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