You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Davanum Srinivas (JIRA)" <ji...@apache.org> on 2005/08/06 04:38:36 UTC

[jira] Created: (AXIS2-121) Jetty based SimpleHTTPServer

Jetty based SimpleHTTPServer 
-----------------------------

         Key: AXIS2-121
         URL: http://issues.apache.org/jira/browse/AXIS2-121
     Project: Apache Axis 2.0 (Axis2)
        Type: Improvement
    Reporter: Davanum Srinivas


This is yet another lesson learned from Axis 1.X. A lot of code is not tested well because a typical deployment is a servlet and none of the tests in the harness are run inside a servlet. (http chunking, gzip compression, anything that exercises the thread context loader, class loader stuff etc...). Just like the move to CommonsTransportSender based on jakarta commons client, I think we should port the JettyAxisServer in Axis 1.X clean it up and use that in Axis 2.0 as the default environment for testing (and get rid of the SimpleHTTPServer).

thanks,
dims

-- 
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


[jira] Commented: (AXIS2-121) Jetty based SimpleHTTPServer

Posted by "Saminda Wishwajith Abeyruwan (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-121?page=comments#action_12317842 ] 

Saminda Wishwajith Abeyruwan commented on AXIS2-121:
----------------------------------------------------

As metioned, i have gone throught the Axis1.x jetty based JettyAxisServer and implemented SimpleJettyHTTPServer, which is complement to existing SimpleHTTPServer. 

I will send a patch of the code for Axis2 developers review. 

Thanks 

Saminda 

> Jetty based SimpleHTTPServer
> ----------------------------
>
>          Key: AXIS2-121
>          URL: http://issues.apache.org/jira/browse/AXIS2-121
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Improvement
>     Reporter: Davanum Srinivas

>
> This is yet another lesson learned from Axis 1.X. A lot of code is not tested well because a typical deployment is a servlet and none of the tests in the harness are run inside a servlet. (http chunking, gzip compression, anything that exercises the thread context loader, class loader stuff etc...). Just like the move to CommonsTransportSender based on jakarta commons client, I think we should port the JettyAxisServer in Axis 1.X clean it up and use that in Axis 2.0 as the default environment for testing (and get rid of the SimpleHTTPServer).
> thanks,
> dims

-- 
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


[jira] Commented: (AXIS2-121) Jetty based SimpleHTTPServer

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-121?page=comments#action_12317921 ] 

Davanum Srinivas commented on AXIS2-121:
----------------------------------------

Thinking more about this....Please see server.zip here - http://issues.apache.org/jira/browse/AXIS-2082 that would do as well. If we can use jetty's transport layer directory instead of the servlet stuff that would be much better (as jettty is better maintained and we want to be able to use this directly without servlet stuff on the client-side (for async) requests.

thanks,
dims

> Jetty based SimpleHTTPServer
> ----------------------------
>
>          Key: AXIS2-121
>          URL: http://issues.apache.org/jira/browse/AXIS2-121
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Improvement
>     Reporter: Davanum Srinivas

>
> This is yet another lesson learned from Axis 1.X. A lot of code is not tested well because a typical deployment is a servlet and none of the tests in the harness are run inside a servlet. (http chunking, gzip compression, anything that exercises the thread context loader, class loader stuff etc...). Just like the move to CommonsTransportSender based on jakarta commons client, I think we should port the JettyAxisServer in Axis 1.X clean it up and use that in Axis 2.0 as the default environment for testing (and get rid of the SimpleHTTPServer).
> thanks,
> dims

-- 
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


Re: [jira] Commented: (AXIS2-121) Jetty based SimpleHTTPServer

Posted by Eric Johnson <er...@tibco.com>.
Or better yet - let us folks at HttpClient know that you want changes.

Chances are, if you find them useful, someone else will too.

-Eric Johnson (occassional HttpClient contributor).

Davanum Srinivas (JIRA) wrote:

>    [ http://issues.apache.org/jira/browse/AXIS2-121?page=comments#action_12318096 ] 
>
>Davanum Srinivas commented on AXIS2-121:
>----------------------------------------
>
>After reviewing our code in org.apache.axis2.transport.http.SimpleHTTPServer and reviewing Jetty and AXIS-2082. Here's what i think we should do.
>
>- Pick the source code for the simple server from httpclient test (http://svn.apache.org/viewcvs.cgi/jakarta/commons/proper/httpclient/trunk/src/test/org/apache/commons/httpclient/server/)
>- Change the package name to org.apache.axis2.transport.http.server
>- Don't touch the code we borrowed too much (will land up in trouble trying to sync up later)
>- Rewrite out SimpleHTTPServer based on this code and throw away out HTTPWorker/ChunkedOutputStream etc. (all unnecessary code)
>
>I believe this code in commons httpclient is much more robust than our code (Remember, we are not in the business of writing a http server :). So we should just use that code. I believe it will help with AXIS2-128 as well.
>
>thanks,
>dims
>

[jira] Commented: (AXIS2-121) Jetty based SimpleHTTPServer

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-121?page=comments#action_12318096 ] 

Davanum Srinivas commented on AXIS2-121:
----------------------------------------

After reviewing our code in org.apache.axis2.transport.http.SimpleHTTPServer and reviewing Jetty and AXIS-2082. Here's what i think we should do.

- Pick the source code for the simple server from httpclient test (http://svn.apache.org/viewcvs.cgi/jakarta/commons/proper/httpclient/trunk/src/test/org/apache/commons/httpclient/server/)
- Change the package name to org.apache.axis2.transport.http.server
- Don't touch the code we borrowed too much (will land up in trouble trying to sync up later)
- Rewrite out SimpleHTTPServer based on this code and throw away out HTTPWorker/ChunkedOutputStream etc. (all unnecessary code)

I believe this code in commons httpclient is much more robust than our code (Remember, we are not in the business of writing a http server :). So we should just use that code. I believe it will help with AXIS2-128 as well.

thanks,
dims

> Jetty based SimpleHTTPServer
> ----------------------------
>
>          Key: AXIS2-121
>          URL: http://issues.apache.org/jira/browse/AXIS2-121
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Improvement
>     Reporter: Davanum Srinivas

>
> This is yet another lesson learned from Axis 1.X. A lot of code is not tested well because a typical deployment is a servlet and none of the tests in the harness are run inside a servlet. (http chunking, gzip compression, anything that exercises the thread context loader, class loader stuff etc...). Just like the move to CommonsTransportSender based on jakarta commons client, I think we should port the JettyAxisServer in Axis 1.X clean it up and use that in Axis 2.0 as the default environment for testing (and get rid of the SimpleHTTPServer).
> thanks,
> dims

-- 
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


[jira] Resolved: (AXIS2-121) Jetty based SimpleHTTPServer

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-121?page=all ]
     
Davanum Srinivas resolved AXIS2-121:
------------------------------------

    Fix Version: 0.91
     Resolution: Fixed

Fixed

> Jetty based SimpleHTTPServer
> ----------------------------
>
>          Key: AXIS2-121
>          URL: http://issues.apache.org/jira/browse/AXIS2-121
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Improvement
>     Reporter: Davanum Srinivas
>      Fix For: 0.91

>
> This is yet another lesson learned from Axis 1.X. A lot of code is not tested well because a typical deployment is a servlet and none of the tests in the harness are run inside a servlet. (http chunking, gzip compression, anything that exercises the thread context loader, class loader stuff etc...). Just like the move to CommonsTransportSender based on jakarta commons client, I think we should port the JettyAxisServer in Axis 1.X clean it up and use that in Axis 2.0 as the default environment for testing (and get rid of the SimpleHTTPServer).
> thanks,
> dims

-- 
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


[jira] Commented: (AXIS2-121) Jetty based SimpleHTTPServer

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-121?page=comments#action_12318857 ] 

Davanum Srinivas commented on AXIS2-121:
----------------------------------------

checked in a httpclient test code based server.

-- dims

> Jetty based SimpleHTTPServer
> ----------------------------
>
>          Key: AXIS2-121
>          URL: http://issues.apache.org/jira/browse/AXIS2-121
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Improvement
>     Reporter: Davanum Srinivas

>
> This is yet another lesson learned from Axis 1.X. A lot of code is not tested well because a typical deployment is a servlet and none of the tests in the harness are run inside a servlet. (http chunking, gzip compression, anything that exercises the thread context loader, class loader stuff etc...). Just like the move to CommonsTransportSender based on jakarta commons client, I think we should port the JettyAxisServer in Axis 1.X clean it up and use that in Axis 2.0 as the default environment for testing (and get rid of the SimpleHTTPServer).
> thanks,
> dims

-- 
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