Forums Register Login

SSL in standalone axis2 1.4.1

+Pie Number of slices to send: Send
Hi,

How do I enable SSL on the server side on standalone (no using Tomcat) Axis2 1.4.1 ?

When I try to uncomment the https lines in the axis2.xml i get NullPointerExceptions like:
NullPointerException at org.apache.axis2.transport.nhttp.HttpCoreNIOSSLListener

I cannot find a good tutorial about this.
+Pie Number of slices to send: Send
I am not quite sure if you can switched it on in axis2.xml. But something that woked for me is rampart modules.

You will need to include security modules Rampart along with with Axis 2. Look into http://wso2.org/library/3190#Step_3._Engaging_Rampart_and_setting_authentication_information.
You will also uncomment some code in tomcat/other app server's server.xml.

To follow the tutorial which also talk about user name token authentication, which you may leave out just use the SSL part.
You will need to edit the META-INF/services.xml in server to add these policy. Here Your concern should be which defines ssl, you can remove the which is used for user name token.

+Pie Number of slices to send: Send
I've tried to do that but my problem is that I cannot enable the ssl in axis2.xml

I've uncommented the necessary code:


But when I try to run the server I get

+Pie Number of slices to send: Send
I just followed the tutorial as I mentioned earlier. I did not change the axis2.xml for enabling SSL. Also make sure that you enable SSL in tomcat server.xml. You probably need to add rampart jars and modules in your classpath. If you are using rampart also add it to the services.xml in both the places and key store definitions . I used axis 1.5 and rampart 1.5 and it worked.
+Pie Number of slices to send: Send
Wouldn't you rather be using message-level security (using the WS-Security standard as implemented by the Rampart module) than transport-level security (like SSL)?
Look! It's Leonardo da Vinci! And he brought a tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 3701 times.
Similar Threads
Axis2 NoSuchMethodError
jdk6 Failed to extract complete Document from SoapBody
Error in deploying web services in axis2 when deployed on https
Help! Wsdl2Java Can't parse a Coldfusion WSDL?
axis2 app error on tomcat or jetty
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 01:56:19.