You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Stephane Nicoll (JIRA)" <ji...@codehaus.org> on 2009/04/25 07:13:44 UTC

[jira] Closed: (MEAR-95) Cannot set context-root to be the root context

     [ http://jira.codehaus.org/browse/MEAR-95?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stephane Nicoll closed MEAR-95.
-------------------------------

      Assignee: Stephane Nicoll
    Resolution: Won't Fix

At first, I thought that setting an empty context would do the trick but reading the DTD a bit more showed that we can't do that. You must provide a value and I understand that the '/' trick may not work on any environment. 

Unless I am missing something, the spec does not provide any standard solution for this.

> Cannot set context-root to be the root context
> ----------------------------------------------
>
>                 Key: MEAR-95
>                 URL: http://jira.codehaus.org/browse/MEAR-95
>             Project: Maven 2.x Ear Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Kurt Huwig
>            Assignee: Stephane Nicoll
>             Fix For: 2.3.3
>
>
> If I set
>     <webModule>
>         <groupId>com.scooterattack.webshop</groupId>
>         <artifactId>webshop-war</artifactId>
>         <contextRoot></contextRoot>
>     </webModule>
> or
>     <webModule>
>         <groupId>com.scooterattack.webshop</groupId>
>         <artifactId>webshop-war</artifactId>
>         <contextRoot> </contextRoot>
>     </webModule>
> the context-root in application.xml is set to "webshop-war". If I set it to
>     <webModule>
>         <groupId>com.scooterattack.webshop</groupId>
>         <artifactId>webshop-war</artifactId>
>         <contextRoot>/</contextRoot>
>     </webModule>
> it is set to "/" and my application is the root application, but the URL upon netbeans-deploy is
>     http://localhost:8080//
> i.e. double "/" at the end.
> How can I properly configure a web-module in a EAR as the root application?

-- 
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