"JPivot had an error" on embedded install on Ubuntu 14.04
To reproduce
Ubuntu 14.04.
Install Oracle Java 7 with:
sudo add-apt-repository -y ppa:webupd8team/java
sudo aptitude update
sudo aptitude install -y oracle-java7-installer
(has to be 7, 8 does not work)
Set:
export JAVA_HOME='/usr/lib/jvm/java-7-oracle'
on ~/.profile
Install Tomcat 7 with:
sudo aptitude install -y tomcat7
And set the Java for it at sudo vim /etc/default/tomcat7:
JAVA_HOME=/usr/lib/jvm/java-7-oracle
Start tomcat: sudo service start tomcat7. localhost:8080 shows it's running.
Clone this repo, and:
ant derby-war
Unzip lib/mondrian-embedded.war to TOMCAT_HOME/webapps/mondrian-embedded`.
What happens
-
http://localhost:8080/mondrian-embedded/ shows the list of examples. Good.
-
http://localhost:8080/mondrian/testpage.jsp?query=mondrian, the first link, gives
JPivot had an errorwith the following stack trace: https://gist.github.com/cirosantilli/3d65bf5f816c2e51de0e#file-testpage
-
http://localhost:8080/mondrian-embedded/xmlaTest.jsp gives
HTTP Status 500 - javax.servlet.ServletException: java.lang.NoClassDefFoundError: mondrian/test/DiffRepositorywith the following stack trace: https://gist.github.com/cirosantilli/3d65bf5f816c2e51de0e#file-testpage
Maybe http://lists.pentaho.org/pipermail/mondrian/2014-October/004999.html would solve this? But it requires so many Mondrian-specific manual steps that I haven't tried. I recommend keeping this open until I find what I did wrong, or a better installation method exists.
It would be great if there was a simpler install method on Ubuntu like a PPA, or a VM.