Page 1 of 2 12 LastLast
Results 1 to 10 of 17

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

  1. #1
    Join Date
    Nov 2010
    Posts
    15

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

    I apologize if this is the incorrect thread for this post (I noticed a similar issue in the Spring Roo thread), but I ran into this issue while trying to follow this guide:

    http://static.springsource.org/sprin...tml/#flexaddon

    As part of the guide, you are supposed to copy the file:

    org.springframework.flex.roo.addon-1.0.0.M1.jar

    into the following folder:

    roo-1.1.0.RELEASE/bundle

    After doing this, any roo command hangs STS indefinitely. Only a force quit will allow me to do anything else. At this point I have to re-install STS to get roo to work again. Deleting the .jar file doesn't bring roo back into a usable state.

    I have added my findings to the following jira ticket for roo flex integration:

    https://jira.springsource.org/browse/ROOFLEX-25

    I have tried this under the following configurations.

    Mac OS X 10.6
    STS 2.5.0.RELEASE (Cocoa 64bit)
    spring-flex-1.5.0.M1

    Mac OS X 10.6
    STS 2.5.0.RELEASE (Carbon)
    Flex Builder 4 plugin (requires carbon version of STS)
    spring-flex-1.5.0.M1

    Both end up in hanging an roo commands after the jar has been copied.

    I have been using STS and Roo since M1 and am extremely happy with the RELEASE build =) And from what I can tell on the various forum posts, STS 2.3.3.M1 with Roo 1.1.0.M1 was the last build that spring-flex.1.5.0.M1 worked with. See the versions referenced in this video:

    http://blog.springsource.com/2010/07...or-spring-roo/

    For now I am going to go back to that release and see if I can get it working and back port my current roo scripts to that version so I can make progress.

    Let me know if there is any additional information I can provide (log files etc.) that might help in tracking this down.

    This is a show stopper for people using Roo + Flex to try and get Flex/BlazeDS going using the existing documentation >.<

    Thanks again for all your hard work on Spring + Roo + Flex, being a recent converter I am really excited to see enterprise java become more coding and less busy work =P

    Sincerly,

    -rOcK
    Last edited by rockhowse; Nov 7th, 2010 at 06:54 PM. Reason: typo in second configuration

  2. #2
    Join Date
    Nov 2010
    Posts
    15

    Unhappy Tested on Windows7 64bit. Same issue

    Configuration:

    Windows 7 64 bit
    Sun JDK 1.6.0_21
    STS 2.5.0.RELEASE
    spring-flex-1.5.0.M1

    I just tested this on Windows7 64 bit and got the same issue: after copying over the file:

    org.springframework.flex.roo.addon-1.0.0.M1.jar

    into the directory:

    roo-1.1.0.RELEASE/bundle

    ANY roo command (create a new project, type roo> hint, etc.) will lock up STS and only an OS level stop can kill the process (Task manager on windows, kill -9 etc.).

    Going to install 2.3.3.M1 with Roo 1.1.0.M1 on my windows machine (wasn't able to find my old 2.3.3.M1 installer for mac) and post the results.

    One more thing, I was able to avoid having to re-install STS if I made a copy of the roo-1.1.0.RELEASE folder BEFORE copying the .jar file. After the lockup occurs you can replace the folder with the original copy to get STS back to it's previously happy state.

    -rOck
    Last edited by rockhowse; Nov 7th, 2010 at 01:38 AM. Reason: Added some minor changes.

  3. #3
    Join Date
    Nov 2010
    Posts
    15

    Smile STS 2.3.3.M2 + spring-flex1.5.0.M1 - WORKS!

    I wish I could change the title from "WORKS!" to "ALMOST!"

    Using STST 2.3.3.M2, it's much closer to working than before, but not quite there.

    Environment:

    Windows 7 64 bit
    Java 1.6.0_22 32 bit (Flex Builder Plugin needs 32bit JVM!)
    Flex Builder 4 Plug-in
    STS 2.3.3.M2 (32 bit)
    spring-flex-1.5.0.M1

    After following the steps outlined in the original post:

    1. Copy the file:

    org.springframework.flex.roo.addon-1.0.0.M1.jar

    2. into the folder:

    roo-1.1.0.M2/bundle

    I then re-started STS 2.3.3.M1 and the roo shell was NOT locked =)
    I then tried to run the roo command:

    roo> script rootunes.roo

    And was able to run it without any errors.

    But, evidently this didn't complete correctly =(

    -rOck
    Last edited by rockhowse; Nov 7th, 2010 at 06:37 PM. Reason: Overhauled the message from WORKS to ALMOST

  4. #4
    Join Date
    Nov 2010
    Posts
    15

    Cool STS 2.3.3.M2 + spring-flex1.5.0.M1 - ALMOST!

    I then proceeded to follow Jeremy's video:

    http://blog.springsource.com/2010/07...or-spring-roo/

    Exactly instead of trying to run:

    roo> script rootunes.roo

    Here are my results:

    1. Create Roo project

    name: rootunes
    top level domain: org.example.rootunes

    Right here is where I think the major problem lies. In the video, it looks like roo is invoking mvn eclipse:eclipse command.
    Instead, here is the output from my Maven Console directly after the project was created:

    11/7/10 6:22:27 PM CST: Generating sources /rootunes/pom.xml
    11/7/10 6:22:27 PM CST: Adding source folder /rootunes/src/main/java
    11/7/10 6:22:27 PM CST: Adding resource folder /rootunes/src/main/resources
    11/7/10 6:22:27 PM CST: Adding source folder /rootunes/src/test/java
    11/7/10 6:22:27 PM CST: Adding resource folder /rootunes/src/test/resources
    11/7/10 6:22:27 PM CST: Generating sources /rootunes/pom.xml
    11/7/10 6:22:27 PM CST: Refreshing [/rootunes/pom.xml]
    11/7/10 6:22:27 PM CST: [INFO] Using 'UTF-8' encoding to copy filtered resources.
    11/7/10 6:22:27 PM CST: [INFO] Copying 2 resources
    11/7/10 6:22:27 PM CST: Adding source folder /rootunes/src/main/java
    11/7/10 6:22:27 PM CST: Adding resource folder /rootunes/src/main/resources
    11/7/10 6:22:27 PM CST: Adding source folder /rootunes/src/test/java
    11/7/10 6:22:27 PM CST: Adding resource folder /rootunes/src/test/resources
    11/7/10 6:22:30 PM CST: Maven Builder: FULL_BUILD
    11/7/10 6:22:30 PM CST: [INFO] Using 'UTF-8' encoding to copy filtered resources.
    11/7/10 6:22:30 PM CST: [INFO] Copying 2 resources
    11/7/10 6:22:31 PM CST: [INFO] Nothing to compile - all classes are up to date
    11/7/10 6:22:31 PM CST: [INFO] Using 'UTF-8' encoding to copy filtered resources.
    11/7/10 6:22:31 PM CST: [INFO] Copying 0 resource

    2. Again, having only the video to follow, I try the first roo command to set up persistence:

    Roo Shell:

    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.138]
    Managed ROOT\pom.xml [Added dependency org.hibernate:hibernate-core:3.5.1-Final]
    Managed ROOT\pom.xml [Added dependency org.hibernate:hibernate-entitymanager:3.5.1-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.0.2.GA]
    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

    Maven Console:

    11/7/10 6:28:10 PM CST: Refreshing [/rootunes/pom.xml]
    11/7/10 6:28:11 PM CST: Maven Builder: AUTO_BUILD
    11/7/10 6:28:11 PM CST: [INFO] Using 'UTF-8' encoding to copy filtered resources.
    11/7/10 6:28:11 PM CST: [INFO] Copying 3 resources
    11/7/10 6:28:11 PM CST: [INFO] Using 'UTF-8' encoding to copy filtered resources.
    11/7/10 6:28:11 PM CST: [INFO] Copying 0 resource

    This appears to run correctly and mirrors what is shown in the video.

    3. The second roo command used is "flex setup". Here are the results from running that command:

    Roo Shell:

    roo> flex setup
    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
    Created SRC_MAIN_WEBAPP\WEB-INF\urlrewrite.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:2.0.8.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 org.tuckey:urlrewritefilter:3.1.0]
    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
    Managed SRC_MAIN_WEBAPP\WEB-INF\spring\webmvc-config.xml
    Managed SRC_MAIN_WEBAPP\WEB-INF\urlrewrite.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.M1]
    Managed ROOT\pom.xml [Added dependency org.springframework.flex.roo.addon:org.springframe work.flex.roo.annotations:1.0.0.M1]
    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

    At this point in the video, Jeremy's roo shell contains a TON more files being managed. Here is what his roo console shows that my roo console did not:

    Created SRC_MAIN_WEBAPP/osmf_flex.4.0.0.13495.swf
    Created SRC_MAIN_WEBAPP/playerProductInstall.swf
    Created SRC_MAIN_WEBAPP/textLayout_1.0.0.595.swf
    Created SRC_MAIN_WEBAPP/sparkskins_4.0.0.14159.swf
    Created SRC_MAIN_WEBAPP/framework_4.0.0.14159.swf
    Created SRC_MAIN_WEBAPP/spark_4.0.0.14159.swf
    Created SRC_MAIN_WEBAPP/swfobject.js
    Created SRC_MAIN_WEBAPP/rpc_4.0.0.14159.swf
    Created SRC_MAIN_WEBAPP/history
    Created SRC_MAIN_WEBAPP/history/history.js
    Created SRC_MAIN_WEBAPP/historyFrame.html
    Created SRC_MAIN_WEBAPP/history.css
    Created ROOT/html-template
    Created ROOT/html-template/swfobject.js
    Created ROOT/html-template/index.template.html
    Created ROOT/html-template/playerProductInstall.swf
    Created ROOT/html-template/history
    Created ROOT/html-template/history/history.js
    Created ROOT/html-template/historyFrame.html
    Created ROOT/html-template/history.css

    These appear to be the base Flex html-template files.

    At this point, there are enough differences between STS 2.3.3.M2 and the video using STS 2.3.3.M1 that I am just going to throw in the towel on the flex roo addon for the moment and try to configure flex spring integration using a more manual method.

    You can't download STS 2.3.3.M1 any more so trying to get this demo working as shown in the video is impossible. It appears people have been getting it to work using various mvn commands directly on the command line outside of eclipse and by hand editing files to remove /app URL mappings, but even they say it's spotty.

    It appears that Jeremy and crew are back on the Spring BlazeDS Integration and Spring Flex Roo addon space again according to his sticky. So hopefully we get a version of spring-flex-1.5.0.XX that works with a currently downloadable version of STS (either 2.3.2.M2.RELEASE or 2.5.0.RELEASE) as easily as was showcased in the video using STS 2.3.3.M1 + Roo 1.1.0.M1.

    -rOCk
    Last edited by rockhowse; Nov 7th, 2010 at 06:56 PM.

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

    Default

    The 1.0.0.M1 version of the Flex Addon is only compatible with Roo 1.1.0.M1 (they changed some of the APIs we're using in 1.1.0.M2 and onwards), hence all the problems you're encountering. We're working on getting things compatible again now that Roo 1.1.0 has gone GA and things are stable. At the very least, things should be compatible with Roo 1.1.0 GA in the nightly snapshots by the end of this week. I will announce in the forums when that is the case, for those that don't mind living on the edge with snapshot builds. My hope is to get M2 of the addon released about a month from now.
    Jeremy Grelle

    Staff Engineer, Web Products Team
    SpringSource

  6. #6
    Join Date
    Nov 2010
    Posts
    15

    Smile Thanks!

    Awesome! Thanks for addressing this so quickly =) I am currently in the process of configuring the BlazeDS integration manually. I will keep an eye out for the nightly and update this post as soon as I can get something working.

  7. #7
    Join Date
    Nov 2010
    Posts
    6

    Default

    Yes, thansk for looking into it. I'm interested in get it working as well. tried STS 2.5 with both roo 1.1.0.release and 1.1.0.M1 and both hang. I'm trying to see the differences between roo flex and the STS myeclipse spring flex generation.

    Gerard

  8. #8

    Default Any movement on this...

    Nightly builds do not yet seem to have addressed the issue...

  9. #9
    Join Date
    Nov 2010
    Posts
    15

    Unhappy I haven't heard/seen anything yet =(

    I haven't seen that the Flex Roo 1.5.0.M1 works with anything other than Roo 1.1.0.M1 as of yet. This is a REALLY BIG issue for anyone just starting out trying to use it, because you can't download any version of STS that actually works with 1.5.0.M1 as showcased in the sweet 2 part youtube video set Jeremy put together. In fact, if you try to use it as shown, it will blow up your STS and make it completely unresponsive (Force Quit is the only way to stop it).

    Until this is resolved, I am making due by using the "json all" roo command which exposes REST calls as JSON using the (confusingly named =P) flexJson parser =P (it has nothing to do with Adobe Flex =P). The resulting JSON is easily usable as a Flex Builder 4 HTTP based data service. I have had to modify the roo generated code because the default JSON implementation only returns JSON data if the HTTP request contains the accept:application/json header, which you can't specify using the Flex 4 data services GUI based tool (however you can manually add it in the actionscript that is autogenerated). Basically we removed the 'headers = "Accept=application/json"' from the default @RequestMapping annotation.

    That being said, until I see some sticky saying: "spring flex 1.5.0.XX has been successfully tested to work with STS 2.5.X.RELEASE running on roo.1.1.X.RELEASE" I am steering clear of it. I have already spent a weekend on it already to no avail.

    So close, yet so far =( I wish I knew more about OSGI and spring roo addons so I might assist in getting it jump started. Spring and Flex are both amazing frameworks and the mating of them shall bear beautiful offspring as the addon matures and can build against a non-moving target (roo-1.1.0.RELEASE).

    -rOcK
    Last edited by rockhowse; Nov 17th, 2010 at 01:28 AM. Reason: small typo

  10. #10
    Join Date
    Nov 2010
    Posts
    15

    Thumbs up Looks like it's moving ahead

    If you want to vote/watch this issue check it out here:

    https://jira.springsource.org/browse/ROOFLEX-27

    From what it looks like, the differences in Spring roo between 1.1.0.M1 and 1.1.0.RELEASE were substantial and it might take them a bit to make sure the addon works with the APIS available in roo.1.1.0.RELEASE.

    Thanks for staying on top of it Jeremy and all the devs working on the spring/roo flex integration =)

    -rOcK

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
  •