I don't know if that's your case, but that error occurred to me when I
forgot to define my app module, something like:
<compileTargets>
<value>org.myapp.MyModule</value>
</compileTargets>
The full picture:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<!-- the merged web.xml from gwt plugin compilation -->
<webXml>target/web.xml</webXml>
<warSourceExcludes>.gwt-tmp/**</warSourceExcludes>
</configuration>
</plugin>
<plugin>
<groupId>com.totsp.gwt</groupId>
<artifactId>maven-googlewebtoolkit2-plugin</artifactId>
<version>2.0-beta24</version>
<configuration>
<compileTargets>
<value>org.myapp.MyModule</value>
</compileTargets>
<runTarget>org.myapp.MyModule/MyModule.html</runTarget>
<extraJvmArgs>-Xmx256m</extraJvmArgs>
<gwtVersion>${gwtVersion}</gwtVersion>
</configuration>
<executions>
<execution>
<goals>
<goal>mergewebxml</goal>
<goal>compile</goal>
<goal>gwt</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
On Nov 5, 1:34 pm, "Ian Christian" <[EMAIL PROTECTED]> wrote:
> Can anyone help me track this down?
>
> I've been trying to figure this out for quite a while, and failed miserably!
>
> Using 2.0-beta24 of maven-googlewebtoolkit2-plugin, and gwt 1.5.3
>
> # mvn test -e
> [INFO] copy source web.xml -
> /home/pookey/src/nosp/timico-gwt/src/main/webapp/WEB-INF/web.xml to build
> dir (source web.xml required if mergewebxml execution is enabled)
> [INFO] establishing classpath list (buildClaspathList - scope = COMPILE)
> [INFO] google.webtoolkit.home (gwtHome) *not* set, using project POM for GWT
> dependencies
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Unable to merge web.xml
>
> Embedded error: module file null
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Unable to merge
> web.xml
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583)
>
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
>
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
>
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
>
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
>
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
>
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to merge
> web.xml
> at
> com.totsp.mavenplugin.gwt.MergeWebXmlMojo.execute(MergeWebXmlMojo.java:103)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
>
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
>
> ... 16 more
> Caused by: org.apache.maven.plugin.MojoExecutionException: module file null
> at
> com.totsp.mavenplugin.gwt.MergeWebXmlMojo.execute(MergeWebXmlMojo.java:94)
> ... 18 more
>
> # cat /home/pookey/src/nosp/timico-gwt/src/main/webapp/WEB-INF/web.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app>
> <display-name>Timico NOSP</display-name>
>
> <!--
> Bit of a hack here due to the bug in the gwt maven support
>
> http://groups.google.com/group/gwt-maven/browse_thread/thread/20276da...
>
> And the fact that "mvn gwt:gwt" and "mvn package" do not include the
> web.xml as
> built by gwt:gwt and placed in target/web.xml. So hosted mode works but
> deploying as a war doesnt.
> After deployment in tomcat, uncomment the following section to make it
> work.
> Any ideas for fixes for next iteration much appreciated!
> -->
>
> <!--
> <servlet>
> <servlet-name>service</servlet-name>
> <servlet-class>com.shinetech.server.SampleServiceImpl</servlet-class>
> <load-on-startup>1</load-on-startup>
> </servlet>
>
> <servlet-mapping>
> <servlet-name>service</servlet-name>
> <url-pattern>/com.shinetech.SampleApp/service</url-pattern>
> </servlet-mapping>
> -->
>
> </web-app>
>
> Any help appreciated!
>
> Thanks,
>
> Ian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"gwt-maven" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/gwt-maven?hl=en
-~----------~----~----~----~------~----~------~--~---