In my environment (Struts 1.2, JBoss 4.x, Tomcat 5.x) simply replacing the mondrian.jar with latest jar library from Mondrian Sourceforge project does not work. It fails with several ClassNotFoundException and/or NoSuchMethodError during runtime. Here is what I did and it worked fine:
- Download latest Mondrian distribution
- Expand the dowloaded jar archive
- Navigate to WEB-INF/classes in the expanded location
- Create jpivot.jar from classes inside WEB-INF/classes directory e.g. using jar command line tool as shown below. Run this command inside WEB-INF/classes directory.
- jar cvfz jpivot.jar com/*
5. Replace the jpivot.jar inside the expanded mondrian/lib directory with the jpivot.jar created above
6. Copy all the jar files in the lib directory (including new jpivot.jar) to your deployment location. Voila, you have upgraded JPivot 1.8 to the latest mondrian (3.3) release.
Enjoy!