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.

examples with mongodb

I am new in Roo and I want to use mongodb with my gwt project. I tested the expenses example, it works well.
And I changed jpa to mongo and roo didn't generates a lot of class:

the import org.springsource.roo.extrack.client.managed cannot be resolved
[ERROR] ApplicationRequestFactory cannot be resolved to a type
[ERROR] The import org.springsource.roo.extrack.client.managed cannot be resolved
[ERROR] The method bind(Class<ApplicationRequestFactory>) from the type AbstractGinModule refers to the missing type ApplicationRequestFactory
[ERROR] ApplicationRequestFactory cannot be resolved to a type
[ERROR] ApplicationRequestFactory cannot be resolved to a type
[ERROR] ApplicationRequestFactory cannot be resolved to a type
[ERROR] ApplicationRequestFactory cannot be resolved to a type
[ERROR] ApplicationRequestFactory cannot be resolved to a type
[ERROR] ApplicationRequestFactory cannot be resolved to a type
[ERROR] ApplicationRequestFactory cannot be resolved to a type
[ERROR] ApplicationRequestFactory cannot be resolved to a type
[ERROR] The import org.springsource.roo.extrack.client.managed cannot be resolved
[ERROR] The import org.springsource.roo.extrack.client.managed cannot be resolved
[ERROR] ApplicationRequestFactory cannot be resolved to a type
[ERROR] ApplicationMasterActivities cannot be resolved to a type
[ERROR] ApplicationDetailsActivities cannot be resolved to a type
[ERROR] ApplicationRequestFactory cannot be resolved to a type
[ERROR] ApplicationMasterActivities cannot be resolved to a type
[ERROR] ApplicationDetailsActivities cannot be resolved to a type
[ERROR] ApplicationRequestFactory cannot be resolved to a type
[ERROR] ApplicationMasterActivities cannot be resolved to a type
[ERROR] ApplicationDetailsActivities cannot be resolved to a type
[ERROR] ApplicationRequestFactory cannot be resolved to a type
[ERROR] ApplicationMasterActivities cannot be resolved to a type
[ERROR] ApplicationDetailsActivities cannot be resolved to a type
[ERROR] The import org.springsource.roo.extrack.client.managed cannot be resolved
[ERROR] ApplicationRequestFactory cannot be resolved to a type
[ERROR] The import org.springsource.roo.extrack.client.managed cannot be resolved
[ERROR] The import org.springsource.roo.extrack.client.managed cannot be resolved
[ERROR] The import org.springsource.roo.extrack.client.managed cannot be resolved
[ERROR] ScaffoldMobileActivities cannot be resolved to a type
[ERROR] ApplicationRequestFactory cannot be resolved to a type

The reason I say this is that the 'client.managed' package is a generated GWT package, and should generally have nothing to do with MongoDB. I'm not a GWT specialist personally, but the GWT add-on has been a challenge to work with for me.

MongoDB by itself with a Spring MVC project should work just fine.

If you still want to use GWT, make sure you do a mvn gwt:setup and a gwt:run (I think those are the commands) to generate and run the application, rather than a straight mvn tomcat:run. I don't think your project files are being updated properly.

Also, make sure you have a running mongod and that your connections in the database.properties file match the settings of the port / IP you're running mongo in. It assumes the default configuration of Mongo.