[Mondrian] [MondrianFoodMartLoader] java.lang.NoClassDefFoundError

Yanis Guenane yg at cassini-solutions.com
Thu Oct 28 08:42:44 EDT 2010


I have one more question.

When I run "ant test" after loading database and configuring
mondrian.properties I got this error several time :

     [java]     at
> mondrian.test.TestContext.assertEqualsVerbose(TestContext.java:1157)

     [java]     at
> mondrian.test.TestContext.assertEqualsVerbose(TestContext.java:1115)

     [java]     at
> mondrian.rolap.BatchTestCase.checkNative(BatchTestCase.java:805)

     [java]     at
> mondrian.rolap.FilterTest.testMixedInIsFilters(FilterTest.java:166)

     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)

     [java]     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

     [java]     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

     [java]     at
> mondrian.test.MondrianTestRunner$2.run(MondrianTestRunner.java:139)

     [java]     at java.lang.Thread.run(Thread.java:636)


What could be the reason ?

On Thu, Oct 28, 2010 at 3:04 AM, Yanis Guenane <yg at cassini-solutions.com>wrote:

> Alright,
>
> My bad, I thought I had to give it the path, if not I didn't know how it
> was going to find it. Someone at word did explain me why.
>
> Thanks again for your answers Julian it does work now.
>
>
> On Thu, Oct 28, 2010 at 2:46 AM, Julian Hyde <jhyde at pentaho.com> wrote:
>
>>  Change
>>
>>
>> /home/postgres/Apps/Mondrian/mondrian-3.2.0.13583/testsrc/main/mondrian/test/loader/MondrianFoodMartLoader.java
>>
>> to
>>
>> mondrian.test.loader.MondrianFoodMartLoader
>>
>> See http://mondrian.pentaho.com/documentation/installation.php and in
>> bin/loadFoodMart.sh if you need more example command lines.
>>
>> Julian
>>
>>  ------------------------------
>> *From:* Yanis Guenane [mailto:yg at cassini-solutions.com]
>> *Sent:* Thursday, October 28, 2010 2:40 AM
>> *To:* jhyde at pentaho.com; Mondrian developer mailing list
>> *Subject:* Re: [Mondrian] [MondrianFoodMartLoader]
>> java.lang.NoClassDefFoundError
>>
>> Thanks Julian for the answer,
>>
>> But it did not work. Even after the change, I still get the same error.
>>
>> Any other idea ?
>>
>> Thanks anyway,
>>
>> On Thu, Oct 28, 2010 at 2:28 AM, Julian Hyde <jhyde at pentaho.com> wrote:
>>
>>>  Change
>>>
>>> MondrianFoodMartLoader.java
>>>
>>> to
>>>
>>> MondrianFoodMartLoader
>>>
>>> and it should work.
>>>
>>> Julian
>>>
>>>  ------------------------------
>>> *From:* mondrian-bounces at pentaho.org [mailto:
>>> mondrian-bounces at pentaho.org] *On Behalf Of *Yanis Guenane
>>> *Sent:* Thursday, October 28, 2010 1:01 AM
>>> *To:* Mondrian developer mailing list
>>> *Subject:* [Mondrian] [MondrianFoodMartLoader]
>>> java.lang.NoClassDefFoundError
>>>
>>>   Hi guys !
>>>
>>> Second day of Mondrian installation.
>>> Now I am facing problems trying to feed the mart.
>>>
>>> I could read several post about user getting the same problem but most of
>>> the post were out dated (2006-2007).
>>>
>>> This is my command line (it's a one line command)
>>>
>>>  java -cp
>>>> "/home/postgres/Apps/Mondrian/mondrian-3.2.0.13583/lib/log4j.jar:/home/postgres/Apps/Mondrian/mondrian-3.2.0.13583/lib/eigenbase-xom.jar:/home/postgres/Apps/Mondrian/mondrian-3.2.0.13583/lib/eigenbase-resgen.jar:/home/postgres/Apps/Mondrian/mondrian-3.2.0.13583/lib/eigenbase-properties.jar:/home/postgres/Apps/Mondrian/mondrian-3.2.0.13583/lib/postgresql-8.4-702.jdbc4.jar:/home/postgres/Apps/Mondrian/mondrian-3.2.0.13583/lib/mondrian.jar" /home/postgres/Apps/Mondrian/mondrian-3.2.0.13583/testsrc/main/mondrian/test/loader/MondrianFoodMartLoader.java
>>>> -verbose -tables -data -indexes -jdbcDrivers=com.postgresql.jdbc.Driver
>>>> -inputFile=/home/postgres/Apps/Mondrian/mondrian-3.2.0.13583/demo/FoodMartCreateData.sql
>>>> -outputJdbcURL="jdbc:postgresql://localhost/foodmart?user=postgres&password=xxx""
>>>
>>>
>>> There is the error I am getting
>>>
>>>  Exception in thread "main" java.lang.NoClassDefFoundError:
>>>> MondrianFoodMartLoader/java
>>>
>>> Caused by: java.lang.ClassNotFoundException: MondrianFoodMartLoader.java
>>>
>>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
>>>
>>>         at java.security.AccessController.doPrivileged(Native Method)
>>>
>>>         at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
>>>
>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
>>>
>>>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
>>>
>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
>>>
>>> Could not find the main class: MondrianFoodMartLoader.java. Program will
>>>> exit.
>>>
>>>
>>> Does someone has an idea of the why ?
>>> --
>>> *Yanis Guenane*
>>> *Cassini Solutions** *
>>> *BI Developer*
>>> 5 rue Sextius Michel
>>> 75015, Paris, FRANCE
>>>
>>> Phone : (+33)1.71.19.45.33
>>> E-mail  : yg at cassini-solutions.com
>>>
>>>
>>> _______________________________________________
>>> Mondrian mailing list
>>> Mondrian at pentaho.org
>>> http://lists.pentaho.org/mailman/listinfo/mondrian
>>>
>>>
>>
>>
>> --
>> *Yanis Guenane*
>> *Cassini Solutions** *
>> *BI Developer*
>> 5 rue Sextius Michel
>> 75015, Paris, FRANCE
>>
>> Phone : (+33)1.71.19.45.33
>> E-mail  : yg at cassini-solutions.com
>>
>>
>
>
> --
> *Yanis Guenane*
> *Cassini Solutions** *
> *BI Developer*
> 5 rue Sextius Michel
> 75015, Paris, FRANCE
>
> Phone : (+33)1.71.19.45.33
> E-mail  : yg at cassini-solutions.com
>
>


-- 
*Yanis Guenane*
*Cassini Solutions** *
*BI Developer*
5 rue Sextius Michel
75015, Paris, FRANCE

Phone : (+33)1.71.19.45.33
E-mail  : yg at cassini-solutions.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pentaho.org/pipermail/mondrian/attachments/20101028/b9112bba/attachment.html 


More information about the Mondrian mailing list