You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Kurt Huwig (JIRA)" <ji...@codehaus.org> on 2008/11/10 12:26:13 UTC
[jira] Created: (MEAR-95) Cannot set context-root to be the root
context
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
Reporter: Kurt Huwig
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
[jira] Updated: (MEAR-95) Cannot set context-root to be the root
context
Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MEAR-95?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stephane Nicoll updated MEAR-95:
--------------------------------
Fix Version/s: 2.3.3
> 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
> Reporter: Kurt Huwig
> 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
[jira] Commented: (MEAR-95) Cannot set context-root to be the root
context
Posted by "Michael Semb Wever (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MEAR-95?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=189358#action_189358 ]
Michael Semb Wever commented on MEAR-95:
----------------------------------------
With jboss-5 at least
<context-root>/ROOT</context-root>
works. I guess this means it would work with tomcat too.
> 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
>
> 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
[jira] Closed: (MEAR-95) Cannot set context-root to be the root
context
Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
[ 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
[jira] Updated: (MEAR-95) Cannot set context-root to be the root
context
Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MEAR-95?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stephane Nicoll updated MEAR-95:
--------------------------------
Affects Version/s: 2.0
> 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
> 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
[jira] Updated: (MEAR-95) Cannot set context-root to be the root
context
Posted by "Stephane Nicoll (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MEAR-95?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stephane Nicoll updated MEAR-95:
--------------------------------
Fix Version/s: (was: 2.3.3)
> 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
>
> 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