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.
samarjit samanta
Greenhorn
Joined: Nov 07, 2010
Posts: 9
posted
0
I am not quite sure if you can switched it on in axis2.xml. But something that woked for me is rampart modules.
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.
Aleksander Braula
Greenhorn
Joined: Nov 20, 2009
Posts: 10
posted
0
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
samarjit samanta
Greenhorn
Joined: Nov 07, 2010
Posts: 9
posted
0
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.
Lester Burnham
Rancher
Joined: Oct 14, 2008
Posts: 1337
posted
0
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)?
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.