Hi all,

I'm realizing a webapp using Spring 3.x and GWT 2.0 with deployment
supported by Maven (I use Spring IOC and MVC).
The structure of my project is as follow:

- src
   -main
      -java
         -com.ecp.gwt
             -Weather.gwt.xml
         -com.ecp.gwt.client
             -WeatherClient.java
         -com.ecp.service
             -WeatherService.java
             -WeatherServiceAsync.java
         -com.ecp.service.impl
             -WeatherServiceImpl.java
     -webapp
         -WEB-INF
             -applicationContext.xml
             -myApp-servlet.xml
             -web.xml
 -war
 -pom.xml


My WeatherClient (the entry point) references classes
WeatherService*.java in order to make RPC calls
My pom.xml file configuration in short (skiping dependencies and other
stuffs):

<properties>
   <gwt.version>2.0.2</gwt.version>
   <maven.compiler.source>1.6</maven.compiler.source>
   <maven.compiler.target>1.6</maven.compiler.target>
</properties>

 <build>
   <finalName>myApp</finalName>
       <outputDirectory>war/WEB-INF/classes</outputDirectory>
       <plugins>
      <plugin>
       <groupId>org.codehaus.mojo</groupId>
       <artifactId>gwt-maven-plugin</artifactId>
       <version>1.2</version>
       <executions>
           <execution>
                   <configuration>
                     <servicePattern>**/gwt/**/*Service.java</
servicePattern>
                   </configuration>
               <goals>
                       <goal>compile</goal>
               </goals>
           </execution>
       </executions>
       <configuration>
         <runTarget>com.ecp.gwt.Weather/Weather.html</runTarget>
       </configuration>
     </plugin>

           <plugin>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-compiler-plugin</artifactId>
             <version>2.0.2</version>
             <configuration>
               <source>${maven.compiler.source}</source>
               <target>${maven.compiler.target}</target>
               <warSourceDirectory>war</warSourceDirectory>
               <webXml>src/main/webapp/WEB-INF/web.xml</webXml>
             </configuration>
           </plugin>
       </plugins>

       <resources>
     <resource>
        <directory>src/main/java</directory>
        <includes>
           <include>**/client/**</include>
           <include>**/*.gwt.xml</include>
        </includes>
     </resource>
  </resources>
 </build>

I have the following stacktrace while launching "mvn clean install"
that I couldn't fix the all day:

[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building myApp Webapp
[INFO]
[INFO] Id: com.ecp:myApp:war:0.0.1-SNAPSHOT
[INFO] task-segment: [clean, install]
[INFO]
------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory /home/ludovic/workspace/myApp_0_0_1/target
[INFO] Deleting directory /home/ludovic/workspace/myApp_0_0_1/war/WEB-
INF/classes
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 110 source files to /home/ludovic/workspace/
myApp_0_0_1/war/WEB-INF/classes
[INFO] [gwt:compile]
[INFO] using GWT jars from project dependencies : 2.0.2
[INFO] auto discovered modules [com.ecp.gwt.Weather]
[INFO] establishing classpath list (scope = compile)
[INFO] Compiling module com.ecp.gwt.Weather
[INFO]    Validating newly compiled units
[INFO]       [ERROR] Errors in 'file:/home/ludovic/workspace/
myApp_0_0_1/src/main/java/com/ecp/gwt/client/WeatherClient.java'
[INFO]          [ERROR] Line 44: No source code is available for type
com.ecp.manager.WeatherManagerAsync; did you forget to inherit a
required module?
[INFO]          [ERROR] Line 44: No source code is available for type
com.ecp.manager.impl.WeatherManagerImpl; did you forget to inherit a
required module?
[INFO]          [ERROR] Line 46: No source code is available for type
com.ecp.business.Weather; did you forget to inherit a required module?
[INFO]    Finding entry point classes
[INFO]       [ERROR] Unable to find type
'com.ecp.gwt.client.WeatherClient'
[INFO]          [ERROR] Hint: Previous compiler errors may have made
this type unavailable
[INFO]          [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]

I'm sure the error is in the pom.xml configuration but I could not
find it. Can anyone help me or forward me to a forum?

Thanks in advance.

Ludovic

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to