Problem
A spring roo gwt application works in dev mode (mvn gwt:run) but not works in production mode (mvn tomcat:run or mvn jetty:run). When trying the late it shows a page with a rectangle with the message loading inside.
Reason
Solution
Assuming that the project is the sample that comes with roo expenses.roo. In STS (Spring Source Tool Suite):
- Edit the project properties
- Select Deployment Assembly
- Click Add
- Select Folder
- Select target/extrack-0.1.0.BUILD-SNAPSHOT (or whatever your version is)
- Click Finish
- Right click on the project or the pom.xml
- Select Run As -> Maven assembly:assembly
- App should re-deploy to the server
This solution was originally posted here: http://forum.springsource.org/showthread.php?106292-Problem-with-expenses.roo-sample-and-STS-2.6.0
No comments:
Post a Comment