So how do you solve it? It is not too hard but a bit tricky. First, open up the axis2.war file. On Mac OS X, you can do this by using StuffIt.app. Just navigate in finder to the directory containing axis2.war, control-click, select “Open with…”, and then choose ~/Applications/StuffIt.app. This will expand the WAR file in the same directory.
Within the directory, there are two files you have to get rid of. I first tried to delete xml-apis-1.3.04.jar and xercesImpl-2.8.1.jar thinking that should work. This is shown below.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicbRX2QDHcrL4eae-JFcF5Lb-TocWB4R8jbG3828xBvY-3ea5uHy9yeAnTTT7KmDghA87AI3ZgVDd0A7Fz0ljcHsD1gq-iRg4VIYtx3b-mxLGMjtryguAogQd0F1PYvP33hvBK/s400/Picture+10.png)
It actually did but lead to another problem (later). To get all the files back into a war, you have to do two things. The first is to use the command "jar -cvf
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfauloPGkfnLE3MFBcK5m68v8fsdC8LlnMvPN_obdigKrecwwuxs0URqxR1xFxPqG6O2iQpEkd3c-ofhZGIjOUxCJcEg3T6HsjxSn0Rbv9vBpQv3kBL2bmEaX9IQw7wGIYT7Oi/s400/Picture+12.png)
After this, on a Unix-based system, you have to change the permissions to ensure the file is usable by the app server. Use the chmod 775
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_MruAZ4EcOjy0e8ipYfhdwHO5RHqzaZLubKRffyCSjNFtJAHl3WoCC5euPxWohBjsBSdJnSU18WtwS3Dn8YjUhp_GLvAtsaq5xaNtbbsG97XBfrhnSVwaTmJZoNzixH9nxlID/s400/Picture+13.png)
Figuring I had this problem licked, I started up the appserver. It started fine, however when I went to navigate to the http://localhost:8080/axis2/ URL, I got another error. This time is was a mismatch in impedance between the JSP servlet jars. The error comes out as "The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory". The problem is that the build of axis2 I downloaded had an older version that did not have the same method. Once again, to rectify this, open up the axis2.war file and remove another file called "servlet-api-2.3.jar". Repackage the war file and chmod it so that it is executable by the app server.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0HYLLKZwRJ8vJaGVZb3h4iRY57GWRvuMpq-VQ5dXy1Q6SAjFzmnDgW3Db4Zl-1fvXFIT6xeDeYl_xYgz24lymLY1e2QDpOJI2c6HJp03UUcrpGguxkkk5FQzPZmZGftCTmYA2/s400/Picture+11.png)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgzB3DP0nbdR2ySZCm_eQ9qos8FRHcrDxj5tGBHpfIv250r0TUSsd8eBDTSTf1akP6-YZI6bEvNo02JTxSGGVaVRSoAkmlAGrfoqOSZFr2J2cz2WX5PnDJlpmpv_Fud7Z-3FCF/s400/Picture+14.png)