[
http://issues.apache.org/jira/browse/AXIS2-761?page=comments#action_12414669 ]
Chuck Williams commented on AXIS2-761:
--------------------------------------
I believe I understand how this is supposed to work now. There appear to be a
couple bugs in Deepal's update to make the contextPath configurable, but fixing
these did not resolve the failure of ServiceGroupContextTest. I'm flying to
California today and so will have to debug this later.
Here are the issues that appear to me to be bugs in the contextPath update.
Both concern the difference between contextPath and contextPath+"/".
In SimpleHTTPServer.getEPRForService(), I changed:
return new EndpointReference(hostAddress + contextPath +
serviceName);
to:
return new EndpointReference(hostAddress + contextPath + "/" +
serviceName);
In HTTPWorker.service(), I changed:
if (!(uri.endsWith(contextPath))) {
String serviceName = uri.replaceAll(contextPath, "");
to:
if (!(uri.endsWith(contextPath) ||
uri.endsWith(contextPath+"/"))) {
String serviceName = uri.replaceAll(contextPath+"/",
"");
Surprisingly these changes had no effect on any test results.
> SimpleHttpServer based on Jakarta HttpComponents HttpCore
> ---------------------------------------------------------
>
> Key: AXIS2-761
> URL: http://issues.apache.org/jira/browse/AXIS2-761
> Project: Apache Axis 2.0 (Axis2)
> Type: Improvement
> Components: transports
> Versions: 1.0
> Reporter: Oleg Kalnichevski
> Attachments: ConfigurableSimpleHTTPServer.complete.patch,
> ConfigurableSimpleHTTPServer.consolidated.patch,
> ConfigurableSimpleHTTPServer.patch, jakarta-httpcore-4.0-20060602.jar,
> simplehttpserver.patch
>
> The following patch replaces the SimpleHttpServer implementation based on the
> testing framework of Commons HttpClient 3.x with a one based on Jakarta
> HttpComponents HttpCore. Compiled against Axis2 trunk and HttpCore trunk
> * Removes all references to Commons HttpClient classes
> * Enables streaming of schema definitions and similar content
> * Improves content buffering of SOAP response
> * Improves handling of fault conditions and exception handling
> * Fixes a number of NPEs in AxisEngine
> * Improves performance and reliability of the HTTP transport
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]