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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to