Results 1 to 2 of 2

Thread: examples with mongodb

  1. #1
    Join Date
    Jul 2012
    Posts
    7

    Default examples with mongodb cannot creates classes

    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 at 08:52 AM.

  2. #2
    Join Date
    Jun 2008
    Location
    Philadelphia, PA, USA
    Posts
    212

    Default

    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.
    Ken Rimple
    Chariot Solutions
    email: krimple@chariotsolutions.com
    work: www.chariotsolutions.com/education
    personal: www.rimple.com

    Author: Spring Roo in Action (Manning)
    MEAP Site: manning.com/rimple

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •