-
install web flow errors
hi all...
i'm trying to execute 'install web flow' but it's throwing out errors:
Code:
C:\Users\jlyons\workspace\roo-test-webflow>roo
____ ____ ____
/ __ \/ __ \/ __ \
/ /_/ / / / / / / /
/ _, _/ /_/ / /_/ /
/_/ |_|\____/\____/ 1.0.0.M2 [rev 138]
Welcome to Spring Roo. For assistance press TAB or type "hint" then hit ENTER.
roo> create project -topLevelPackage com.hello -projectName hello
Created C:\Users\jlyons\workspace\roo-test-webflow\pom.xml
Created SRC_MAIN_JAVA
Created SRC_MAIN_RESOURCES
Created SRC_TEST_JAVA
Created SRC_TEST_RESOURCES
Created SRC_MAIN_WEBAPP
Created SRC_MAIN_RESOURCES\applicationContext.xml
roo>
roo> install jpa -database HYPERSONIC_PERSISTENT -provider HIBERNATE
Created SRC_MAIN_RESOURCES\META-INF
Created SRC_MAIN_RESOURCES\META-INF\persistence.xml
Created SRC_MAIN_RESOURCES\database.properties
Managed SRC_MAIN_RESOURCES\applicationContext.xml
Managed ROOT\pom.xml
roo>
roo> install web flow -flowName employee
Created SRC_MAIN_RESOURCES\applicationContext-webflow.xml
Managed SRC_MAIN_RESOURCES\applicationContext-webflow.xml
Undo manage SRC_MAIN_RESOURCES\applicationContext-webflow.xml
Undo failed SRC_MAIN_RESOURCES\applicationContext-webflow.xml
Could not find MVC servlet configuration file at C:\Users\jlyons\workspace\roo-test-webflow\src\main\webapp\WEB-INF\hello-servlet.xml
roo>
thanks
-
Hi,
The current version of the WebFlow add-on in Roo builds on top of the Spring MVC framework and therefore requires Spring MVC artifacts to be installed first (a controller with a form backing object). This is something we need to address and I'll raise a Jira issue for this. At the very least Roo should have hidden the install web flow command until the Spring MVC artifacts are available in the project.
So for now you can do the following to get started:
Code:
create project -topLevelPackage com.hello
install jpa -database HYPERSONIC_PERSISTENT -provider HIBERNATE
new persistent class jpa -name Person
new controller automatic -name com.hello.PersonController
install web flow -flowName employee
Regards,
Stefan