gemire / daofusion

Automatically exported from code.google.com/p/daofusion
0 stars 1 forks source link

Compilation error #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi!
I'm trying to make DAO in my project based on DAO Fusion.
I've tried the hello-dao tutotrial, but I've recieved the compilation error:

 Scanning for additional dependencies: file:/E:/WS/App/src/main/java/ru/app/client/ui/data/datasources/VersionDataSource.java
      Computing all possible rebind results for 'ru.app.client.services.projectinfo.VersionService'
         Rebinding ru.app.client.services.projectinfo.VersionService
            Checking rule <generate-with class='com.google.gwt.inject.rebind.GinjectorGenerator'/>
               [ERROR] Errors in 'file:/E:/WS/App/src/main/java/ru/app/client/services/GridService.java'
                  [ERROR] Line 9: No source code is available for type com.anasoft.os.daofusion.cto.client.CriteriaTransferObject; did you forget to inherit a required module?
               [ERROR] Unable to find type 'ru.app.client.services.projectinfo.VersionService'
                  [ERROR] Hint: Previous compiler errors may have made this type unavailable
                  [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly
   [ERROR] Errors in 'file:/E:/WS/App/src/main/java/ru/app/client/ui/data/datasources/VersionDataSource.java'
      [ERROR] Line 26:  Failed to resolve 'ru.app.client.services.projectinfo.VersionService' via deferred binding
   [ERROR] Cannot proceed due to previous errors

Sources for App.gwt.xml:
<source path='client' />
<source path='shared' />
<source path='com/anasoft/os/daofusion/cto/client' />

Line 9 in GridService:
ResultSet<DTO> fetch(CriteriaTransferObject cto) throws DeanServicesException;
Line 26 in VersionDataSource:
public static final VersionServiceAsync service = 
GWT.create(VersionService.class);

What can be the reason of this problem and how I can resolve it?

Regards,
Tatyana

Original issue reported on code.google.com by mahpe...@gmail.com on 20 Feb 2012 at 9:29

GoogleCodeExporter commented 9 years ago
Add: 
in pom.xml:
<daofusion-version>1.2.0</daofusion-version>
<dependency>
    <groupId>com.anasoft.os</groupId>
    <artifactId>daofusion-core</artifactId>
    <version>${daofusion-version}</version>
    <classifier>sources</classifier>
    <scope>provided</scope>
</dependency>

Original comment by mahpe...@gmail.com on 20 Feb 2012 at 9:48