maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nigel Magnay" <nigel.mag...@gmail.com>
Subject Re: Poor man's web.xml merging
Date Tue, 07 Nov 2006 10:52:58 GMT
I think your merge.xml is required to have a context params section

e.g :

 <webXml>
    <contextParams>
      <strategy name="ChooseByName">
        <default>
          <strategy name="Preserve"/>
        </default>
        <choice name="contextConfigLocation">
          <strategy name="NodeMerge">
            <context-param>
              <param-name>$left:param-name</param-name>
              <param-value>$left:param-value $right:param-value</param-value>
            </context-param>
          </strategy>
        </choice>
      </strategy>
    </contextParams>

  </webXml>


On 07/11/06, Arnaud Bailly <abailly@oqube.com> wrote:
>
> Ouuup !
>
> [INFO] [cargo:uberwar]
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Exception merging web.xml
>
> [INFO]
> ------------------------------------------------------------------------
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Exception merging
> web.xml
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:559)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
> (DefaultLifecycleExecutor.java:475)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal
> (DefaultLifecycleExecutor.java:454)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
> (DefaultLifecycleExecutor.java:306)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> DefaultLifecycleExecutor.java:273)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> DefaultLifecycleExecutor.java:140)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
>         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:585)
>         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: Exception
> merging web.xml
>         at org.codehaus.cargo.maven2.UberWarMojo.doWebXmlMerge(
> UberWarMojo.java:214)
>         at org.codehaus.cargo.maven2.UberWarMojo.execute(UberWarMojo.java
> :169)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> DefaultPluginManager.java:412)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:534)
>         ... 16 more
> Caused by: java.lang.NullPointerException
>         at org.codehaus.cargo.maven2.UberWarMojo.doWebXmlMerge(
> UberWarMojo.java:208)
>         ... 19 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 7 seconds
> [INFO] Finished at: Tue Nov 07 10:55:44 CET 2006
> [INFO] Final Memory: 5M/11M
> [INFO]
> ------------------------------------------------------------------------
>
> Here is my merge.xml:
>
> <uberwar>
>
>   <wars>
>     <war>toto:tutu-web</war>
>     <war>toto:tutu-testui</war>
>   </wars>
>
> </uberwar>
>
>
> --
> OQube < software engineering \ génie logiciel >
> Arnaud Bailly, Dr.
> \web> http://www.oqube.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message