[Design of JBoss Web Services] - Deployment.types not propagated
by thomas.diesler@jboss.com
| [tdiesler@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)
|
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.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102859#4102859
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102859