[jbossws-commits] JBossWS SVN: r3868 - in branches/tdiesler/trunk/integration: jboss42/src/main/resources/jbossws-jboss42.sar and 5 other directories.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Thu Jul 12 19:01:35 EDT 2007


Author: thomas.diesler at jboss.com
Date: 2007-07-12 19:01:35 -0400 (Thu, 12 Jul 2007)
New Revision: 3868

Added:
   branches/tdiesler/trunk/integration/jboss42/src/main/resources/jbossws-jboss42.sar/jbossws.beans/META-INF/jbossws-container-config.xml
Removed:
   branches/tdiesler/trunk/integration/jboss42/src/main/resources/jbossws-jboss42.sar/jbossws-deployer.beans/
   branches/tdiesler/trunk/integration/native/src/main/resources/jbossws-native.sar/
Modified:
   branches/tdiesler/trunk/integration/jboss42/src/main/java/org/jboss/wsf/container/jboss42/AbstractDeployerHook.java
   branches/tdiesler/trunk/integration/jboss42/src/main/java/org/jboss/wsf/container/jboss42/ArchiveDeployerHook.java
   branches/tdiesler/trunk/integration/jboss42/src/main/java/org/jboss/wsf/container/jboss42/MainDeployerHook.java
   branches/tdiesler/trunk/integration/jboss42/src/main/java/org/jboss/wsf/container/jboss42/ModifyWebMetaDataDeploymentAspect.java
   branches/tdiesler/trunk/integration/jboss42/src/main/java/org/jboss/wsf/container/jboss42/WebAppDeploymentAspect.java
   branches/tdiesler/trunk/integration/jboss42/src/main/resources/jbossws-jboss42.sar/jbossws.beans/META-INF/jboss-beans.xml
   branches/tdiesler/trunk/integration/jboss50/src/main/java/org/jboss/wsf/container/jboss50/WebAppDeploymentAspect.java
   branches/tdiesler/trunk/integration/native/build.xml
   branches/tdiesler/trunk/integration/spi/src/main/java/org/jboss/wsf/spi/deployment/BasicDeploymentAspectManager.java
   branches/tdiesler/trunk/integration/spi/src/main/java/org/jboss/wsf/spi/deployment/BasicLifecycleHandler.java
   branches/tdiesler/trunk/integration/spi/src/main/java/org/jboss/wsf/spi/deployment/DeploymentAspect.java
   branches/tdiesler/trunk/integration/spi/src/main/java/org/jboss/wsf/spi/deployment/WebXMLRewriter.java
Log:


Modified: branches/tdiesler/trunk/integration/jboss42/src/main/java/org/jboss/wsf/container/jboss42/AbstractDeployerHook.java
===================================================================
--- branches/tdiesler/trunk/integration/jboss42/src/main/java/org/jboss/wsf/container/jboss42/AbstractDeployerHook.java	2007-07-12 21:32:14 UTC (rev 3867)
+++ branches/tdiesler/trunk/integration/jboss42/src/main/java/org/jboss/wsf/container/jboss42/AbstractDeployerHook.java	2007-07-12 23:01:35 UTC (rev 3868)
@@ -33,12 +33,11 @@
 import org.jboss.mx.util.MBeanProxy;
 import org.jboss.mx.util.MBeanProxyCreationException;
 import org.jboss.mx.util.MBeanServerLocator;
-import org.jboss.wsf.container.jboss42.DeployerHook;
-import org.jboss.wsf.container.jboss42.DeployerInterceptorMBean;
-import org.jboss.wsf.spi.deployment.DeploymentAspectManager;
+import org.jboss.wsf.spi.deployment.BasicDeployment;
+import org.jboss.wsf.spi.deployment.BasicEndpoint;
 import org.jboss.wsf.spi.deployment.Deployment;
+import org.jboss.wsf.spi.deployment.DeploymentAspectManager;
 import org.jboss.wsf.spi.deployment.Endpoint;
-import org.jboss.wsf.spi.deployment.Service;
 import org.jboss.wsf.spi.deployment.WSDeploymentException;
 
 /**
@@ -52,16 +51,15 @@
    // provide logging
    protected final Logger log = Logger.getLogger(getClass());
 
-   protected DeploymentAspectManager deployerManager;
+   protected DeploymentAspectManager deploymentAspectManager;
    private List<ObjectName> phaseOneInterceptors;
    private List<ObjectName> phaseTwoInterceptors;
-   private String deploymentClass;
-   private String serviceClass;
-   private String endpointClass;
+   private String deploymentClass = BasicDeployment.class.getName();
+   private String endpointClass = BasicEndpoint.class.getName();
 
-   public void setDeployerManager(DeploymentAspectManager deploymentManager)
+   public void setDeploymentAspectManager(DeploymentAspectManager manager)
    {
-      this.deployerManager = deploymentManager;
+      this.deploymentAspectManager = manager;
    }
 
    public void setDeploymentClass(String deploymentClass)
@@ -74,11 +72,6 @@
       this.endpointClass = endpointClass;
    }
 
-   public void setServiceClass(String serviceClass)
-   {
-      this.serviceClass = serviceClass;
-   }
-
    public Deployment createDeployment()
    {
       try
@@ -93,20 +86,6 @@
       }
    }
 
-   public Service createService()
-   {
-      try
-      {
-         ClassLoader loader = Thread.currentThread().getContextClassLoader();
-         Class<?> clazz = loader.loadClass(serviceClass);
-         return (Service)clazz.newInstance();
-      }
-      catch (Exception ex)
-      {
-         throw new WSDeploymentException("Cannot load Service class: " + serviceClass);
-      }
-   }
-
    public Endpoint createEndpoint()
    {
       try

Modified: branches/tdiesler/trunk/integration/jboss42/src/main/java/org/jboss/wsf/container/jboss42/ArchiveDeployerHook.java
===================================================================
--- branches/tdiesler/trunk/integration/jboss42/src/main/java/org/jboss/wsf/container/jboss42/ArchiveDeployerHook.java	2007-07-12 21:32:14 UTC (rev 3867)
+++ branches/tdiesler/trunk/integration/jboss42/src/main/java/org/jboss/wsf/container/jboss42/ArchiveDeployerHook.java	2007-07-12 23:01:35 UTC (rev 3868)
@@ -94,7 +94,7 @@
             dep.getContext().addAttachment(DeploymentInfo.class, unit);
          }
 
-         deployerManager.deploy(dep);
+         deploymentAspectManager.deploy(dep);
          unit.context.put(Deployment.class, dep);
       }
    }
@@ -108,7 +108,7 @@
       if (dep != null)
       {
          log.debug("undeploy: " + unit.shortName);
-         deployerManager.undeploy(dep);
+         deploymentAspectManager.undeploy(dep);
          unit.context.remove(Deployment.class);
       }
    }

Modified: branches/tdiesler/trunk/integration/jboss42/src/main/java/org/jboss/wsf/container/jboss42/MainDeployerHook.java
===================================================================
--- branches/tdiesler/trunk/integration/jboss42/src/main/java/org/jboss/wsf/container/jboss42/MainDeployerHook.java	2007-07-12 21:32:14 UTC (rev 3867)
+++ branches/tdiesler/trunk/integration/jboss42/src/main/java/org/jboss/wsf/container/jboss42/MainDeployerHook.java	2007-07-12 23:01:35 UTC (rev 3868)
@@ -43,7 +43,7 @@
       Deployment dep = (Deployment)unit.context.get(Deployment.class);
       if (dep != null)
       {
-         deployerManager.deploy(dep);
+         deploymentAspectManager.deploy(dep);
       }
    }
 
@@ -55,7 +55,7 @@
       Deployment dep = (Deployment)unit.context.get(Deployment.class);
       if (dep != null)
       {
-         deployerManager.undeploy(dep);
+         deploymentAspectManager.undeploy(dep);
       }
    }
 }

Modified: branches/tdiesler/trunk/integration/jboss42/src/main/java/org/jboss/wsf/container/jboss42/ModifyWebMetaDataDeploymentAspect.java
===================================================================
--- branches/tdiesler/trunk/integration/jboss42/src/main/java/org/jboss/wsf/container/jboss42/ModifyWebMetaDataDeploymentAspect.java	2007-07-12 21:32:14 UTC (rev 3867)
+++ branches/tdiesler/trunk/integration/jboss42/src/main/java/org/jboss/wsf/container/jboss42/ModifyWebMetaDataDeploymentAspect.java	2007-07-12 23:01:35 UTC (rev 3868)
@@ -23,10 +23,9 @@
 
 //$Id: ModifyWebMetaDataDeployer.java 3772 2007-07-01 19:29:13Z thomas.diesler at jboss.com $
 
-import org.jboss.wsf.spi.deployment.DeploymentAspect;
 import org.jboss.wsf.spi.deployment.Deployment;
+import org.jboss.wsf.spi.deployment.DeploymentAspect;
 import org.jboss.wsf.spi.deployment.Endpoint;
-import org.jboss.wsf.spi.deployment.UnifiedDeploymentInfo;
 import org.jboss.wsf.spi.deployment.WebAppDesciptorModifier;
 import org.jboss.wsf.spi.deployment.WebXMLRewriter;
 
@@ -47,10 +46,6 @@
 
    public void create(Deployment dep)
    {
-      UnifiedDeploymentInfo udi = dep.getContext().getAttachment(UnifiedDeploymentInfo.class);
-      if (udi == null)
-         throw new IllegalStateException("Cannot obtain unified deployement info");
-
       WebAppDesciptorModifier.RewriteResults results = webXMLRewriter.rewriteWebXml(dep);
 
       // The endpoint may not have a target bean when 

Modified: branches/tdiesler/trunk/integration/jboss42/src/main/java/org/jboss/wsf/container/jboss42/WebAppDeploymentAspect.java
===================================================================
--- branches/tdiesler/trunk/integration/jboss42/src/main/java/org/jboss/wsf/container/jboss42/WebAppDeploymentAspect.java	2007-07-12 21:32:14 UTC (rev 3867)
+++ branches/tdiesler/trunk/integration/jboss42/src/main/java/org/jboss/wsf/container/jboss42/WebAppDeploymentAspect.java	2007-07-12 23:01:35 UTC (rev 3868)
@@ -59,30 +59,33 @@
 
    public void create(Deployment dep)
    {
-      UnifiedDeploymentInfo udi = dep.getContext().getAttachment(UnifiedDeploymentInfo.class);
-      if (udi == null)
-         throw new IllegalStateException("Cannot obtain unified deployement info");
+      if (dep.getType().toString().endsWith("EJB21") || dep.getType().toString().endsWith("EJB3"))
+      {
+         UnifiedDeploymentInfo udi = dep.getContext().getAttachment(UnifiedDeploymentInfo.class);
+         if (udi == null)
+            throw new IllegalStateException("Cannot obtain unified deployement info");
 
-      URL warURL = udi.webappURL;
+         URL warURL = udi.webappURL;
 
-      log.debug("publishServiceEndpoint: " + warURL);
-      try
-      {
-         DeploymentInfo di = dep.getContext().getAttachment(DeploymentInfo.class);
-         if (di == null)
-            throw new IllegalStateException("Cannot obtain DeploymentInfo from context");
+         log.debug("publishServiceEndpoint: " + warURL);
+         try
+         {
+            DeploymentInfo di = dep.getContext().getAttachment(DeploymentInfo.class);
+            if (di == null)
+               throw new IllegalStateException("Cannot obtain DeploymentInfo from context");
 
-         webXMLRewriter.rewriteWebXml(dep);
+            webXMLRewriter.rewriteWebXml(dep);
 
-         // Preserve the repository config
-         DeploymentInfo auxdi = new DeploymentInfo(warURL, null, MBeanServerLocator.locateJBoss());
-         auxdi.repositoryConfig = di.getTopRepositoryConfig();
-         getMainDeployer().deploy(auxdi);
+            // Preserve the repository config
+            DeploymentInfo auxdi = new DeploymentInfo(warURL, null, MBeanServerLocator.locateJBoss());
+            auxdi.repositoryConfig = di.getTopRepositoryConfig();
+            getMainDeployer().deploy(auxdi);
+         }
+         catch (Exception ex)
+         {
+            WSDeploymentException.rethrow(ex);
+         }
       }
-      catch (Exception ex)
-      {
-         WSDeploymentException.rethrow(ex);
-      }
    }
 
    public void destroy(Deployment dep)

Modified: branches/tdiesler/trunk/integration/jboss42/src/main/resources/jbossws-jboss42.sar/jbossws.beans/META-INF/jboss-beans.xml
===================================================================
--- branches/tdiesler/trunk/integration/jboss42/src/main/resources/jbossws-jboss42.sar/jbossws.beans/META-INF/jboss-beans.xml	2007-07-12 21:32:14 UTC (rev 3867)
+++ branches/tdiesler/trunk/integration/jboss42/src/main/resources/jbossws-jboss42.sar/jbossws.beans/META-INF/jboss-beans.xml	2007-07-12 23:01:35 UTC (rev 3868)
@@ -1,325 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
-<deployment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:jboss:bean-deployer bean-deployer_1_0.xsd" xmlns="urn:jboss:bean-deployer">
+<deployment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:jboss:bean-deployer bean-deployer_1_0.xsd" 
+  xmlns:xi="http://www.w3.org/2001/XInclude" xmlns="urn:jboss:bean-deployer">
   
-  <!-- 
-    ********************************************************************************************************************* 
-    Web Service deployment                                                                                                
+  <xi:include href="jbossws-container-config.xml"/>
+  <xi:include href="jbossws-stack-config.xml"/>
     
-    There are three deployer interceptors registered with the JBoss Deployers. 
-    
-    1) DeployerInterceptorJSE
-    2) DeployerInterceptorEJB21
-    3) DeployerInterceptorEJB3
-    
-    Each interceptor has a number of DeployerHooks registerd with it 
-    
-    Conceptually, each of these hooks implements the following pattern:
-    
-    DployerHook.deploy(unit) 
-      if(isWebServiceDeployment)
-        Deployment dep = createDeployment(unit)
-        DeploymentAspectManager.deploy(dep)
- 
-    DeployerHook.undeploy(unit)
-      Deployment dep = getDeployment(unit) 
-      DeploymentAspectManager.undeploy(dep)
-    
-    Each deployer hook has a web service DeployerManager injected into it. 
-    A web service DeployerManager maintains a list of Deployers, each of which 
-    handles a single aspect of web service deployment.
-    
-    Finally, each Endpoint is registered with the EndpointRegistry.
-    
-    ********************************************************************************************************************* 
-  -->
-  
-  <!-- Locate the single instance of the kernel -->  
-  <bean name="WSKernelLocator" class="org.jboss.ws.integration.KernelLocator">
-    <property name="kernel"><inject bean="jboss.kernel:service=Kernel"/></property>
-  </bean>
-  
-  <!-- 
-    Register DeployerHooks with JBoss deployers 
-  -->
-  <bean name="WSDeployerHook_JAXRPC_JSE" class="org.jboss.wsf.container.jboss42.JAXRPCDeployerHookJSE">
-    <property name="deploymentAspectManager"><inject bean="WSDeploymentAspectManagerJSE"/></property>
-    <property name="phaseOneInterceptors">
-      <list class="java.util.LinkedList" elementClass="javax.management.ObjectName">
-        <value>jboss.ws:service=DeployerInterceptorJSE</value>
-      </list>
-    </property>
-  </bean>
-  <bean name="WSDeployerHook_JAXRPC_EJB21" class="org.jboss.wsf.container.jboss42.JAXRPCDeployerHookEJB21">
-    <property name="deploymentAspectManager"><inject bean="WSDeploymentAspectManagerEJB"/></property>
-    <property name="phaseOneInterceptors">
-      <list class="java.util.LinkedList" elementClass="javax.management.ObjectName">
-        <value>jboss.ws:service=DeployerInterceptorEJB21</value>
-      </list>
-    </property>
-  </bean>
-  <bean name="WSDeployerHook_JAXWS_JSE" class="org.jboss.wsf.container.jboss42.JAXWSDeployerHookJSE">
-    <property name="deploymentAspectManager"><inject bean="WSDeploymentAspectManagerJSE"/></property>
-    <property name="phaseOneInterceptors">
-      <list class="java.util.LinkedList" elementClass="javax.management.ObjectName">
-        <value>jboss.ws:service=DeployerInterceptorJSE</value>
-      </list>
-    </property>
-  </bean>
-  <bean name="WSDeployerHook_JAXWS_EJB3" class="org.jboss.wsf.container.jboss42.JAXWSDeployerHookEJB3">
-    <property name="deploymentAspectManager"><inject bean="WSDeploymentAspectManagerEJB"/></property>
-    <property name="phaseOneInterceptors">
-      <list class="java.util.LinkedList" elementClass="javax.management.ObjectName">
-        <value>jboss.ws:service=DeployerInterceptorEJB3</value>
-      </list>
-    </property>
-  </bean>
-  <bean name="WSMainDeployerHook" class="org.jboss.wsf.container.jboss42.MainDeployerHook">
-    <property name="deploymentAspectManager"><inject bean="WSMainDeploymentAspectManager"/></property>
-    <property name="phaseTwoInterceptors">
-      <list class="java.util.LinkedList" elementClass="javax.management.ObjectName">
-        <value>jboss.ws:service=DeployerInterceptorJSE</value>
-        <value>jboss.ws:service=DeployerInterceptorEJB21</value>
-        <value>jboss.ws:service=DeployerInterceptorEJB3</value>
-      </list>
-    </property>
-  </bean>
-  
-  <!-- 
-    Each DeploymentAspectManger maintains a list of DeploymentAspects
-  -->
-  <bean name="WSDeploymentAspectManagerJSE" class="org.jboss.wsf.spi.deployment.BasicDeploymentAspectManager">
-    <property name="name">WSDeploymentAspectManagerJSE</property>
-  </bean>
-  <bean name="WSDeploymentAspectManagerEJB" class="org.jboss.wsf.spi.deployment.BasicDeploymentAspectManager">
-    <property name="name">WSDeploymentAspectManagerEJB</property>
-  </bean>
-  <bean name="WSMainDeploymentAspectManager" class="org.jboss.wsf.spi.deployment.BasicDeploymentAspectManager">
-    <property name="name">WSMainDeploymentAspectManager</property>
-  </bean>
-  
-  <!-- 
-    The container deployment aspects
-  --> 
-  <bean name="WSClassLoaderInjectionDeploymentAspect" class="org.jboss.wsf.container.jboss42.ClassLoaderInjectionDeploymentAspect">
-    <property name="requires">AllowClassLoaderInjection</property>
-    <property name="provides">ContainerClassLoader</property>
-  </bean>
-  
-  <bean name="WSContextRootDeploymentAspect" class="org.jboss.wsf.spi.deployment.BackwardCompatibleContextRootDeploymentAspect">
-    <property name="requires">ContainerMetaData</property>
-    <property name="provides">ContextRoot</property>
-  </bean>
-  
-  <bean name="WSEndpointHandlerDeploymentAspect" class="org.jboss.wsf.spi.deployment.EndpointHandlerDeploymentAspect">
-    <property name="provides">ContainerEndpointHandler</property>
-    <property name="invocationHandler">
-      <map keyClass="java.lang.String" valueClass="java.lang.String">
-        <entry><key>JAXRPC_EJB21</key><value>org.jboss.wsf.container.jboss42.InvocationHandlerEJB21</value></entry>
-        <entry><key>JAXRPC_MDB21</key><value>org.jboss.wsf.container.jboss42.InvocationHandlerMDB21</value></entry>
-        <entry><key>JAXWS_JSE</key><value>org.jboss.wsf.spi.invocation.InvocationHandlerJSE</value></entry>
-        <entry><key>JAXWS_EJB3</key><value>org.jboss.wsf.container.jboss42.InvocationHandlerEJB3</value></entry>
-      </map>
-    </property>
-  </bean>
-  
-  <bean name="WSEndpointLifecycleDeploymentAspect" class="org.jboss.wsf.spi.deployment.EndpointLifecycleDeploymentAspect">
-    <property name="requires">LAST_DEPLOYMENT_ASPECT</property>
-  </bean>
-
-  <bean name="WSEndpointMetricsDeploymentAspect" class="org.jboss.wsf.spi.deployment.EndpointMetricsDeploymentAspect">
-    <property name="endpointMetrics"><inject bean="WSEndpointMetrics"/></property>
-  </bean>
-  
-  <bean name="WSEndpointNameDeploymentAspect" class="org.jboss.wsf.spi.deployment.EndpointNameDeploymentAspect">
-    <property name="requires">URLPattern</property>
-    <property name="provides">EndpointName</property>
-  </bean>
-  
-  <bean name="WSEndpointRegistryDeploymentAspect" class="org.jboss.wsf.spi.deployment.EndpointRegistryDeploymentAspect">
-    <property name="requires">EndpointName,StackEndpointHandler,InitializedMetaDataModel</property>
-    <property name="provides">RegisteredEndpoint</property>
-  </bean>
-  
-  <bean name="WSModifyWebMetaDataDeploymentAspect" class="org.jboss.wsf.container.jboss42.ModifyWebMetaDataDeploymentAspect">
-    <property name="requires">ContextProperties, ContainerMetaData</property>
-    <property name="webXMLRewriter"><inject bean="WSWebXMLRewriter"/></property>
-  </bean>
-  
-  <bean name="WSUnifiedDeploymentInfoDeploymentAspect" class="org.jboss.wsf.container.jboss42.UnifiedDeploymentInfoDeploymentAspect">
-    <property name="provides">ContainerMetaData</property>
-    <property name="deploymentInfoAdapter"><inject bean="WSDeploymentInfoAdapter"/></property>
-  </bean>
-  
-  <bean name="WSURLPatternDeploymentAspect" class="org.jboss.wsf.spi.deployment.BackwardCompatibleURLPatternDeploymentAspect">
-    <property name="requires">ContextRoot, ContainerMetaData</property>
-    <property name="provides">URLPattern</property>
-  </bean>
-  
-  <bean name="WSWebAppDeploymentAspect" class="org.jboss.wsf.container.jboss42.WebAppDeploymentAspect">
-    <property name="requires">WebMetaData, ContextProperties</property>
-    <property name="webXMLRewriter"><inject bean="WSWebXMLRewriter"/></property>
-  </bean>
-  
-  <bean name="WSWebAppGeneratorDeploymentAspect" class="org.jboss.wsf.spi.deployment.WebAppGeneratorDeploymentAspect">
-    <property name="requires">URLPattern</property>
-    <property name="provides">WebMetaData</property>
-    <property name="securityHandlerEJB21"><inject bean="WSSecurityHandlerEJB21"/></property>
-    <property name="securityHandlerEJB3"><inject bean="WSSecurityHandlerEJB3"/></property>
-  </bean>
-  
-  <!-- Deployment aspect helper beans -->
-  <bean name="WSApplicationMetaDataAdapterEJB21" class="org.jboss.wsf.container.jboss42.ApplicationMetaDataAdapterEJB21"/>
-  <bean name="WSApplicationMetaDataAdapterEJB3" class="org.jboss.wsf.container.jboss42.ApplicationMetaDataAdapterEJB3"/>
-  <bean name="WSDeploymentInfoAdapter" class="org.jboss.wsf.container.jboss42.DeploymentInfoAdapter">
-    <property name="applicationMetaDataAdapterEJB21"><inject bean="WSApplicationMetaDataAdapterEJB21"/></property>
-    <property name="applicationMetaDataAdapterEJB3"><inject bean="WSApplicationMetaDataAdapterEJB3"/></property>
-    <property name="webMetaDataAdapter"><inject bean="WSWebMetaDataAdapter"/></property>
-  </bean>
-  <bean name="WSEndpointMetrics" class="org.jboss.wsf.spi.management.BasicEndpointMetrics"/>
-  <bean name="WSSecurityHandlerEJB21" class="org.jboss.wsf.container.jboss42.SecurityHandlerEJB21"/>
-  <bean name="WSSecurityHandlerEJB3" class="org.jboss.wsf.container.jboss42.SecurityHandlerEJB3"/>
-  <bean name="WSWebAppDesciptorModifier" class="org.jboss.wsf.spi.deployment.WebAppDesciptorModifierImpl"/>
-  <bean name="WSWebMetaDataAdapter" class="org.jboss.wsf.container.jboss42.WebMetaDataAdapter"/>
-  <bean name="WSWebXMLRewriter" class="org.jboss.wsf.spi.deployment.WebXMLRewriter">
-    <property name="desciptorModifier"><inject bean="WSWebAppDesciptorModifier"/></property>
-  </bean>
-  
-  <!-- Deployment aspect installers -->  
-  <bean name="WSDeploymentAspectInstallerJSE" class="org.jboss.wsf.spi.deployment.DeploymentAspectInstaller">
-    <property name="manager"><inject bean="WSDeploymentAspectManagerJSE"/></property>
-    <property name="aspects">
-      <set class="java.util.HashSet" elementClass="org.jboss.wsf.spi.deployment.DeploymentAspect">
-        <inject bean="WSModifyWebMetaDataDeploymentAspect"/>
-        <inject bean="WSUnifiedDeploymentInfoDeploymentAspect"/>
-      </set>
-    </property>
-  </bean>
-  <bean name="WSMainDeploymentAspectInstaller" class="org.jboss.wsf.spi.deployment.DeploymentAspectInstaller">
-    <property name="manager"><inject bean="WSMainDeploymentAspectManager"/></property>
-    <property name="aspects">
-      <set class="java.util.HashSet" elementClass="org.jboss.wsf.spi.deployment.DeploymentAspect">
-        <inject bean="WSClassLoaderInjectionDeploymentAspect"/>
-        <inject bean="WSContextRootDeploymentAspect"/>
-        <inject bean="WSEndpointHandlerDeploymentAspect"/>
-        <inject bean="WSEndpointLifecycleDeploymentAspect"/>
-        <inject bean="WSEndpointMetricsDeploymentAspect"/>
-        <inject bean="WSEndpointNameDeploymentAspect"/>
-        <inject bean="WSEndpointRegistryDeploymentAspect"/>
-        <inject bean="WSUnifiedDeploymentInfoDeploymentAspect"/>
-        <inject bean="WSURLPatternDeploymentAspect"/>
-        <inject bean="WSWebAppDeploymentAspect"/>
-        <inject bean="WSWebAppGeneratorDeploymentAspect"/>
-      </set>
-    </property>
-  </bean>
-  
-  <!-- An abstraction of server configuration aspects. -->  
-  <bean name="WSServerConfig" class="org.jboss.wsf.spi.management.BasicServerConfig">
-    <!--
-        The WSDL, that is a required deployment artifact for an endpoint, has a <soap:address>
-        element which points to the location of the endpoint. JBoss supports rewriting of that SOAP address.
-      
-        If the content of <soap:address> is a valid URL, JBossWS will not rewrite it unless 'modifySOAPAddress' is true.
-        If the content of <soap:address> is not a valid URL, JBossWS will rewrite it using the attribute values given below.
-        
-        If 'webServiceHost' is not set, JBossWS uses requesters protocol host when rewriting the <soap:address>.
-    -->
-    <property name="webServiceHost">${jboss.bind.address}</property>
-    <property name="modifySOAPAddress">true</property>
-    
-    <!-- 
-      Set these properties to explicitly define the ports that will be used for rewriting the SOAP address.
-      Otherwise the ports will be identified by querying the list of installed connectors. 
-      If multiple connectors are found the port of the first connector is used.
-      <property name="webServiceSecurePort">8443</property>
-      <property name="webServicePort">8080</property>
-    -->
-  </bean>
-
-  <!-- The registry for web service endpoints -->
-  <bean name="WSEndpointRegistry" class="org.jboss.wsf.stack.jbws.ManagedEndpointRegistry"/>
-  
-  <!-- A subscription manager for WS-Eventing -->
-  <bean name="WSSubscriptionManager" class="org.jboss.ws.extensions.eventing.mgmt.SubscriptionManager">
-    <property name="bindAddress">${jboss.bind.address}</property>
-  </bean>
-  
-  <!-- Bind Service objects in client environment context  -->
-  <bean name="WSServiceRefHandler" class="org.jboss.ws.core.client.ServiceRefHandlerImpl"/>
-  
-  <!-- Note, JBoss_4_2_0_GA uses this hardcoded bean name -->
-  <bean name="ServiceRefHandler" class="org.jboss.ws.core.client.ServiceRefHandlerImpl"/>
-  
-  <!-- 
-    The stack specific deployment aspects
-  --> 
-  <bean name="WSNativeContextPropertiesDeploymentAspect" class="org.jboss.wsf.spi.deployment.ContextPropertiesDeploymentAspect">
-    <property name="provides">ContextProperties</property>
-    <property name="contextProperties">
-      <map keyClass="java.lang.String" valueClass="java.lang.String">
-        <entry><key>SERVICE_ENDPOINT_SERVLET</key><value>org.jboss.wsf.stack.jbws.ServiceEndpointServlet</value></entry>
-      </map>
-    </property>
-  </bean>
-  
-  <bean name="WSNativeEagerInitializeDeploymentAspect" class="org.jboss.wsf.stack.jbws.EagerInitializeDeploymentAspect">
-    <property name="requires">ContainerClassLoader,UnifiedMetaDataModel</property>
-    <property name="provides">InitializedMetaDataModel</property>
-  </bean>
-  
-  <bean name="WSNativeEndpointHandlerDeploymentAspect" class="org.jboss.wsf.spi.deployment.EndpointHandlerDeploymentAspect">
-    <property name="requires">ContainerEndpointHandler</property>
-    <property name="provides">StackEndpointHandler</property>
-    <property name="requestHandler">org.jboss.wsf.stack.jbws.RequestHandlerImpl</property>
-    <property name="lifecycleHandler">org.jboss.wsf.stack.jbws.LifecycleHandlerImpl</property>    
-    <property name="invocationHandler">
-      <map keyClass="java.lang.String" valueClass="java.lang.String">
-        <entry><key>JAXRPC_JSE</key><value>org.jboss.wsf.stack.jbws.ServiceLifecycleInvocationHandler</value></entry>
-      </map>
-    </property>
-  </bean>
-  
-  <bean name="WSNativeEventingDeploymentAspect" class="org.jboss.wsf.stack.jbws.EventingDeploymentAspect">
-    <property name="requires">UnifiedMetaDataModel</property>
-  </bean>
-  
-  <bean name="WSNativePublishContractDeploymentAspect" class="org.jboss.wsf.stack.jbws.PublishContractDeploymentAspect">
-    <property name="requires">UnifiedMetaDataModel</property>
-    <property name="provides">PublishedContract</property>
-  </bean>
-  
-  <bean name="WSNativeServiceEndpointInvokerDeploymentAspect" class="org.jboss.wsf.stack.jbws.ServiceEndpointInvokerDeploymentAspect">
-    <property name="requires">UnifiedMetaDataModel</property>
-  </bean>
-  
-  <bean name="WSNativeUnifiedMetaDataDeploymentAspect" class="org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect">
-    <property name="requires">ContainerMetaData, URLPattern</property>
-    <property name="provides">UnifiedMetaDataModel, AllowClassLoaderInjection</property>
-  </bean>
-  
-  <!-- Deployment aspect installers -->  
-  <bean name="WSNativeJSEDeploymentAspectInstaller" class="org.jboss.wsf.spi.deployment.DeploymentAspectInstaller">
-    <property name="manager"><inject bean="WSDeploymentAspectManagerJSE"/></property>
-    <property name="aspects">
-      <set class="java.util.HashSet" elementClass="org.jboss.wsf.spi.deployment.DeploymentAspect">
-        <inject bean="WSNativeContextPropertiesDeploymentAspect"/>
-      </set>
-    </property>
-  </bean>
-  <bean name="WSNativeMainDeploymentAspectInstaller" class="org.jboss.wsf.spi.deployment.DeploymentAspectInstaller">
-    <property name="manager"><inject bean="WSMainDeploymentAspectManager"/></property>
-    <property name="aspects">
-      <set class="java.util.HashSet" elementClass="org.jboss.wsf.spi.deployment.DeploymentAspect">
-        <inject bean="WSNativeContextPropertiesDeploymentAspect"/>
-        <inject bean="WSNativeEagerInitializeDeploymentAspect"/>
-        <inject bean="WSNativeEndpointHandlerDeploymentAspect"/>
-        <inject bean="WSNativeEventingDeploymentAspect"/>
-        <inject bean="WSNativePublishContractDeploymentAspect"/>
-        <inject bean="WSNativeServiceEndpointInvokerDeploymentAspect"/>
-        <inject bean="WSNativeUnifiedMetaDataDeploymentAspect"/>
-      </set>
-    </property>
-  </bean>
-    
 </deployment>

Added: branches/tdiesler/trunk/integration/jboss42/src/main/resources/jbossws-jboss42.sar/jbossws.beans/META-INF/jbossws-container-config.xml
===================================================================
--- branches/tdiesler/trunk/integration/jboss42/src/main/resources/jbossws-jboss42.sar/jbossws.beans/META-INF/jbossws-container-config.xml	                        (rev 0)
+++ branches/tdiesler/trunk/integration/jboss42/src/main/resources/jbossws-jboss42.sar/jbossws.beans/META-INF/jbossws-container-config.xml	2007-07-12 23:01:35 UTC (rev 3868)
@@ -0,0 +1,211 @@
+  <!-- 
+    ********************************************************************************************************************* 
+    Web Service deployment                                                                                                
+    
+    There are three deployer interceptors registered with the JBoss Deployers. 
+    
+    1) DeployerInterceptorJSE
+    2) DeployerInterceptorEJB21
+    3) DeployerInterceptorEJB3
+    
+    Each interceptor has a number of DeployerHooks registerd with it 
+    
+    Conceptually, each of these hooks implements the following pattern:
+    
+    DployerHook.deploy(unit) 
+      if(isWebServiceDeployment)
+        Deployment dep = createDeployment(unit)
+        DeploymentAspectManager.deploy(dep)
+ 
+    DeployerHook.undeploy(unit)
+      Deployment dep = getDeployment(unit) 
+      DeploymentAspectManager.undeploy(dep)
+    
+    Each deployer hook has a web service DeployerManager injected into it. 
+    A web service DeployerManager maintains a list of Deployers, each of which 
+    handles a single aspect of web service deployment.
+    
+    Finally, each Endpoint is registered with the EndpointRegistry.
+    
+    ********************************************************************************************************************* 
+  -->
+  
+  <!-- Locate the single instance of the kernel -->  
+  <bean name="WSKernelLocator" class="org.jboss.ws.integration.KernelLocator">
+    <property name="kernel"><inject bean="jboss.kernel:service=Kernel"/></property>
+  </bean>
+  
+  <!-- 
+    Register DeployerHooks with JBoss deployers 
+  -->
+  <bean name="WSDeployerHook_JAXRPC_JSE" class="org.jboss.wsf.container.jboss42.JAXRPCDeployerHookJSE">
+    <property name="deploymentAspectManager"><inject bean="WSDeploymentAspectManagerJSE"/></property>
+    <property name="phaseOneInterceptors">
+      <list class="java.util.LinkedList" elementClass="javax.management.ObjectName">
+        <value>jboss.ws:service=DeployerInterceptorJSE</value>
+      </list>
+    </property>
+  </bean>
+  <bean name="WSDeployerHook_JAXRPC_EJB21" class="org.jboss.wsf.container.jboss42.JAXRPCDeployerHookEJB21">
+    <property name="deploymentAspectManager"><inject bean="WSDeploymentAspectManagerEJB"/></property>
+    <property name="phaseOneInterceptors">
+      <list class="java.util.LinkedList" elementClass="javax.management.ObjectName">
+        <value>jboss.ws:service=DeployerInterceptorEJB21</value>
+      </list>
+    </property>
+  </bean>
+  <bean name="WSDeployerHook_JAXWS_JSE" class="org.jboss.wsf.container.jboss42.JAXWSDeployerHookJSE">
+    <property name="deploymentAspectManager"><inject bean="WSDeploymentAspectManagerJSE"/></property>
+    <property name="phaseOneInterceptors">
+      <list class="java.util.LinkedList" elementClass="javax.management.ObjectName">
+        <value>jboss.ws:service=DeployerInterceptorJSE</value>
+      </list>
+    </property>
+  </bean>
+  <bean name="WSDeployerHook_JAXWS_EJB3" class="org.jboss.wsf.container.jboss42.JAXWSDeployerHookEJB3">
+    <property name="deploymentAspectManager"><inject bean="WSDeploymentAspectManagerEJB"/></property>
+    <property name="phaseOneInterceptors">
+      <list class="java.util.LinkedList" elementClass="javax.management.ObjectName">
+        <value>jboss.ws:service=DeployerInterceptorEJB3</value>
+      </list>
+    </property>
+  </bean>
+  <bean name="WSMainDeployerHook" class="org.jboss.wsf.container.jboss42.MainDeployerHook">
+    <property name="deploymentAspectManager"><inject bean="WSMainDeploymentAspectManager"/></property>
+    <property name="phaseTwoInterceptors">
+      <list class="java.util.LinkedList" elementClass="javax.management.ObjectName">
+        <value>jboss.ws:service=DeployerInterceptorJSE</value>
+        <value>jboss.ws:service=DeployerInterceptorEJB21</value>
+        <value>jboss.ws:service=DeployerInterceptorEJB3</value>
+      </list>
+    </property>
+  </bean>
+  
+  <!-- 
+    Each DeploymentAspectManger maintains a list of DeploymentAspects
+  -->
+  <bean name="WSDeploymentAspectManagerJSE" class="org.jboss.wsf.spi.deployment.BasicDeploymentAspectManager">
+    <property name="name">WSDeploymentAspectManagerJSE</property>
+  </bean>
+  <bean name="WSDeploymentAspectManagerEJB" class="org.jboss.wsf.spi.deployment.BasicDeploymentAspectManager">
+    <property name="name">WSDeploymentAspectManagerEJB</property>
+  </bean>
+  <bean name="WSMainDeploymentAspectManager" class="org.jboss.wsf.spi.deployment.BasicDeploymentAspectManager">
+    <property name="name">WSMainDeploymentAspectManager</property>
+  </bean>
+  
+  <!-- 
+    The container deployment aspects
+  --> 
+  <bean name="WSClassLoaderInjectionDeploymentAspect" class="org.jboss.wsf.container.jboss42.ClassLoaderInjectionDeploymentAspect">
+    <property name="requires">AllowClassLoaderInjection</property>
+    <property name="provides">ContainerClassLoader</property>
+  </bean>
+  
+  <bean name="WSContextRootDeploymentAspect" class="org.jboss.wsf.spi.deployment.BackwardCompatibleContextRootDeploymentAspect">
+    <property name="requires">ContainerMetaData</property>
+    <property name="provides">ContextRoot</property>
+  </bean>
+  
+  <bean name="WSEndpointHandlerDeploymentAspect" class="org.jboss.wsf.spi.deployment.EndpointHandlerDeploymentAspect">
+    <property name="provides">ContainerEndpointHandler</property>
+    <property name="invocationHandler">
+      <map keyClass="java.lang.String" valueClass="java.lang.String">
+        <entry><key>JAXRPC_EJB21</key><value>org.jboss.wsf.container.jboss42.InvocationHandlerEJB21</value></entry>
+        <entry><key>JAXRPC_MDB21</key><value>org.jboss.wsf.container.jboss42.InvocationHandlerMDB21</value></entry>
+        <entry><key>JAXWS_JSE</key><value>org.jboss.wsf.spi.invocation.InvocationHandlerJSE</value></entry>
+        <entry><key>JAXWS_EJB3</key><value>org.jboss.wsf.container.jboss42.InvocationHandlerEJB3</value></entry>
+      </map>
+    </property>
+  </bean>
+  
+  <bean name="WSEndpointLifecycleDeploymentAspect" class="org.jboss.wsf.spi.deployment.EndpointLifecycleDeploymentAspect">
+    <property name="requires">LAST_DEPLOYMENT_ASPECT</property>
+  </bean>
+
+  <bean name="WSEndpointMetricsDeploymentAspect" class="org.jboss.wsf.spi.deployment.EndpointMetricsDeploymentAspect">
+    <property name="endpointMetrics"><inject bean="WSEndpointMetrics"/></property>
+  </bean>
+  
+  <bean name="WSEndpointNameDeploymentAspect" class="org.jboss.wsf.spi.deployment.EndpointNameDeploymentAspect">
+    <property name="requires">URLPattern</property>
+    <property name="provides">EndpointName</property>
+  </bean>
+  
+  <bean name="WSEndpointRegistryDeploymentAspect" class="org.jboss.wsf.spi.deployment.EndpointRegistryDeploymentAspect">
+    <property name="requires">EndpointName,StackEndpointHandler,InitializedMetaDataModel</property>
+    <property name="provides">RegisteredEndpoint</property>
+  </bean>
+  
+  <bean name="WSModifyWebMetaDataDeploymentAspect" class="org.jboss.wsf.container.jboss42.ModifyWebMetaDataDeploymentAspect">
+    <property name="requires">ContextProperties, ContainerMetaData</property>
+    <property name="webXMLRewriter"><inject bean="WSWebXMLRewriter"/></property>
+  </bean>
+  
+  <bean name="WSUnifiedDeploymentInfoDeploymentAspect" class="org.jboss.wsf.container.jboss42.UnifiedDeploymentInfoDeploymentAspect">
+    <property name="provides">ContainerMetaData</property>
+    <property name="deploymentInfoAdapter"><inject bean="WSDeploymentInfoAdapter"/></property>
+  </bean>
+  
+  <bean name="WSURLPatternDeploymentAspect" class="org.jboss.wsf.spi.deployment.BackwardCompatibleURLPatternDeploymentAspect">
+    <property name="requires">ContextRoot, ContainerMetaData</property>
+    <property name="provides">URLPattern</property>
+  </bean>
+  
+  <bean name="WSWebAppDeploymentAspect" class="org.jboss.wsf.container.jboss42.WebAppDeploymentAspect">
+    <property name="requires">WebMetaData, ContextProperties</property>
+    <property name="webXMLRewriter"><inject bean="WSWebXMLRewriter"/></property>
+  </bean>
+  
+  <bean name="WSWebAppGeneratorDeploymentAspect" class="org.jboss.wsf.spi.deployment.WebAppGeneratorDeploymentAspect">
+    <property name="requires">URLPattern</property>
+    <property name="provides">WebMetaData</property>
+    <property name="securityHandlerEJB21"><inject bean="WSSecurityHandlerEJB21"/></property>
+    <property name="securityHandlerEJB3"><inject bean="WSSecurityHandlerEJB3"/></property>
+  </bean>
+  
+  <!-- Deployment aspect helper beans -->
+  <bean name="WSApplicationMetaDataAdapterEJB21" class="org.jboss.wsf.container.jboss42.ApplicationMetaDataAdapterEJB21"/>
+  <bean name="WSApplicationMetaDataAdapterEJB3" class="org.jboss.wsf.container.jboss42.ApplicationMetaDataAdapterEJB3"/>
+  <bean name="WSDeploymentInfoAdapter" class="org.jboss.wsf.container.jboss42.DeploymentInfoAdapter">
+    <property name="applicationMetaDataAdapterEJB21"><inject bean="WSApplicationMetaDataAdapterEJB21"/></property>
+    <property name="applicationMetaDataAdapterEJB3"><inject bean="WSApplicationMetaDataAdapterEJB3"/></property>
+    <property name="webMetaDataAdapter"><inject bean="WSWebMetaDataAdapter"/></property>
+  </bean>
+  <bean name="WSEndpointMetrics" class="org.jboss.wsf.spi.management.BasicEndpointMetrics"/>
+  <bean name="WSSecurityHandlerEJB21" class="org.jboss.wsf.container.jboss42.SecurityHandlerEJB21"/>
+  <bean name="WSSecurityHandlerEJB3" class="org.jboss.wsf.container.jboss42.SecurityHandlerEJB3"/>
+  <bean name="WSWebAppDesciptorModifier" class="org.jboss.wsf.spi.deployment.WebAppDesciptorModifierImpl"/>
+  <bean name="WSWebMetaDataAdapter" class="org.jboss.wsf.container.jboss42.WebMetaDataAdapter"/>
+  <bean name="WSWebXMLRewriter" class="org.jboss.wsf.spi.deployment.WebXMLRewriter">
+    <property name="desciptorModifier"><inject bean="WSWebAppDesciptorModifier"/></property>
+  </bean>
+  
+  <!-- Deployment aspect installers -->  
+  <bean name="WSDeploymentAspectInstallerJSE" class="org.jboss.wsf.spi.deployment.DeploymentAspectInstaller">
+    <property name="manager"><inject bean="WSDeploymentAspectManagerJSE"/></property>
+    <property name="aspects">
+      <set class="java.util.HashSet" elementClass="org.jboss.wsf.spi.deployment.DeploymentAspect">
+        <inject bean="WSModifyWebMetaDataDeploymentAspect"/>
+        <inject bean="WSUnifiedDeploymentInfoDeploymentAspect"/>
+      </set>
+    </property>
+  </bean>
+  <bean name="WSMainDeploymentAspectInstaller" class="org.jboss.wsf.spi.deployment.DeploymentAspectInstaller">
+    <property name="manager"><inject bean="WSMainDeploymentAspectManager"/></property>
+    <property name="aspects">
+      <set class="java.util.HashSet" elementClass="org.jboss.wsf.spi.deployment.DeploymentAspect">
+        <inject bean="WSClassLoaderInjectionDeploymentAspect"/>
+        <inject bean="WSContextRootDeploymentAspect"/>
+        <inject bean="WSEndpointHandlerDeploymentAspect"/>
+        <inject bean="WSEndpointLifecycleDeploymentAspect"/>
+        <inject bean="WSEndpointMetricsDeploymentAspect"/>
+        <inject bean="WSEndpointNameDeploymentAspect"/>
+        <inject bean="WSEndpointRegistryDeploymentAspect"/>
+        <inject bean="WSUnifiedDeploymentInfoDeploymentAspect"/>
+        <inject bean="WSURLPatternDeploymentAspect"/>
+        <inject bean="WSWebAppDeploymentAspect"/>
+        <inject bean="WSWebAppGeneratorDeploymentAspect"/>
+      </set>
+    </property>
+  </bean>

Modified: branches/tdiesler/trunk/integration/jboss50/src/main/java/org/jboss/wsf/container/jboss50/WebAppDeploymentAspect.java
===================================================================
--- branches/tdiesler/trunk/integration/jboss50/src/main/java/org/jboss/wsf/container/jboss50/WebAppDeploymentAspect.java	2007-07-12 21:32:14 UTC (rev 3867)
+++ branches/tdiesler/trunk/integration/jboss50/src/main/java/org/jboss/wsf/container/jboss50/WebAppDeploymentAspect.java	2007-07-12 23:01:35 UTC (rev 3868)
@@ -65,12 +65,12 @@
 
    public void create(Deployment dep)
    {
-      UnifiedDeploymentInfo udi = dep.getContext().getAttachment(UnifiedDeploymentInfo.class);
-      if (udi == null)
-         throw new IllegalStateException("Cannot obtain unified deployement info");
-
       if (dep.getType().toString().endsWith("EJB21") || dep.getType().toString().endsWith("EJB3"))
       {
+         UnifiedDeploymentInfo udi = dep.getContext().getAttachment(UnifiedDeploymentInfo.class);
+         if (udi == null)
+            throw new IllegalStateException("Cannot obtain unified deployement info");
+
          URL warURL = udi.webappURL;
 
          log.debug("publishServiceEndpoint: " + warURL);

Modified: branches/tdiesler/trunk/integration/native/build.xml
===================================================================
--- branches/tdiesler/trunk/integration/native/build.xml	2007-07-12 21:32:14 UTC (rev 3867)
+++ branches/tdiesler/trunk/integration/native/build.xml	2007-07-12 23:01:35 UTC (rev 3868)
@@ -130,6 +130,17 @@
     
     <ant antfile="${int.jboss50.dir}/build.xml" target="jars" inheritall="false"/>
     
+    <!-- Concat jbossws-beans.xml -->
+    <concat destfile="${native.output.lib.dir}/jbossws-native50/jbossws-beans.xml">
+      <header trimleading="yes">
+        &lt;deployment xmlns="urn:jboss:bean-deployer:2.0"&gt;
+      </header>
+      <fileset file="${native.resources.dir}/jbossws.beans/META-INF/jbossws-stack-config.xml"/>
+      <footer trimleading="yes">
+        &lt;/deployment&gt;
+      </footer>
+    </concat>
+    
     <!-- Build jbossws-native50.sar -->
     <jar jarfile="${native.output.lib.dir}/jbossws-native50.sar" manifest="${native.output.etc.dir}/default.mf">
       <fileset dir="${native.output.lib.dir}">
@@ -148,8 +159,8 @@
       <metainf dir="${core.dir}/src/main/resources/standard-config">
         <include name="standard-*-config.xml"/>
       </metainf>
-      <metainf dir="${native.resources.dir}/jbossws-native.sar">
-        <include name="jboss-beans.xml"/>
+      <metainf dir="${native.output.lib.dir}/jbossws-native50">
+        <include name="jbossws-beans.xml"/>
       </metainf>
     </jar>
     
@@ -159,9 +170,19 @@
     
     <ant antfile="${int.jboss42.dir}/build.xml" target="jars" inheritall="false"/>
     
+    <!-- Concat jboss-beans.xml -->
+    <concat destfile="${native.output.lib.dir}/jbossws-native42/jbossws.beans/META-INF/jboss-beans.xml">
+      <header trimleading="yes">
+        &lt;deployment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:jboss:bean-deployer bean-deployer_1_0.xsd" xmlns="urn:jboss:bean-deployer"&gt;
+      </header>
+      <fileset file="${native.resources.dir}/jbossws.beans/META-INF/jbossws-stack-config.xml"/>
+      <fileset file="${int.jboss42.dir}/src/main/resources/jbossws-jboss42.sar/jbossws.beans/META-INF/jbossws-container-config.xml"/>
+      <footer trimleading="yes">
+        &lt;/deployment&gt;
+      </footer>
+    </concat>
+    
     <!-- Build jbossws-native42.sar -->
-    <mkdir dir="${native.output.lib.dir}/jbossws-native42/jbossws.beans/META-INF"/>
-    <copy todir="${native.output.lib.dir}/jbossws-native42/jbossws.beans/META-INF" file="${native.resources.dir}/jbossws-native.sar/jboss-beans.xml"/>
     <jar jarfile="${native.output.lib.dir}/jbossws-native42.sar" manifest="${native.output.etc.dir}/default.mf">
       <fileset dir="${native.output.lib.dir}">
         <include name="jbossws-context.war/**"/>
@@ -185,13 +206,10 @@
         <include name="xmlsec.jar"/>
       	<include name="wstx.jar"/>
       </fileset>
-      <!--fileset dir="${native.output.lib.dir}/jbossws-native42">
+      <fileset dir="${native.output.lib.dir}/jbossws-native42">
         <include name="jbossws.beans/**"/>
-      </fileset-->
-      <fileset dir="${int.jboss42.dir}/src/main/resources/jbossws-jboss42.sar">
-        <include name="jbossws-deployer.beans/**"/>
-        <include name="META-INF/**"/>
       </fileset>
+      <metainf dir="${int.jboss42.dir}/src/main/resources/jbossws-jboss42.sar/META-INF"/>
       <metainf dir="${core.dir}/src/main/resources/standard-config">
         <include name="standard-*-config.xml"/>
       </metainf>

Modified: branches/tdiesler/trunk/integration/spi/src/main/java/org/jboss/wsf/spi/deployment/BasicDeploymentAspectManager.java
===================================================================
--- branches/tdiesler/trunk/integration/spi/src/main/java/org/jboss/wsf/spi/deployment/BasicDeploymentAspectManager.java	2007-07-12 21:32:14 UTC (rev 3867)
+++ branches/tdiesler/trunk/integration/spi/src/main/java/org/jboss/wsf/spi/deployment/BasicDeploymentAspectManager.java	2007-07-12 23:01:35 UTC (rev 3868)
@@ -104,7 +104,7 @@
          }
 
          if (allAspects.size() != 0)
-            throw new IllegalStateException("Cannot sort: " + allAspects);
+            throw new IllegalStateException("Cannot add: " + allAspects);
          
          for (DeploymentAspect aspect : sortedAspects)
             log.info(name + ": " + aspect);

Modified: branches/tdiesler/trunk/integration/spi/src/main/java/org/jboss/wsf/spi/deployment/BasicLifecycleHandler.java
===================================================================
--- branches/tdiesler/trunk/integration/spi/src/main/java/org/jboss/wsf/spi/deployment/BasicLifecycleHandler.java	2007-07-12 21:32:14 UTC (rev 3867)
+++ branches/tdiesler/trunk/integration/spi/src/main/java/org/jboss/wsf/spi/deployment/BasicLifecycleHandler.java	2007-07-12 23:01:35 UTC (rev 3868)
@@ -25,6 +25,7 @@
 
 import org.jboss.logging.Logger;
 import org.jboss.wsf.spi.deployment.Endpoint.EndpointState;
+import org.jboss.wsf.spi.invocation.InvocationHandler;
 
 /**
  * A basic lifecycle handler
@@ -41,8 +42,11 @@
    {
       log.debug("Create: " + ep.getName());
 
-      ep.getInvocationHandler().create(ep);
-
+      InvocationHandler invHandler = ep.getInvocationHandler();
+      if (invHandler == null)
+         throw new IllegalStateException("Invocation handler not available");
+      
+      invHandler.create(ep);
       ep.setState(EndpointState.CREATED);
    }
 

Modified: branches/tdiesler/trunk/integration/spi/src/main/java/org/jboss/wsf/spi/deployment/WebXMLRewriter.java
===================================================================
--- branches/tdiesler/trunk/integration/spi/src/main/java/org/jboss/wsf/spi/deployment/WebXMLRewriter.java	2007-07-12 21:32:14 UTC (rev 3867)
+++ branches/tdiesler/trunk/integration/spi/src/main/java/org/jboss/wsf/spi/deployment/WebXMLRewriter.java	2007-07-12 23:01:35 UTC (rev 3868)
@@ -59,6 +59,8 @@
    public RewriteResults rewriteWebXml(Deployment dep)
    {
       UnifiedDeploymentInfo udi = dep.getContext().getAttachment(UnifiedDeploymentInfo.class);
+      if (udi == null)
+         throw new IllegalStateException("Cannot obtain unified deployment info");
       
       URL warURL = udi.webappURL;
       File warFile = new File(warURL.getFile());




More information about the jbossws-commits mailing list