Announcement Announcement Module
Collapse
No announcement yet.
examples with mongodb Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • examples with mongodb

    Hi All,

    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

    ...

    Do I need to set anything for mongodb?

    thx
    Zamek
    Last edited by zamek42; Sep 22nd, 2012, 08:52 AM.

  • #2
    How attached to GWT are you for experimenting with Mongo?

    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.

    Comment

    Working...
    X