Results 1 to 4 of 4

Thread: Could not load domain mapping for context

Hybrid View

  1. #1
    Join Date
    Dec 2012
    Posts
    2

    Default 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

    log.roo.txt

  2. #2
    Join Date
    Dec 2012
    Posts
    4

    Default

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

    Default

    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.

  4. #4
    Join Date
    Dec 2012
    Posts
    4

    Default

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

Posting Permissions

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