PDA

View Full Version : Problems with mondrian.war



quitong123
05-08-2006, 08:41 AM
Hi mondrian users,
I am new in mondrian. I followed these steps to install mondrian:
Put commons-math-1.1.jar in mondrian_home\mondrian\lib (modify the build.xml)
Put jpivot.war in mondrian_home\mondrian\lib
Put the xmlunit.jar in mondrian_home\mondrian\lib (put the reference in the build.xml too)
I have the following configuration:
JAVA_HOME = C:\Arquivos de programas\Java\jdk1.5.0_06
CATALINA_HOME = C:\Arquivos de programas\Apache Software Foundation\Tomcat 5.0
TOMCAT_HOME = C:\Arquivos de programas\Apache Software Foundation\Tomcat 5.0
XALAN_HOME = C:\Arquivos de programas\xalan-j_2_6_0
ANT_HOME = C:\apache-ant-1.5.4
JUNIT_HOME = C:\Arquivos de programas\junit3.8.1
I don’t have any problem when i try :
Build clean
Build jar
Build war
Build deploy-war
Example:
[echo] ==============================================================
[echo] | Mondrian configuration info |
[echo] ==============================================================
[echo] project.location = C:\mondrian-2.1-RC\mondrian
[echo] jdk.home = C:\Arquivos de programas\Java\jdk1.5.0_06
[echo] catalina.home = C:\Arquivos de programas\Apache Software Fou
ndation\Tomcat 5.0
[echo] junit.home = C:\Arquivos de programas\junit3.8.1
[echo] mondrian.foodmart.catalogURL = file:C:\mondrian-2.1-RC\mondrian/demo
/FoodMart.xml
[echo] mondrian.foodmart.jdbcURL = jdbc:derby://localhost/foodmart;user=
sa;password=sa
[echo] mondrian.jdbcDrivers = org.apache.derby.jdbc.ClientDriver
[echo] ==============================================================
compile.tests:
[javac] Compiling 46 source files to C:\mondrian-2.1-RC\mondrian\testclasses
[javac] Note: C:\mondrian-2.1-RC\mondrian\testsrc\main\mondrian\xmla\test\Xm
laTestServletRequestWrapper.java uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
jar:
[zip] Building zip: C:\mondrian-2.1-RC\mondrian\lib\mondrian.jar
war:
[mkdir] Created dir: C:\mondrian-2.1-RC\mondrian\build\mondrian
[unzip] Expanding: C:\mondrian-2.1-RC\mondrian\lib\jpivot.war into C:\mondri
an-2.1-RC\mondrian\build\mondrian
[delete] Deleting 1 files from C:\mondrian-2.1-RC\mondrian\build\mondrian
[delete] Deleting 3 files from C:\mondrian-2.1-RC\mondrian\build\mondrian\WEB
-INF
[delete] Deleting 1 files from C:\mondrian-2.1-RC\mondrian\build\mondrian\WEB
-INF\queries
[delete] Deleting 5 files from C:\mondrian-2.1-RC\mondrian\build\mondrian\WEB
-INF\lib
[copy] Copying 1 file to C:\mondrian-2.1-RC\mondrian\build\mondrian\WEB-INF
[war] Building war: C:\mondrian-2.1-RC\mondrian\lib\mondrian.war
BUILD SUCCESSFUL
Then, I had copy the mondrian.war which is the result of the ant war and then i had put this war in the webapps of the tomcat and when i click in:
JPivot pivot table
JPivot pivot table by XMLA
JPivot with 4 hierarchies
JPivot with arrows
JPivot with colors
I receive the following exception message:
JPivot had an error ...
javax.servlet.ServletException: javax.servlet.jsp.JspException: mondrian/olap/fun/FunTableImpl$MemberListScalarExp
javax.servlet.ServletException: javax.servlet.jsp.JspException: mondrian/olap/fun/FunTableImpl$MemberListScalarExp
at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:821)
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
at org.apache.jsp.testpage_jsp._jspService(testpage_jsp.java:258)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at com.tonbeller.wcf.controller.RequestFilter$MyHandler.normalRequest(RequestFilter.java:139)
at com.tonbeller.wcf.controller.RequestSynchronizer.handleRequest(RequestSynchronizer.java:127)
at com.tonbeller.wcf.controller.RequestFilter.doFilter(RequestFilter.java:263)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:595)
I want to solve this problem as soon as possible so any help would be greatly accepted
Thanks

mondrian_grimes
06-05-2006, 05:40 AM
I've had the same error, expressed a bit differently, since I'm trying out a different Web server, Resin-3.0.18.
The traceback I get starts
java.lang.NoClassDefFoundError: mondrian/olap/fun/FunTableImpl$MemberListScalarExp
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)

jhyde
06-05-2006, 07:22 AM
Seth, which version? 2.1-RC had incompatibilities between jpivot and mondrian, but these should be fixed in 2.1.1.
Julian

mondrian_grimes
06-05-2006, 10:18 AM
This is with 2.1.1.

liu_hying
09-17-2006, 03:06 PM
I meet the same error.the FunTableImpl.java file has a big difference between V2.0.1 and V2.1.1.
How to solve it?

mondrian_nenu
09-21-2006, 08:56 PM
I also encounter the same problem. Unfortunately I don't have any solution yet!