[jboss-jira] [JBoss JIRA] Commented: (JBAS-4282) Can't create a root context web app

Remy Maucherat (JIRA) jira-events at lists.jboss.org
Thu Jul 10 12:43:26 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBAS-4282?page=comments#action_12420863 ] 
            
Remy Maucherat commented on JBAS-4282:
--------------------------------------

At the moment, trying to override an existing web mapping will give a clean deployment error. I was not aware existing webapps could be silently replaced in earlier versions, which seems like questionable behavior to me (I suppose replaced webapps would not be undeployed), so I have no plans to fix this jira.

At the moment, you have to either use <context-root/> in  or name your WAR or folder ROOT.war.

> Can't create a root context web app
> -----------------------------------
>
>                 Key: JBAS-4282
>                 URL: http://jira.jboss.com/jira/browse/JBAS-4282
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Web (Tomcat) service
>    Affects Versions: JBossAS-5.0.0.Beta2
>            Reporter: Stan Silvert
>         Assigned To: Remy Maucherat
>
> I am unable to deploy a web app as root context using the instructions here:
> http://wiki.jboss.org/wiki/Wiki.jsp?page=SetupARootContextApp
> One thing that is unclear is if ROOT.war "must" be removed from /deploy.  In 4.2, root context web apps do not require removal of ROOT.war.  IMHO, this is how it should work.  If you deploy a WAR as the root context, it should simply override whatever was there before.
> If ROOT.war is removed, 5.0 will allow a root context web app as long as it is deployed from an EAR and specified as such in application.xml.  Otherwise, it will fail.
> If you choose to deploy a stand-alone WAR and specify it as root context using jboss-web.xml, it will always fail - regardless of whether or not you remove ROOT.war.
> I have committed a test for root deployment in both 4.2 and 5.0.  The test passes in 4.2, but not in 5.0.  You can run it with:
> build one-test -Dtest=org.jboss.test.web.test.RootContextUnitTestCase

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list