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

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Feb 4 13:31:42 EST 2009


Author: alesj
Date: 2009-02-04 13:31:42 -0500 (Wed, 04 Feb 2009)
New Revision: 83863

Modified:
   trunk/server/src/main/org/jboss/web/deployers/AbstractWarDeployment.java
Log:
Fix how we determine if we need an exploded copy.

Modified: trunk/server/src/main/org/jboss/web/deployers/AbstractWarDeployment.java
===================================================================
--- trunk/server/src/main/org/jboss/web/deployers/AbstractWarDeployment.java	2009-02-04 18:24:14 UTC (rev 83862)
+++ trunk/server/src/main/org/jboss/web/deployers/AbstractWarDeployment.java	2009-02-04 18:31:42 UTC (rev 83863)
@@ -70,6 +70,7 @@
 import org.jboss.security.authorization.PolicyRegistration;
 import org.jboss.web.WebApplication;
 import org.jboss.wsf.spi.deployment.UnifiedVirtualFile;
+import org.jboss.virtual.VFSUtils;
 import org.omg.CORBA.ORB;
 
 /**
@@ -431,7 +432,10 @@
          // Get the war URL
          URL warUrl = unit.getAttachment("org.jboss.web.expandedWarURL", URL.class);
          if (warUrl == null && unit instanceof VFSDeploymentUnit)
-            warUrl = ((VFSDeploymentUnit)unit).getRoot().toURL();
+         {
+            VFSDeploymentUnit vdu = VFSDeploymentUnit.class.cast(unit);
+            warUrl = VFSUtils.getRealURL(vdu.getRoot());
+         }
 
          // Dynamic WebMetaData deployments might not provide an URL
          // We use the DEploymentUnit name as identifier instead.




More information about the jboss-cvs-commits mailing list