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

  • Could not load domain mapping for context

    Hi,

    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:

    Code:
    <dependency>
                <groupId>com.company.rootest.core</groupId>
                <artifactId>Core</artifactId>
                <version>0.1.0.BUILD-SNAPSHOT</version>
                <scope>system</scope>
                <systemPath>../Core/target/Core-0.1.0.BUILD-SNAPSHOT.jar</systemPath>
             </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.

    Code:
    web gwt setup
    web gwt all --proxyPackage ~.client.proxy --requestPackage ~.client.request
    Code:
    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!
    Miklós

    Attachment
    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...

    Comment


    • #3
      Hi,
      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.

      Comment


      • #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...

        Comment

        Working...
        X