Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-3106

@WebServiceProvider annotation is not processed when implementation class loaded from dependent module

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • No Release
    • 7.1.0.Beta1b
    • Web Services
    • None

      When deploying picketlink-sts.war with dependent module org.picketlink specified in META-INF/jboss-deployment-structure.xml which contains class referred to as servlet (in web.xml) annotated with @WebServiceProvider it is deployed as servlet and not as webservice.

      If I copy the class file to war to WEB-INF/classes it works as expected.

      See two attached .war files.

      Only correct one creates following log entries:

      17:30:33,595 INFO  [org.jboss.wsf.stack.cxf.metadata.MetadataBuilder] (MSC service thread 1-5) Add Service
       id=PicketLinkSTS
       address=http://localhost:8080/picketlink-sts-correct
       implementor=org.picketlink.identity.federation.core.wstrust.PicketLinkSTS
       invoker=org.jboss.wsf.stack.cxf.JBossWSInvoker
       serviceName={urn:picketlink:identity-federation:sts}PicketLinkSTS
       portName={urn:picketlink:identity-federation:sts}PicketLinkSTSPort
       wsdlLocation=null
       mtomEnabled=false
      17:30:33,597 INFO  [org.jboss.ws.common.management.DefaultEndpointRegistry] (MSC service thread 1-5) register: jboss.ws:context=picketlink-sts-correct,endpoint=PicketLinkSTS
      17:30:33,859 INFO  [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-5) Creating Service {urn:picketlink:identity-federation:sts}PicketLinkSTS from WSDL: WEB-INF/wsdl/PicketLinkSTS.wsdl
      17:30:34,070 INFO  [org.jboss.wsf.stack.cxf.transport.AddressRewritingEndpointInfo] (MSC service thread 1-5) Setting new service endpoint address in wsdl: http://localhost:8080/picketlink-sts/PicketLinkSTS
      17:30:34,132 INFO  [org.jboss.wsf.stack.cxf.transport.AddressRewritingEndpointInfo] (MSC service thread 1-5) Setting new service endpoint address in wsdl: http://localhost:8080/picketlink-sts-correct
      17:30:34,179 INFO  [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-5) Setting the server's publish address to be http://localhost:8080/picketlink-sts-correct
      

            jgreene@redhat.com Jason Greene
            pskopek@redhat.com Peter Skopek
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: