Wednesday, February 12, 2014

Deploy and Enable Rampart in Axis2 ( Tomcat)


Please follow below steps to deploy rampart module and enable rampart for axis services which is deployed in Tomcat. Also you can follow same for deploying axis2 standalone or in another application server.

Step 1: Install and configure  axis2 in tomcat

Deploy axis2 in tomcat as explained here ( http://jayalalk.blogspot.com/2014/01/writing-axis2-services-and-deploying-in.html ). you can ignore this if you have already tomcat with axis2 module.

Step 2: Download the rampart module

Download the rampart latest binaries from http://axis.apache.org/axis2/java/rampart/download.html

Step 3: Extract the rampart distribution to a folder and copy modules and jar files


- Copy the  rahas-x.x.x.mar and rampart-x.x.x.mar  files from module directory to the TOMCAT_HOME/webapps/axis2/WEB-INF/modules
- Copy all the jars from lib folder to the TOMCAT_HOME/axis2/WEB-INF/lib

Step 4: Enable the rampart in axis2


- Add     <module ref="rampart"/> in  TOMCAT_HOME/webapps/axis2/WEB-INF/conf/axis2.xml to enable rampart for all services.
- If you want to enable rampart only for given service then you can edit services.xml and add <module ref="rampart"/>

Step 5: Verify the rampart enabled

- Login to adminstrative console  (http://localhost:8080/axis2/axis2-admin/ )
- Default user name password ( admin/axis2)
- Verify the modules engagement
System components --> Available Modules
System components --> Globally Engaged Modules

No comments:

Post a Comment