Thursday, November 25, 2010

Deploy Axis2 on AIX

On WebLogic running on AIX, you will need to package the webservice into a .aar file before Axis2 can recognize the web service. On other operating systems like Windows, packaging the war file without the .aar file works fine!

Here's how you do it:
1. In Eclipse, navigate to the services directory via:
Project Name>WebContent>WEB-INF>services>


2. Right click on the service and click on Export


3. Choose General>Archive File and click on Next


4. Uncheck the service directory but ensure that all the subdirectories are checked. Make sure the file has the extension .aar and choose Finish.



5. Choose the overwrite the file if asked:


6. Next, export the service as a war for deployment. Right click on the project and choose Export


7. Choose war file to export


8. Specify the destination folder and click on Finish


9. Once the export to war is complete, deploy it on your App Server.