You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2005/02/26 10:42:26 UTC

DO NOT REPLY [Bug 33753] New: - tag in web.xml is ignored. Servlet 2.4 spec.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33753>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33753

           Summary: <service-ref/> tag in web.xml is ignored. Servlet 2.4
                    spec.
           Product: Tomcat 5
           Version: 5.5.7
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: dave@daveboden.com


The Servlet 2.4 specification allows a <service-ref/> tag in a web application's
web.xml file. This sets up a JAX-RPC web service and makes it available to the
web application.

I have added the following to my web.xml to try and use the web service
available at https://services.betfair.com/

    <service-ref>
        <description>Betfair Web Service - Sport</description>
        <service-ref-name>service/betfair/Sport</service-ref-name>
       
<service-interface>com.emobus.betfair.webservice.Sport_Service</service-interface>
        <wsdl-file>WEB-INF/wsdl/services.betfair.com.wsdl</wsdl-file>
       
<jaxrpc-mapping-file>WEB-INF/services.betfair.com-jaxrpc-mapping.xml</jaxrpc-mapping-file>
        <service-qname>betfair:Sport</service-qname>
    </service-ref>
    
    <service-ref>
        <description>Betfair Web Service - Login</description>
        <service-ref-name>service/betfair/Login</service-ref-name>
        <service-interface>com.emobus.betfair.webservice.Login</service-interface>
        <wsdl-file>WEB-INF/wsdl/services.betfair.com.wsdl</wsdl-file>
       
<jaxrpc-mapping-file>WEB-INF/services.betfair.com-jaxrpc-mapping.xml</jaxrpc-mapping-file>
        <service-qname>betfair:Login</service-qname>
    </service-ref>



This appears to be completely ignored by Tomcat 5.5.

I'm declaring my web.xml correctly for version 2.4 of the servlet spec:

<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
         xmlns:betfair="http://services.betfair.com"
         version="2.4">


Does Tomcat not support the <service-ref/> tag? If not, how can it be servlet
spec 2.4 compliant?

Many thanks,
Dave

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org