1 Feb 2007 02:41
Re: Geronimo v1.2 Web services sample
Hernan,
Thanks for pointing out this issue. Looks like we definitely have a case
here. Please verify the error you are getting as same given below.
After you have mentioned I tested this sample application in both Jetty &
Tomcat version of the server for 1.1.1 & trunk version (built recently)
but not in 1.2. The client side of the application fails in the Jetty
version of the server with following error for each case for me too:(. The
interesting thing is it works fine for Tomcat version.
AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (404)Not Found
faultActor:
faultNode:
faultDetail:
{}:return code: 404
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1"/>
<title>Error 404 </title>
</head>
<body><h2>HTTP ERROR:
404</h2><pre>NOT_FOUND</pre>
<p>RequestURI=//Calculator/calculator</p><p><i><small><a
href="http://jetty.mortbay.org/">Powered by
Jetty://</a></small></i></p><br/>
(Continue reading)
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
RSS Feed