axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Asankha C. Perera" <asan...@wso2.com>
Subject Re: [Axis2] How to configure SSL EndPoint
Date Wed, 20 Jun 2007 08:41:00 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Yonny<br>
<br>
Unless you are very familiar with the scenario Oleg is trying to
explain, the current non-blocking http/s transport we are going to
check into the Axis2 trunk this week would solve your problems for
sure. It will not expose anything too advanced for one to work with,
and would handle a huge number of concurrent connections well with a
much smaller thread pool. So I suggest that you try to use it for your
scenario as well. <br>
<br>
If you want to look how this operates right now - today,.. you could
download <a
 href="http://ws.apache.org/synapse/download/1.0/download.cgi">Apache
Synapse 1.0</a> and try the bundled Axis2 server we ship with it. Its a
http/s configuration which uses Axis2 1.2 and the Synapse download is
only around 20M and there is enough documentation to help you get
started<br>
<br>
asankha<br>
<br>
Yonny Hao wrote:
<blockquote
 cite="mid53c4de6d0706181856w3e481765q5d64732d50db09b7@mail.gmail.com"
 type="cite"> I also agree that adding a simple SSL feature to
SimpleHTTPServer is more useful, because in some cases, we just want
secure the conversation<br>
  <br>
  <div><span class="gmail_quote">2007/6/19, Sanjiva Weerawarana &lt;<a
 href="mailto:sanjiva@opensource.lk">
sanjiva@opensource.lk</a>&gt;:</span>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left:
1ex;">Oleg-
I think an https listener associated with SimpleHTTPServer would be
    <br>
very useful. In fact, I'd like to see the non-blocking HTTP transport
from<br>
Synapse brought over to this land and for that to be the default used in<br>
SimpleHTTPServer .. which then would not be just simple but rather
    <br>
SimpleScalableHTTPServer :).<br>
    <br>
Sanjiva.<br>
    <br>
Oleg Kalnichevski wrote:<br>
&gt; On Mon, 2007-06-18 at 21:36 +0800, Yonny Hao wrote:<br>
&gt;&gt; Hi Oleg<br>
&gt;&gt; Thank you for your timely reply.<br>
&gt;&gt; Yes, I'm very interested in the SSL Http Server that can be
used in
    <br>
&gt;&gt; Axis2, so would you please email me? Thank you very much.<br>
&gt;&gt;<br>
&gt;&gt; Best Regards<br>
&gt;&gt; Yonny<br>
&gt;&gt;<br>
&gt;<br>
&gt; Yonny,<br>
&gt;<br>
&gt; I do not see a reason why this cannot be discussed on the axis-dev
    <br>
&gt; list.<br>
&gt;<br>
&gt; Adding SSL support to SimpleHttpServer would only require a trivial<br>
&gt; change to the DefaultConnectionListener [1]. Essentially all it
takes is<br>
&gt; a custom server socket factory injected into
DefaultConnectionListener
    <br>
&gt; upon configuration.<br>
&gt;<br>
&gt; A more important question is whether adding SSL support to<br>
&gt; SimpleHttpServer makes sense or whether Axis developers would
rather see<br>
&gt; people use a servlet engine for such scenarios.
    <br>
&gt;<br>
&gt; Oleg<br>
&gt;<br>
&gt; [1]<br>
&gt; <a
 href="http://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/server/DefaultConnectionListener.java">http://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/server/DefaultConnectionListener.java
    </a><br>
&gt;<br>
&gt;<br>
&gt;&gt; 2007/6/18, Oleg Kalnichevski &lt;<a
 href="mailto:olegk@apache.org">olegk@apache.org</a>&gt;:<br>
&gt;&gt;         On Mon, 2007-06-18 at 19:01 +0800, Yonny Hao wrote:<br>
&gt;&gt;         &gt;
    <br>
&gt;&gt;         &gt; Hi All<br>
&gt;&gt;         &gt; I developed a WS and deploy it in Axis2-1.2. I
want to let<br>
&gt;&gt;         the WS<br>
&gt;&gt;         &gt; included a SSL-secured endpoint and show the
https endpoint
    <br>
&gt;&gt;         info in<br>
&gt;&gt;         &gt; WSDL when request ?wsdl url. I opened the 8443
port of<br>
&gt;&gt;         tomcat5.5 to<br>
&gt;&gt;         &gt; receive https request, then I added the following
lines to
    <br>
&gt;&gt;         axis2.xml<br>
&gt;&gt;         &gt; &lt;transportReceiver name="https"<br>
&gt;&gt;         &gt;                        class="
org.apache.axis2.transport<br>
&gt;&gt;         &gt; .http.SimpleHTTPServer"&gt;
    <br>
&gt;&gt;         &gt;         &lt;parameter
name="port"&gt;8443&lt;/parameter&gt;<br>
&gt;&gt;         &gt; &lt;/transportReceiver&gt;<br>
&gt;&gt;         &gt;<br>
&gt;&gt;         &gt; , at last I configure my WS' services.xml to use
the https<br>
&gt;&gt;         transport,<br>
&gt;&gt;         &gt; adding below code.<br>
&gt;&gt;         &gt; &lt;transports&gt;<br>
&gt;&gt;         &gt;    &lt;transport&gt;https&lt;/transport&gt;<br>
&gt;&gt;         &gt; &lt;/transports&gt;<br>
&gt;&gt;         &gt; but after I startup the tomcat, it throws<br>
&gt;&gt;         &gt;<br>
&gt;&gt;         &gt; Jun 18, 2007 5:52:13 PM<br>
&gt;&gt;         &gt;<br>
&gt;&gt;        
org.apache.axis2.transport.http.server.DefaultConnectionListenerFailureHandler
failed<br>
&gt;&gt;         &gt; WARNING: Attempt number 1 of 10 to reestalish
connection<br>
&gt;&gt;         listener<br>
&gt;&gt;         &gt;
    <br>
&gt;&gt;        
org.apache.axis2.transport.http.server.DefaultConnectionListener@b80f1c
due to failure<br>
&gt;&gt;         &gt; java.net.BindException: Address already in use:
JVM_Bind<br>
&gt;&gt;         &gt;     at java.net.PlainSocketImpl.socketBind(Native
Method)<br>
&gt;&gt;         &gt;     at java.net.PlainSocketImpl.bind<br>
&gt;&gt;         (PlainSocketImpl.java:359)<br>
&gt;&gt;         &gt;     at
java.net.ServerSocket.bind(ServerSocket.java
:319)<br>
&gt;&gt;         &gt;     at
java.net.ServerSocket.&lt;init&gt;(ServerSocket.java:185)<br>
&gt;&gt;         &gt;     at
java.net.ServerSocket.&lt;init&gt;(ServerSocket.java:97)<br>
&gt;&gt;         &gt;     at<br>
&gt;&gt;         &gt;
    <br>
&gt;&gt;        
org.apache.axis2.transport.http.server.DefaultConnectionListener.run(DefaultConnectionListener.java:82)<br>
&gt;&gt;         &gt;     at<br>
&gt;&gt;         &gt;<br>
&gt;&gt;        
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor
    <br>
&gt;&gt;         &gt; $Worker.runTask( ThreadPoolExecutor.java :665)<br>
&gt;&gt;         &gt;     at<br>
&gt;&gt;         &gt;<br>
&gt;&gt;        
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor<br>
&gt;&gt;         &gt; $Worker.run(
ThreadPoolExecutor.java:690)<br>
&gt;&gt;         &gt;     at java.lang.Thread.run(Thread.java:619)<br>
&gt;&gt;         &gt;<br>
&gt;&gt;         &gt; my configuration is correct? Is there anybody to
tell me how<br>
&gt;&gt;         to deal
    <br>
&gt;&gt;         &gt; with it?<br>
&gt;&gt;<br>
&gt;&gt;         Yonny,<br>
&gt;&gt;<br>
&gt;&gt;         As far as I know Axis2 SimpleHttpServer does not
currently<br>
&gt;&gt;         support SSL<br>
&gt;&gt;         out of the box (one can implement a custom listener,
though).
    <br>
&gt;&gt;         If there<br>
&gt;&gt;         is interest, I could contribute one<br>
&gt;&gt;<br>
&gt;&gt;         Oleg<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;         &gt;<br>
&gt;&gt;         &gt; Thanks<br>
&gt;&gt;         &gt;
    <br>
&gt;&gt;         &gt; --<br>
&gt;&gt;         &gt; Yonny Hao<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;        
---------------------------------------------------------------------<br>
&gt;&gt;         To unsubscribe, e-mail: <a
 href="mailto:axis-dev-unsubscribe@ws.apache.org">axis-dev-unsubscribe@ws.apache.org</a><br>
&gt;&gt;         For additional commands, e-mail: <a
 href="mailto:axis-dev-help@ws.apache.org">axis-dev-help@ws.apache.org</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Yonny Hao<br>
&gt;<br>
&gt;<br>
&gt;
---------------------------------------------------------------------<br>
&gt; To unsubscribe, e-mail: <a
 href="mailto:axis-dev-unsubscribe@ws.apache.org">
axis-dev-unsubscribe@ws.apache.org</a><br>
&gt; For additional commands, e-mail: <a
 href="mailto:axis-dev-help@ws.apache.org">axis-dev-help@ws.apache.org</a><br>
&gt;<br>
&gt;<br>
    <br>
--<br>
Sanjiva Weerawarana, Ph.D.<br>
Founder &amp; Director; Lanka Software Foundation; <a
 href="http://www.opensource.lk/">http://www.opensource.lk/</a><br>
Founder, Chairman &amp; CEO; WSO2, Inc.; <a href="http://www.wso2.com/">http://www.wso2.com/</a><br>
Director; Open Source Initiative; <a href="http://www.opensource.org/">
http://www.opensource.org/</a><br>
Member; Apache Software Foundation; <a href="http://www.apache.org/">http://www.apache.org/</a><br>
Visiting Lecturer; University of Moratuwa; <a
 href="http://www.cse.mrt.ac.lk/">http://www.cse.mrt.ac.lk/
    </a><br>
    <br>
---------------------------------------------------------------------<br>
To unsubscribe, e-mail: <a
 href="mailto:axis-dev-unsubscribe@ws.apache.org">axis-dev-unsubscribe@ws.apache.org</a><br>
For additional commands, e-mail: <a
 href="mailto:axis-dev-help@ws.apache.org">axis-dev-help@ws.apache.org</a><br>
    <br>
  </blockquote>
  </div>
  <br>
  <br clear="all">
  <br>
-- <br>
Yonny Hao
</blockquote>
</body>
</html>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message