Hitachi Vantara Pentaho Community Forums
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: problem to install the binary release on w98

  1. #1

    Default problem to install the binary release on w98

    Hi,
    i just installed MONDRIAN to test it on a w98.
    I followed the HOW TO.
    When i try to test the installation i have the following:
    C:\test\mondrian\bin>C:\j2sdk\bin\java -classpath "c:\test\mondrian\lib\mondrian
    .jar;c:\test\mondrian\lib\ant.jar;c:\test\mondrian\lib\optional.jar;c:\test\mond
    rian\lib\xercesImpl.jar;c:\test\mondrian\lib\xml-apis.jar;c:\test\mondrian\lib\j
    unit.jar" -Dant.home="c:\test\mondrian" org.apache.tools.ant.Main -buildfile run
    time.xml test
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/
    Main
    What is the problem ?
    Ant is installed on the computer.
    I read in the HOWTO that we must modify the build.bat but i didn't find any BUILD.BAT in my MONDRIAN_HOME.
    So i don't understand at the moment !!
    I need to try it NOW !!!!!
    thanks

  2. #2
    Join Date
    Nov 1999
    Posts
    1,618

    Default RE: problem to install the binary release on w98

    You don't need a build.bat if you set the environment variables manually, as you seem to have done.
    I think the problem is
    -Dant.home="c:\test\mondrian".
    Try referencing the directory where you installed Ant.

  3. #3

    Default RE: problem to install the binary release on

    Ok i tried some other things.
    I copied the files mondrian.jar,ant.jar, xml-apis.jar ... in the c:\test\mondrian directory
    Then the compilation worked.
    But there are many tests which are wrng under JUNIT. here is the first error i have with JUNIT
    org/apache/commons/dbcp/ConnectionFactory
    java.lang.NoClassDefFoundError: org/apache/commons/dbcp/ConnectionFactory
    at mondrian.olap.DriverManager.getConnection(DriverManager.java:133)
    at mondrian.olap.DriverManager.getConnection(DriverManager.java:49)
    at mondrian.test.TestContext.getFoodMartConnection(TestContext.java:146)
    at mondrian.test.FoodMartTestCase.getConnection(FoodMartTestCase.java:43)
    at mondrian.test.FoodMartTestCase.runQuery(FoodMartTestCase.java:37)
    at mondrian.test.FoodMartTestCase.runQueryCheckResult(FoodMartTestCase.java:143)
    at mondrian.test.FoodMartTestCase.runQueryCheckResult(FoodMartTestCase.java:136)
    at mondrian.test.BasicQueryTest.testSample0(BasicQueryTest.java:411)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    I will try again and again bu t i think there is a little problem of accuracy in the install notes !!!
    Be sure i would like to try MONDRIAN but it's terrible not to manage installing it !!!!
    @+
    thanks for the answer
    eric

  4. #4

    Default there is a problem in the install notes

    Hi,
    i think there i s a problem in the install notes, because when i launch mondrian.bat a mondrian.jar is referenced in the CLASSPATH.
    But in the .zip which i downloaded on SOURCEFORGE and extracted there is no mondrian.bat.
    So Where is the mondrian.bat ???????
    eric

  5. #5

    Default RE: problem to install the binary release on

    Hi,
    in JUNIT i saw that some .jar missed mostely in the package ORG.APACHE.COMMONS, i have added all the .jar required
    After that it missed also JAVACUP.jar so i have added in the test\mondrian folder
    then it remain 1 error :
    Internal error: Failed to parse query [with member [Measures].[Foo] as 'Parameter("X",STRING,"x","A string") || ParamRef("Y") || "." ||ParamRef("X") || Parameter("Y",STRING,"y" || "Y","Other string")' select {[Measures].[Foo]} on columns from Sales]
    java.lang.RuntimeException: Internal error: Failed to parse query [with member [Measures].[Foo] as 'Parameter("X",STRING,"x","A string") || ParamRef("Y") || "." ||ParamRef("X") || Parameter("Y",STRING,"y" || "Y","Other string")' select {[Measures].[Foo]} on columns from Sales]
    at mondrian.olap.MondrianResource.newInternal(MondrianResource.java:45)
    at mondrian.olap.Util.newError(Util.java:445)
    at mondrian.olap.ConnectionBase.parseQuery(ConnectionBase.java:46)
    at mondrian.test.TestContext.executeFoodMart(TestContext.java:155)
    at mondrian.test.FoodMartTestCase.executeExpr(FoodMartTestCase.java:217)
    at mondrian.test.ParameterTest.testParamRef(ParameterTest.java:96)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    Caused by: java.lang.RuntimeException: Error while parsing MDX statement 'with member [Measures].[Foo] as 'Parameter("X",STRING,"x","A string") || ParamRef("Y") || "." ||ParamRef("X") || Parameter("Y",STRING,"y" || "Y","Other string")' select {[Measures].[Foo]} on columns from Sales'
    at mondrian.olap.MondrianResource.newWhileParsingMdx(MondrianResource.java:103)
    at mondrian.olap.Parser.parseInternal(Parser.java:626)
    at mondrian.olap.ConnectionBase.parseQuery(ConnectionBase.java:43)
    ... 19 more
    Caused by: java.lang.RuntimeException: Parameter 'Y' is referenced but never defined
    at mondrian.olap.MondrianResource.newMdxParamNeverDef(MondrianResource.java:380)
    at mondrian.olap.Parameter.validate(Parameter.java:173)
    at mondrian.olap.Query.resolveParameters(Query.java:1091)
    at mondrian.olap.Query.resolve(Query.java:168)
    at mondrian.olap.Query.resolve(Query.java:131)
    at mondrian.olap.Query.<init>(Query.java:66)
    at mondrian.olap.Query.<init>(Query.java:50)
    at mondrian.olap.Parser.makeQuery(Parser.java:638)
    at mondrian.olap.CUP$Parser$actions.CUP$Parser$do_action(Parser.java:1369)
    at mondrian.olap.Parser.do_action(Parser.java:569)
    at java_cup.runtime.lr_parser.parse(lr_parser.java:569)
    at mondrian.olap.Parser.parseInternal(Parser.java:621)
    ... 20 more
    I don't know why building is so difficult, it took me 12 minutes to do all the tests on a PIV.
    But there is still one error and also 12 failures.
    see you soon
    eric

  6. #6

    Default RE: problem to install the binary release on w98

    hi,
    I just installed MONDRIAN to test it on a w2000
    I followed the following instructions as given in mondrian doc.
    my project location is c:\mondrian-1.0.1
    Ant location = c:\jakarta-ant-1.5
    Junit location = c:\junit3.8.1
    xalan = c:\xalan-j_2_5_2
    when i tried to compile by typing command
    c:\mondrian-1.0.1\bin\mondrian.bat
    i got following errors
    C:\mondrian-1.0.1\bin>mondrian.bat
    C:\mondrian-1.0.1\bin>d:\j2sdk1.4.0\bin\java -classpath "c:\jakarta-ant-1.0.1\li
    b\ant.jar\lib\mondrian.jar;c:\jakarta-ant-1.5\lib\ant.jar;c:\jakarta-ant-1.5\lib
    \optional.jar;c:\jakarta-ant-1.5\lib\xercesImpl.jar;c:\jakarta-ant-1.5\lib\xml-a
    pis.jar;c:\junit3.8.1\junit.jar" -Dant.home="c:\jakarta-ant-1.0.1\lib\ant.jar" o
    rg.apache.tools.ant.Main -buildfile runtime.xml
    Buildfile: runtime.xml
    test:
    [echo] Running mondrian tests
    [echo] Catalog is jar:file:/C:\mondrian-1.0.1\lib/mondrian.war!/WEB-INF/que
    ries/FoodMart.xml
    [echo] JDBC is jdbc:mysql://localhost/foodmart?user=root&#38;password=
    [echo] JDBC drivers are org.gjt.mm.mysql.Driver,com.mysql.jdbc.Driver
    [junit] Running mondrian.test.Main
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
    [junit] TEST mondrian.test.Main FAILED
    [junitreport] Using Xalan version: Xalan Java 2.2.D11
    [junitreport] Transform time: 1091ms
    [echo] See results at junit-results/html/index.html.
    BUILD SUCCESSFUL
    Total time: 4 seconds
    What is the problem ?
    Ant is installed on the computer.
    I read in the HOWTO that we must modify the build.bat but i didn't find any BUILD.BAT in my MONDRIAN_HOME.
    So i don't understand at the moment !! what to do
    can any one sugest
    when i type
    C:\mondrian-1.0.1\bin>mondrian.bat deploy-to-tomcat
    i got foll. error
    C:\mondrian-1.0.1\bin>mondrian.bat deploy-to-tomcat
    C:\mondrian-1.0.1\bin>d:\j2sdk1.4.0\bin\java -classpath "c:\jakarta-ant-1.0.1\li
    b\ant.jar\lib\mondrian.jar;c:\jakarta-ant-1.5\lib\ant.jar;c:\jakarta-ant-1.5\lib
    \optional.jar;c:\jakarta-ant-1.5\lib\xercesImpl.jar;c:\jakarta-ant-1.5\lib\xml-a
    pis.jar;c:\junit3.8.1\junit.jar" -Dant.home="c:\jakarta-ant-1.0.1\lib\ant.jar" o
    rg.apache.tools.ant.Main -buildfile runtime.xml deploy-to-tomcat
    Buildfile: runtime.xml
    BUILD FAILED
    Target `deploy-to-tomcat' does not exist in this project.
    Total time: 1 second
    C:\mondrian-1.0.1\bin>

  7. #7

    Default RE: problem to install the binary release

    hi,
    I just installed MONDRIAN to test it on a w2000
    I followed the following instructions as given in mondrian doc.
    my project location is c:\mondrian-1.0.1
    Ant location = c:\jakarta-ant-1.5
    Junit location = c:\junit3.8.1
    xalan = c:\xalan-j_2_5_2
    when i tried to compile by typing command
    c:\mondrian-1.0.1\bin\mondrian.bat
    i got following errors
    C:\mondrian-1.0.1\bin>mondrian.bat
    C:\mondrian-1.0.1\bin>d:\j2sdk1.4.0\bin\java -classpath "c:\jakarta-ant-1.0.1\li
    b\ant.jar\lib\mondrian.jar;c:\jakarta-ant-1.5\lib\ant.jar;c:\jakarta-ant-1.5\lib
    \optional.jar;c:\jakarta-ant-1.5\lib\xercesImpl.jar;c:\jakarta-ant-1.5\lib\xml-a
    pis.jar;c:\junit3.8.1\junit.jar" -Dant.home="c:\jakarta-ant-1.0.1\lib\ant.jar" o
    rg.apache.tools.ant.Main -buildfile runtime.xml
    Buildfile: runtime.xml
    test:
    [echo] Running mondrian tests
    [echo] Catalog is jar:file:/C:\mondrian-1.0.1\lib/mondrian.war!/WEB-INF/que
    ries/FoodMart.xml
    [echo] JDBC is jdbc:mysql://localhost/foodmart?user=root&#38;password=
    [echo] JDBC drivers are org.gjt.mm.mysql.Driver,com.mysql.jdbc.Driver
    [junit] Running mondrian.test.Main
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
    [junit] TEST mondrian.test.Main FAILED
    [junitreport] Using Xalan version: Xalan Java 2.2.D11
    [junitreport] Transform time: 1091ms
    [echo] See results at junit-results/html/index.html.
    BUILD SUCCESSFUL
    Total time: 4 seconds
    What is the problem ?
    Ant is installed on the computer.
    I read in the HOWTO that we must modify the build.bat but i didn't find any BUILD.BAT in my MONDRIAN_HOME.
    So i don't understand at the moment !! what to do
    can any one sugest
    when i type
    C:\mondrian-1.0.1\bin>mondrian.bat deploy-to-tomcat
    i got foll. error
    C:\mondrian-1.0.1\bin>mondrian.bat deploy-to-tomcat
    C:\mondrian-1.0.1\bin>d:\j2sdk1.4.0\bin\java -classpath "c:\jakarta-ant-1.0.1\li
    b\ant.jar\lib\mondrian.jar;c:\jakarta-ant-1.5\lib\ant.jar;c:\jakarta-ant-1.5\lib
    \optional.jar;c:\jakarta-ant-1.5\lib\xercesImpl.jar;c:\jakarta-ant-1.5\lib\xml-a
    pis.jar;c:\junit3.8.1\junit.jar" -Dant.home="c:\jakarta-ant-1.0.1\lib\ant.jar" o
    rg.apache.tools.ant.Main -buildfile runtime.xml deploy-to-tomcat
    Buildfile: runtime.xml
    BUILD FAILED
    Target `deploy-to-tomcat' does not exist in this project.
    Total time: 1 second
    C:\mondrian-1.0.1\bin>
    Its very very urgent
    Thanks in advance

  8. #8
    Join Date
    Sep 2002
    Posts
    475

    Default RE: problem to install the binary release

    This is open source OLAP you are "installing", not Windows XP or the Sims (both of which are %$^$$&!!! to install!). The documentation on the Mondrian web site is not correct.
    Look at mondrian.bat. As per the Mondrian web site, mondrian.bat by default (no parameters), runs the Mondrain test suite. Look at junit-results/html/index.html to find out what happened.
    As the output you posted shows, mondrian.bat calls Ant with the bin/runtime.xml build script. If you look at that script, there is no deploy-to-tomcat target in it. The closest you are going to get is deploy-war target in the source distribution. I would suggest that you get the JPivot distribution to see Mondrian working in a web site. If you get the Mondrian test suite going properly, then the JPivot default WAR deployment will work.
    Cheers,
    Sherman

  9. #9

    Default RE: problem to install the binary release

    thanks Sherman for ur immediate reply.
    Actually the problem is while compilation it is not finding
    mondrian.test.Main
    the error in junit-results/html/index.html is as follows
    mondrian.test.Main
    java.lang.ClassNotFoundException: mondrian.test.Main
    at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:130)
    i dont find this class
    plz suggest what to do

  10. #10

    Default RE: problem to install the binary release

    thanks Sherman for ur immediate reply.
    Actually the problem is while compilation it is not finding
    mondrian.test.Main
    the error in junit-results/html/index.html is as follows
    mondrian.test.Main
    java.lang.ClassNotFoundException: mondrian.test.Main
    at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:130)
    i dont find this class
    plz suggest what to do

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.