[jboss-dev-forums] [JBoss Web Development] - Web MD merge process

Richard Opalka do-not-reply at jboss.com
Fri Nov 12 08:24:49 EST 2010


Richard Opalka [http://community.jboss.org/people/richard.opalka%40jboss.com] created the discussion

"Web MD merge process"

To view the discussion, visit: http://community.jboss.org/message/570982#570982

--------------------------------------------------------------
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/ 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 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)?
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/570982#570982]

Start a new discussion in JBoss Web Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2112]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20101112/a0ea13d9/attachment.html 


More information about the jboss-dev-forums mailing list