[jboss-jira] [JBoss JIRA] Commented: (JBAS-4940) Deployment.types not propagated

Thomas Diesler (JIRA) jira-events at lists.jboss.org
Mon Nov 5 13:23:44 EST 2007


    [ http://jira.jboss.com/jira/browse/JBAS-4940?page=comments#action_12386050 ] 
            
Thomas Diesler commented on JBAS-4940:
--------------------------------------

The WebAppDeploymentAspect adds a type string like this

         org.jboss.deployers.client.spi.Deployment deployment = createDeployment(warURL);
         
         // Mark the deployment as generated web app 
         // so the JSE deployer hook can ignore it 
         Set<String> types = deployment.getTypes();
         if (types == null)
         {
            types = new HashSet<String>();
            deployment.setTypes(types);
         }
         types.add(WebAppDesciptorModifier.PROPERTY_GENERATED_WEBAPP);

During deployment of the above using this code

   public boolean isWebServiceDeployment(DeploymentUnit unit)
   {
      JBossWebMetaData webMetaData = unit.getAttachment(JBossWebMetaData.class);
      boolean isGenerated = unit.getTypes().contains(WebAppDesciptorModifier.PROPERTY_GENERATED_WEBAPP);
      return isGenerated == false && webMetaData != null;
   }

isGenerated is always false.



> Deployment.types not propagated
> -------------------------------
>
>                 Key: JBAS-4940
>                 URL: http://jira.jboss.com/jira/browse/JBAS-4940
>             Project: JBoss Application Server
>          Issue Type: Sub-task
>      Security Level: Public(Everyone can see) 
>            Reporter: Thomas Diesler
>             Fix For:  JBossAS-5.0.0.Beta3
>
>
> [tdiesler at tddell trunk]$ ant -Dtest=org.jboss.test.ws.jaxws.jbws1762.packaged_jar_ejb3.Iteration1TestCase one-test
> Caused by: java.lang.IllegalStateException: Endpoint already registered: jboss.ws:context=jaxws-jbws1762-packaged,endpoint=EJB3Bean
>         at org.jboss.wsf.framework.management.DefaultEndpointRegistry.register(DefaultEndpointRegistry.java:89)
>         at org.jboss.wsf.framework.management.ManagedEndpointRegistry.register(ManagedEndpointRegistry.java:59)
>         at org.jboss.wsf.framework.deployment.EndpointRegistryDeploymentAspect.create(EndpointRegistryDeploymentAspect.java:46)
>         at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl.java:115)
>         at org.jboss.wsf.container.jboss50.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:95)
>         at org.jboss.wsf.container.jboss50.AbstractWebServiceDeployer.deploy(AbstractWebServiceDeployer.java:63)

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

        



More information about the jboss-jira mailing list