[jboss-cvs] JBossAS SVN: r61651 - trunk/server/src/main/org/jboss/web/deployers.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sat Mar 24 00:47:02 EDT 2007


Author: scott.stark at jboss.org
Date: 2007-03-24 00:47:02 -0400 (Sat, 24 Mar 2007)
New Revision: 61651

Modified:
   trunk/server/src/main/org/jboss/web/deployers/AbstractWarDeployer.java
Log:
Correct the web app object name for the root context

Modified: trunk/server/src/main/org/jboss/web/deployers/AbstractWarDeployer.java
===================================================================
--- trunk/server/src/main/org/jboss/web/deployers/AbstractWarDeployer.java	2007-03-24 02:27:14 UTC (rev 61650)
+++ trunk/server/src/main/org/jboss/web/deployers/AbstractWarDeployer.java	2007-03-24 04:47:02 UTC (rev 61651)
@@ -561,6 +561,9 @@
    protected String getObjectName(WebMetaData metaData)
    {
       String ctxPath = metaData.getContextRoot();
+      // The ctx path value cannot be empty in the object name
+      if( ctxPath == null || ctxPath.length() == 0 )
+         ctxPath = "/";
       String objectName = "jboss.web.deployment:war="+ctxPath;
       return objectName;
    }




More information about the jboss-cvs-commits mailing list