Announcement Announcement Module
No announcement yet.
Could not load domain mapping for context Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Could not load domain mapping for context


    I've just set up a new multi-module project with Spring Roo 1.2.3 (see log.roo). I've had to update the GwtView module's pom.xml with this dependency:

    So, I have a Core module which holds the business logic and a GwtView module for presentation. The latter is set up with these commands to use GWT.

    web gwt setup
    web gwt all --proxyPackage ~.client.proxy --requestPackage ~.client.request
    mvn gwt:run
    I get the following error when trying to run the app:

    "Add @SuppressWarnings("requestfactory") to dismiss.
    error: Could not load domain mapping for context FooRequest.
    Check that both the shared interfaces and server domain types are on the classpath.
    1 error"

    Could you please help me with this?

    Thanks in advance!

    Attached Files

  • #2
    I am getting the exact same issue as well.
    Please do post if you figure out a way! I am researching as well and would post if I get past.
    I use Roo 1.2.2 and Reverse engineered Oracle 11G Table using Hibernate from Roo Console itself with "database reverse...." command.
    And it stops me exact same place as you are...


    • #3
      Scope system is obviously wrong, it is used to ovveride jdk libraries.You should use scope compile and remove SystemPath.

      If you are not familiar with maven I encourage you to read a little about it, Multi project with roo and Gwt are not that easy too setup, you will need at least a basic understanding of maven.


      • #4
        I am not using a Multi Project. Mine is rather very simple setup.
        A single Project with a POM and reverse engineered only one DB Table from Spring Roo.
        When I setup and run a simple MVC Project (Roo commands below), everything works perfect
        web mvc setup
        web mvc all --package ~.web
        But then, when I setup the GWT Project (Roo Commands below), it fails even while building
        web gwt setup
        web gwt all --proxyPackage ~.client.proxy --requestPackage ~.client.request

        I have Oracle 11G, and my JPA setup command was,
        jpa setup --provider HIBERNATE --database ORACLE

        Any help would be highly appreciated...