[jboss-jira] [JBoss JIRA] Created: (JBAS-7515) Wrong URL property in AbstractWarDeployment

Brian Stansberry (JIRA) jira-events at lists.jboss.org
Fri Dec 4 16:32:29 EST 2009


Wrong URL property in AbstractWarDeployment
-------------------------------------------

                 Key: JBAS-7515
                 URL: https://jira.jboss.org/jira/browse/JBAS-7515
             Project: JBoss Application Server
          Issue Type: Sub-task
      Security Level: Public (Everyone can see)
            Reporter: Brian Stansberry
            Assignee: Andrew Lee Rubinger
             Fix For: JBossAS-6.0.0.M2


As we discussed, looks like an inadvertent incorrect URL value got introduced; the 6.0.0.M1 value is correct.

Index: org/jboss/web/deployers/AbstractWarDeployment.java
===================================================================
--- org/jboss/web/deployers/AbstractWarDeployment.java	(.../tags/JBoss_6_0_0_M1/server/src/main)	(revision 97312)
+++ org/jboss/web/deployers/AbstractWarDeployment.java	(.../trunk/server/src/main/java)	(revision 97312)
@@ -37,7 +37,6 @@
 import javax.naming.NamingException;
 
 import org.jboss.beans.metadata.api.annotations.Inject;
-import org.jboss.bootstrap.api.as.config.JBossASServerConfig;
 import org.jboss.deployers.structure.spi.DeploymentUnit;
 import org.jboss.deployers.structure.spi.main.MainDeployerStructure;
 import org.jboss.deployers.vfs.spi.structure.VFSDeploymentUnit;
@@ -69,9 +68,10 @@
 import org.jboss.security.ISecurityManagement;
 import org.jboss.security.SecurityConstants;
 import org.jboss.security.authorization.PolicyRegistration;
-import org.jboss.virtual.VFSUtils;
 import org.jboss.web.WebApplication;
 import org.jboss.wsf.spi.deployment.UnifiedVirtualFile;
+import org.jboss.virtual.VFSUtils;
+import org.jboss.bootstrap.spi.as.config.JBossASServerConfig;
 import org.omg.CORBA.ORB;
 
 /**
@@ -85,7 +85,7 @@
 - performUndeploy(WebApplication webApp, String warUrl) to remove the application
 corresponding to the WebApplication data. This is called when the
 AbstractWarDeployment is stopped.
-
+ 
 The one thing to be aware of is the relationship between the thread context
 class loader and the JNDI ENC context. Any method that attempts to access
 the JNDI ENC context must have the ClassLoader in the WebApplication returned
@@ -169,7 +169,7 @@
     */
    public static String shortWarUrlFromServerHome(String warUrl)
    {
-      String serverHomeUrl = System.getProperty(JBossASServerConfig.PROP_KEY_JBOSSAS_SERVER_HOME_URL);
+      String serverHomeUrl = System.getProperty(JBossASServerConfig.PROP_KEY_JBOSSAS_HOME_URL);
 
       if (warUrl == null || serverHomeUrl == null)
          return warUrl;
@@ -348,7 +348,7 @@
 
    /**
     * Get the securityManagement.

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

        



More information about the jboss-jira mailing list