axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sagara Gunathunga (Commented) (JIRA)" <>
Subject [jira] [Commented] (AXIS2-5180) how can i run a standalone axis2 server over https(SSL)
Date Fri, 02 Dec 2011 05:04:41 GMT


Sagara Gunathunga  commented on AXIS2-5180:

1.) This seem an user question to me and correct place to ask this kind of a question is Axis2
user list.
2.) Axis2 1.4.1 version released 4 years ago and not a active branch, at the moment 1.5 and
1.6 are the active branches.
3.) From Axis2 1.5 onwards simple Axis2 server does not support for HTTPS also it is not recommend
to use Axis2 Simple Server in production application .
4.) If the question related to embedding server you may use embedded Tomcat or embedded Jetty
instead of Simple Server. ( Sometimes ago i have listed few tips about embedding Jetty with
Axis2 here -

> how can i run a standalone axis2 server over https(SSL)
> -------------------------------------------------------
>                 Key: AXIS2-5180
>                 URL:
>             Project: Axis2
>          Issue Type: Bug
>          Components: transports
>    Affects Versions: 1.4.1
>            Reporter: chen guang
> my axis2 server is embedded within my app which is not a web app,so i should use the
standalone axis2 server.
> currently i use the class named org.apache.axis2.transport.http.SimpleHTTPServer  and
such config:
>  <transportReceiver name="http"
>                 class="org.apache.axis2.transport.http.SimpleHTTPServer">
>  <parameter name="port">8080</parameter>
> </transportReceiver>
> to support http transport.
> so i just refer to these and i uncommented:
>     <transportReceiver name="https" class="org.apache.axis2.transport.nhttp.HttpCoreNIOSSLListener">
>     	<parameter name="port" locked="false">9002</parameter>
>     	<parameter name="non-blocking" locked="false">true</parameter>
>         <parameter name="keystore" locked="false">
>             <KeyStore>
>                 <Location>serverKeystore.jks</Location>
>                 <Type>JKS</Type>
>                 <Password>password</Password>
>                 <KeyPassword>password</KeyPassword>
>             </KeyStore>
>         </parameter>
>     </transportReceiver>
> and use org.apache.axis2.transport.nhttp.HttpCoreNIOSSLListener to run the server
> unfortunately it doesn't work. i got such exception:
> java.lang.IllegalArgumentException: SSL context may not be null
> 	at org.apache.axis2.transport.nhttp.SSLServerIOEventDispatch.<init>(
> 	at org.apache.axis2.transport.nhttp.HttpCoreNIOSSLListener.getEventDispatch(
> 	at org.apache.axis2.transport.nhttp.HttpCoreNIOListener.startServerEngine(
> 	at org.apache.axis2.transport.nhttp.HttpCoreNIOListener.access$100(
> 	at org.apache.axis2.transport.nhttp.HttpCoreNIOListener$
> 	at
> to be honest,i could rather be using message-level security (using the WS-Security standard
as implemented by the Rampart module) than transport-level security (like SSL), but the customer

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message