[jboss-cvs] JBossAS SVN: r84127 - branches/Branch_5_0/webservices/src/main/org/jboss/wsf/container/jboss50/transport.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Feb 12 11:33:04 EST 2009


Author: richard.opalka at jboss.com
Date: 2009-02-12 11:33:04 -0500 (Thu, 12 Feb 2009)
New Revision: 84127

Modified:
   branches/Branch_5_0/webservices/src/main/org/jboss/wsf/container/jboss50/transport/DynamicEndpointDeploymentAspect.java
Log:
[JBAS-6496] propagate Module in deployment as well

Modified: branches/Branch_5_0/webservices/src/main/org/jboss/wsf/container/jboss50/transport/DynamicEndpointDeploymentAspect.java
===================================================================
--- branches/Branch_5_0/webservices/src/main/org/jboss/wsf/container/jboss50/transport/DynamicEndpointDeploymentAspect.java	2009-02-12 14:57:29 UTC (rev 84126)
+++ branches/Branch_5_0/webservices/src/main/org/jboss/wsf/container/jboss50/transport/DynamicEndpointDeploymentAspect.java	2009-02-12 16:33:04 UTC (rev 84127)
@@ -26,6 +26,8 @@
 
 import javax.xml.ws.WebServiceException;
 
+import org.jboss.classloading.spi.dependency.ClassLoading;
+import org.jboss.classloading.spi.dependency.Module;
 import org.jboss.deployers.client.plugins.deployment.AbstractDeployment;
 import org.jboss.deployers.client.spi.DeployerClient;
 import org.jboss.deployers.client.spi.DeploymentFactory;
@@ -34,10 +36,10 @@
 import org.jboss.deployers.structure.spi.DeploymentUnit;
 import org.jboss.logging.Logger;
 import org.jboss.metadata.web.jboss.JBossWebMetaData;
-import org.jboss.wsf.container.jboss50.deployment.tomcat.WebMetaDataModifier;
 import org.jboss.wsf.spi.deployment.Deployment;
 import org.jboss.wsf.spi.deployment.DeploymentAspect;
 import org.jboss.wsf.spi.deployment.WSFDeploymentException;
+import org.jboss.wsf.container.jboss50.deployment.tomcat.WebMetaDataModifier;
 
 /**
  * Deploy the generated webapp to JBoss
@@ -85,6 +87,7 @@
          mutableAttachments.addAttachment("org.jboss.web.explicitDocBase", "/", String.class);
          mutableAttachments.addAttachment(ClassLoaderFactory.class, new ContextClassLoaderFactory(epLoader));
          mutableAttachments.addAttachment(JBossWebMetaData.class, jbwmd);
+         mutableAttachments.addAttachment(Module.class, ClassLoading.getModuleForClassLoader(epLoader));
          mainDeployer.deploy(deployment);
          
          deployments.put(contextRoot, deployment);
@@ -113,6 +116,7 @@
    private AbstractDeployment createSimpleDeployment(String name)
    {
       AbstractDeployment unit = new AbstractDeployment(name);
+      // There is one top level deployment
       factory.addContext(unit, "");
       return unit;
    }




More information about the jboss-cvs-commits mailing list