Hi Folks,
I'm debugging one regression related to service references.
I have service-ref element defined in web.xml
<service-ref>
<service-ref-name>service3</service-ref-name>
<service-interface>javax.xml.ws.Service</service-interface>
<wsdl-file>WEB-INF/wsdl/Endpoint.wsdl</wsdl-file>
<service-qname xmlns:ns1="http://serviceref.samples.jaxws.ws.test.jboss.org/">ns1:EndpointService</service-qname>
</service-ref>
I have empty jboss-web.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 5.0//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_5_0.dtd">
<jboss-web>
</jboss-web>
And I have service reference with the same JNDI name defined in servlet
public class ServletClient extends HttpServlet
{
@WebServiceRef(name="service3")
EndpointService injectedService = null;
...
}
While debugging, I see:
1) web.xml parsing deployer creates service ref MD from web.xml
2) jboss-web.xml parsing deployer does nothing (because DD is empty)
3) annotation processing deployer creates service ref MD from servlet
4) web.xml MD are merged with jboss-web.xml MD
ISSUE:
While debugging I don't see MD created in 3) to be merged with MD created
either in step 1) or 2) or in 4).
Is this expected behavior? Why MD created in 3) are not merged with MD created in 4)?