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