Hi there,

Continue the discussion in a new thread (without Axis2 in the title) as the
questions are not specific to web services. :-)

1) I tried to run a test where a user didn't specify servlet-mapping for the
jaxws test servlet and that didn't go well.  (BTW, this is allowed per JSR
109).  How is the web container handling the cases where servlet-mapping
isn't specified by the user.  Would the container set the url-pattern to a
default value? Can someone shed some light on that?

2) We had to have an asterisk ("*") in the url-pattern (e.g. /servlet/*) of
the jaxws test servlet.  I tried to remove the * but I would get 404 when I
issue ?wsdl from the browser.  I think this is something we may have to
write code to work around the spec requirement, as a user needs to be able
to run ?wsdl calls using different syntax (like GreeterImpl?wsdl or
test?wsdl...).   For example, a user can only specify 1 (or 0)
servlet-mapping and url-pattern for one servlet in web.xml, but the Axis2
integration code can add other url-patterns to the web deployment plan that
will be used by the web container. I am wondering if there is anyway to
overwrite the in-memory version of servlet-mapping or url-pattern for
Geronimo to use (of course, don't overwrite the original web.xml)?  Any
pointer is appreciated!

Thanks, Lin

Reference doc:
JSR 109 rev 1.2 Page 61 (sec 7.1.2) where it says:
--//--
Servlet Mapping. A developer may optionally specify a servlet-mapping, In
the web.xml deployment descriptor, for a JAX-RPC or JAX-WS Service Endpoint.
No more than one servlet-mapping may be specified for a servlet that is
linked to by a port-component.
The url-pattern of the servlet-mapping must be an exact match pattern  (i.e.
it must not contain an asterisk ("*")).
--//--

Reply via email to