Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 91343 invoked from network); 12 Jun 2006 11:32:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Jun 2006 11:32:45 -0000 Received: (qmail 90331 invoked by uid 500); 12 Jun 2006 11:32:43 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 90066 invoked by uid 500); 12 Jun 2006 11:32:41 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 90050 invoked by uid 99); 12 Jun 2006 11:32:41 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jun 2006 04:32:41 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jun 2006 04:32:40 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0D4A5714293 for ; Mon, 12 Jun 2006 11:31:31 +0000 (GMT) Message-ID: <16909635.1150111891051.JavaMail.jira@brutus> Date: Mon, 12 Jun 2006 11:31:31 +0000 (GMT+00:00) From: "Davanum Srinivas (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Resolved: (AXIS2-697) fetching WSDL description using aService?wsdl does not work in Jetty In-Reply-To: <18444652.1147172782661.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXIS2-697?page=all ] Davanum Srinivas resolved AXIS2-697: ------------------------------------ Resolution: Invalid Looks like they fixed the problem in jetty-6.0.0beta17 thanks, dims > fetching WSDL description using aService?wsdl does not work in Jetty > -------------------------------------------------------------------- > > Key: AXIS2-697 > URL: http://issues.apache.org/jira/browse/AXIS2-697 > Project: Apache Axis 2.0 (Axis2) > Type: Bug > Components: deployment > Environment: Jdk 1.5, Jetty 6.0.0 Beta14 > Reporter: Wang PengChao > Assignee: Deepal Jayasinghe > > > Phenomenon: > Service 'aService' deployed in Jetty, when user fetches aService's WSDL description using http://domain/services/aService?wsdl, axis2 will return 404 ERROR. But request url like http://domain/services/aService?wsdl= or http://domain/services/aService?wsdl=anything can work. > Analysis: > The code here in ListAgent.handle() > if (httpServletRequest.getParameter("wsdl") != null || > httpServletRequest.getParameter("xsd") != null) { > processListService(httpServletRequest, httpServletResponse); > } else { > super.handle(httpServletRequest, httpServletResponse); > } > It use request.getParameter() to determin whether the request is a WSDL or XSD description request. It works fine in tomcat. But Jetty has different way to process request like http://.../servlet?parameterName, which has no '=' followed. In tomcat, while processing this kind of link, parameterName will be put in paramter map with the value set to an empty string, but in Jetty it will be simply thrown away. It is not a bug of Jetty, because how to deal with this kind of request parameters is not mentioned in the servlet specification. > Suggest: > I think using feature which different between servlet containers is not smart. So I suggest using request.getQueryString() to replace the getParameter(): > in ListAgent.handle() before code snip change to...... > if (isWSDLOrXSDRequest(httpServletRequest)) { > processListService(httpServletRequest, httpServletResponse); > } else { > super.handle(httpServletRequest, httpServletResponse); > } > add method in ListAgent...... > private boolean isWSDLOrXSDRequest(HttpServletRequest httpServletRequest) { > String query = httpServletRequest.getQueryString(); > if(query == null){ > return false; > } > return query.indexOf("wsdl") >=0 || query.indexOf("xsd") >=0; > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org