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 "Sagara Gunathunga (Commented) (JIRA)" <ji...@apache.org> on 2011/12/02 06:04:41 UTC

[jira] [Commented] (AXIS2-5180) how can i run a standalone axis2 server over https(SSL)

    [ https://issues.apache.org/jira/browse/AXIS2-5180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13161415#comment-13161415 ] 

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 - http://ssagara.blogspot.com/2009/10/axis2-on-embedded-jetty.html)

                
> how can i run a standalone axis2 server over https(SSL)
> -------------------------------------------------------
>
>                 Key: AXIS2-5180
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5180
>             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>(SSLServerIOEventDispatch.java:57)
> 	at org.apache.axis2.transport.nhttp.HttpCoreNIOSSLListener.getEventDispatch(HttpCoreNIOSSLListener.java:56)
> 	at org.apache.axis2.transport.nhttp.HttpCoreNIOListener.startServerEngine(HttpCoreNIOListener.java:85)
> 	at org.apache.axis2.transport.nhttp.HttpCoreNIOListener.access$100(HttpCoreNIOListener.java:51)
> 	at org.apache.axis2.transport.nhttp.HttpCoreNIOListener$1.run(HttpCoreNIOListener.java:197)
> 	at java.lang.Thread.run(Thread.java:619)
> 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 requset...

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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