Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: To Load FoodMart - Exception in thread "main" java.lang.NoClassDefFoundError

  1. #1
    Join Date
    Feb 2013
    Posts
    1

    Default To Load FoodMart - Exception in thread "main" java.lang.NoClassDefFoundError

    I'm in Windows 7.

    I get a Exception in thread, i don´t know why.\
    I added all the .jars to my Path described in this command-line:
    C:\mondrian\lib\mondrian.jar;C:\mondrian\lib\log4j-1.2.8.ja
    r;C:\mondrian\lib\commons-logging-1.0.4.jar;C:\mondrian\lib\eigenbase-xom.jar;C:
    \mondrian\lib\eigenbase-resgen.jar;C:\mondrian\lib\eigenbase-properties.jar;C:\m
    ondrian\lib\postgres-jdbc.jar

    I copied the .jars from WEB-INF to C:\mondrian\lib , because some .jars weren't in C:\mondrian\lib.

    This is the instruction and the respective Error of CMD :

    C:\mondrian>java -cp C:\mondrian\lib\mondrian.jar;C:\mondrian\lib\log4j-1.2.8.ja
    r;C:\mondrian\lib\commons-logging-1.0.4.jar;C:\mondrian\lib\eigenbase-xom.jar;C:
    \mondrian\lib\eigenbase-resgen.jar;C:\mondrian\lib\eigenbase-properties.jar;C:\m
    ondrian\lib\postgres-jdbc.jar mondrian.test.loader.MondrianFoodMartLoader -verbo
    se -tables -data -indexes -jdbcDrivers=org.postgresql.Driver,sun.jdbc.odbc.JdbcO
    dbcDriver -inputFile=C:\mondrian-3.5.0\demo\FoodMartCreateData.sql -outputJdbcUR
    L=jdbcostgres://localhost/foodmart -outputJdbcUser=postgres -outputJdbcPasswor
    d=1234

    Exception in thread "main" java.lang.NoClassDefFoundError: org/olap4j/mdx/Quoting
    at mondrian.test.loader.MondrianFoodMartLoader.<clinit>(MondrianFoodMart
    Loader.java:98)
    Caused by: java.lang.ClassNotFoundException: org.olap4j.mdx.Quoting
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 1 more


    Please help me , i want to use the Database on Postgres.

    Regards
    Elian

  2. #2
    Join Date
    Mar 2007
    Posts
    142

    Default

    Looks like you have a version of olap4j that doesn't work with your version of Mondrian. What are the exact version numbers you are using?

    Also, I'd recommend using ant to load foodmart. Create a file called mondrian.properties at the root of the source (adjust acordingly):

    Code:
    mondrian.foodmart.jdbcURL=jdbc:mysql://localhost/foodmart
    mondrian.foodmart.jdbcUser=foodmart
    mondrian.foodmart.jdbcPassword=foodmart
    mondrian.jdbcDrivers=com.mysql.jdbc.Driver
    driver.classpath=dev-lib/mysql-connector-java-5.1.13-bin.jar
    After that, you jsut need to run:

    Code:
    ant load-foodmart
    Luc Boudreau
    aka. Luc le Magnifique
    aka. Monsieur Oui Oui

    Lead Engineer, Pentaho Corporation
    Web: http://devdonkey.blogspot.com
    Twitter: luclemagnifique
    IRC: Monsieur_Oui_Oui@freenode

Tags for this Thread

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.