This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

(you may have to rename your flex addon jar and annotations jar, this may or may not be the case but its something I did and it seemed to resolve an error, if you have any errors about it expecting to find the jar you have included but the name is different rename them to the following...)

That doesn't work for me. I followed your instructions exactly, trying various snapshots from April 18 to 20. I'm using Roo 1.1.3 on OS X. I get this error with the flex remoting all command:

Code:

roo> flex remoting all --package org.rooina.coursemgr.flex.scaffold
Created SRC_MAIN_JAVA/org/rooina/coursemgr/flex/scaffold
Created SRC_MAIN_JAVA/org/rooina/coursemgr/flex/scaffold/ScheduledCourseService.java
Created ROOT/src/main/flex/org/rooina/coursemgr/flex/model
Created ROOT/src/main/flex/org/rooina/coursemgr/flex/model/ScheduledCourse.as
Created ROOT/src/main/flex/org/rooina/coursemgr/flex/model/Room.as
Created ROOT/src/main/flex/org/rooina/coursemgr/flex/model/Course.as
Created ROOT/src/main/flex/org/rooina/coursemgr/flex/model/Curriculum.as
Created ROOT/src/main/flex/org/rooina/coursemgr/flex/model/Registration.as
Created SRC_MAIN_JAVA/org/rooina/coursemgr/flex/scaffold/CurriculumService.java
Created SRC_MAIN_JAVA/org/rooina/coursemgr/flex/scaffold/RoomService.java
Created SRC_MAIN_JAVA/org/rooina/coursemgr/flex/scaffold/CourseService.java
Created SRC_MAIN_JAVA/org/rooina/coursemgr/flex/scaffold/RegistrationService.java
Exception in thread "Spring Roo JLine Shell" java.lang.NoClassDefFoundError: org/springframework/roo/addon/web/mvc/controller/details/WebMetadataUtils
at org.springframework.flex.roo.addon.FlexScaffoldMetadataProvider.getMetadata(FlexScaffoldMetadataProvider.java:92)
at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.get(AbstractItdMetadataProvider.java:270)
at org.springframework.roo.metadata.DefaultMetadataService.getInternal(DefaultMetadataService.java:148)
at org.springframework.roo.metadata.DefaultMetadataService.get(DefaultMetadataService.java:82)
at org.springframework.roo.classpath.itd.AbstractItdMetadataProvider.notify(AbstractItdMetadataProvider.java:147)
at org.springframework.roo.metadata.DefaultMetadataService.notify(DefaultMetadataService.java:235)
at org.springframework.roo.metadata.internal.DefaultMetadataDependencyRegistry.notifyDownstream(DefaultMetadataDependencyRegistry.java:214)
at org.springframework.roo.classpath.javaparser.JavaParserMetadataProvider.onFileEvent(JavaParserMetadataProvider.java:131)
at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.publish(PollingFileMonitorService.java:330)
at org.springframework.roo.file.monitor.polling.PollingFileMonitorService.scanNotified(PollingFileMonitorService.java:213)
at org.springframework.roo.process.manager.internal.DefaultProcessManager.doTransactionally(DefaultProcessManager.java:189)
at org.springframework.roo.process.manager.internal.DefaultProcessManager.execute(DefaultProcessManager.java:143)
at org.springframework.roo.process.manager.ProcessManagerHostedExecutionStrategy.execute(ProcessManagerHostedExecutionStrategy.java:47)
at org.springframework.roo.shell.AbstractShell.executeCommand(AbstractShell.java:182)
at org.springframework.roo.shell.jline.JLineShell.promptLoop(JLineShell.java:373)
at org.springframework.roo.shell.jline.JLineShell.run(JLineShell.java:134)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.ClassNotFoundException: org.springframework.roo.addon.web.mvc.controller.details.WebMetadataUtils not found by org.springframework.roo.addon.web.mvc.controller [32]
at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787)
at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)
at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:645)
at org.apache.felix.framework.resolver.WireImpl.getClass(WireImpl.java:99)
at org.apache.felix.framework.ModuleImpl.searchImports(ModuleImpl.java:1390)
at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:722)
at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)
at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1768)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
... 17 more

Any idea why this is happening? Anyone else getting this?

Ken

Comment

Hi Krimple, i have not come across that error before, I have actually given up any hope of getting Roo to work, even after doing the instructions above there were still a few things there were off even in my own installation that just were too much of an issue to continue to use it, if I could modify this thread I would probably say "might work" if your lucky, im not sure what else to do, I spent ages trying all different versions of roo, sts, flex addon, and absolutely no joy, apart from the solution above which worked partially for me. Im not sure what else to suggest, heck I even did the exact versions that were shown in the 15 minute flex addon introduction videos from the spring sight and still no luck. I would love to use roo, obviously but I gave up in the end, the above instructions gave me the best results I had.

Comment

I believe even the developers of flex roo are having trouble specifying which version of STS + Roo + flex addon is a good combination...
I have also downloaded STS 2.5.2 to try the 'stable', 'production' version with absolutely no luck, I've been doing this for more than one week now.... Moving my project away from roo

Comment

First I tried on my big machine, Win 7 Ultimate (64bit) with quad core and 8GB Ram, Java 6, STS 2.6 and the snapshot builds for flex roo add on and annotations as per above, first with 290 then 291. No luck and Roo shell would hang.

So I moved to a smaller machine Win 7 Ultimate (32bit), also quad core and 4 GB Ram, Java 6, STS 2.6. Before adding the flex add on jars I tested Roo on its own and AOK!

I then added the two jars for flex with snapshot build 291. It didn't hang, and I did the following steps:

I think until someone can spend the time to get the kinks out, the Flex ROO add on is more work than it saves. The BlazeDS integration with Spring, coupled to Flash Builder Plugin to STS seems like the best bet for now.

Comment

I think until someone can spend the time to get the kinks out, the Flex ROO add on is more work than it saves. The BlazeDS integration with Spring, coupled to Flash Builder Plugin to STS seems like the best bet for now.

Actually you can do something better...
You can start with ROO 1.1.0M1 and the very first Flex addon published. Sorry I forgot the version. Create the project and then update to the latest Roo. Continue development using Flash Builder plugin.

Since I do see the Rsvp entity listed when running the Flex Wedding example, I decided to compare the two projects thinking the difference will point to the problem.

CARE3_scaffold.mxml and FlexWedding_scaffold.mxml are virtually identical, except the package path.

So given the "entities" array list was the same and not displaying in CARE3 but displaying in FlexWedding, I assumed the CARE3_scaffold.swf was simply not updated. I deleted it and did a restart of STS.