3 Replies Latest reply: Apr 17, 2012 8:49 AM by Stephen Coy RSS

    Unable to deploy web service on JBoss 7.1.1

    T T Newbie

      The following exception was found when deploying a war that works in previous JBoss application. In the class, @WebService annotation was used which has serviceName and portName attributes set.

       

      Caused by: java.lang.RuntimeException: @WebService cannot have attribute portName, serviceName, endpointInterface on: MyInterfaceClassBlah

          at org.jboss.wsf.stack.cxf.metadata.MetadataBuilder.createDDEndpoint(MetadataBuilder.java:258)

          at org.jboss.wsf.stack.cxf.metadata.MetadataBuilder.build(MetadataBuilder.java:79)

          at org.jboss.wsf.stack.cxf.deployment.aspect.DescriptorDeploymentAspect.generateMetadataFromDeployment(DescriptorDeploymentAspect.java:153)

          at org.jboss.wsf.stack.cxf.deployment.aspect.DescriptorDeploymentAspect.start(DescriptorDeploymentAspect.java:81)

          at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:74)

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

       

      Can someone help?