[ http://jira.codehaus.org/browse/MGWT-182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=213333#action_213333 ]
Ludovic JEANSON commented on MGWT-182: -------------------------------------- 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): {code:xml} <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>**/*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> {code} I have the following stacktrace while launching "mvn clean install" that I couldn't fix the all day: {noformat} [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.WeatherServiceAsync; did you forget to inherit a required module? [INFO] [ERROR] Line 44: No source code is available for type com.ecp.manager.impl.WeatherServiceImpl; 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] {noformat} If I move Weather.java, WeatherService.java and WeatherServiceAsync.java to the package com.ecp.gwt.client, it works fine. That's why I think there is a configuration in my pom.xml that I forgot. Thanks, Ludovic > Using Maven plugin with spring 3.x results in "No source code is available > for type ...; did you forget to inherit a required module?" while compiling > ------------------------------------------------------------------------------------------------------------------------------------------------------ > > Key: MGWT-182 > URL: http://jira.codehaus.org/browse/MGWT-182 > Project: Maven 2.x GWT Plugin > Issue Type: Bug > Affects Versions: 1.2 > Environment: Ubuntu 9.10 > Eclipse 3.5 > Spring 3.x > Maven 2.x > Reporter: Ludovic JEANSON > Priority: Minor > > 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): > {code:xml} > <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> > {code} > I have the following stacktrace while launching "mvn clean install" that I > couldn't fix the all day: > {noformat} > [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] > {noformat} > 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 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email