[Mondrian] Re: Mondrian in my Java Program

Julian Hyde julianhyde at speakeasy.net
Sat Mar 3 15:32:39 EST 2007

The 'Enclosure class mondrian.olap.MondrianDef not found' error is not
one I've seen before. I don't think it means that
mondrian.olap.MondrianDef.class is not on the classpath -- I think that
there is an error in the format of your <catalog>.xml file. For
instance, if you try running with foodmart.xml, I think you'll find that
error goes away.


From: mondrian-bounces at pentaho.org [mailto:mondrian-bounces at pentaho.org]
On Behalf Of Laurent Valdes
Sent: Saturday, March 03, 2007 8:44 AM
To: mondrian at pentaho.org
Subject: [Mondrian] Re: Mondrian in my Java Program

Sorry, I tested my JDBC string several times.
Enclosure class mondrian.olap.MondrianDef not found. 
and the class does exist since I have done Class.forClass to check for
its existence.

Have a good day !

2007/3/2, Laurent Valdes < valderama at gmail.com
<mailto:valderama at gmail.com> >: 

Currently I have the following:

OLAPTest ot=new OLAPTest(); 
    catch(Exception e)
        System.out.println("Erreur initialisation: ");
    Connection connection = DriverManager.getConnection(
        "Provider=mondrian;" +
        "Jdbc=" + ot.jdbcUri + ";" +
        "Catalog="+ "" + ot.catalogUrl.toString(),

But I get the following: 

Exception in thread "main" org.eigenbase.xom.AssertFailure: Enclosure
class mondrian.olap.MondrianDef not found. 
        at org.eigenbase.xom.DOMElementParser.getEnclosureClass(Unknown
        at org.eigenbase.xom.DOMElementParser.classArray(Unknown Source)
        at org.eigenbase.xom.DOMElementParser.getArray(Unknown Source) 
        at mondrian.olap.MondrianDef$Schema.<init>(

2007/3/2, Laurent Valdes <valderama at gmail.com
<mailto:valderama at gmail.com> >: 

Hi everybody,

How are you ?
I'm absolutely new in this mailing-list. 

I'm writing some java programs to automate decisions in my company, and
was trying to use Mondrian as it is possible to use JDBC: from a Java

My first question is: How do I execute MDX queries from Java code ?
My second question is: Does the client need to keep separated from the
ROLAP server ?
If no, how can I do queries ?
If yes, how can I start the server ? and then how do I make OLAP queries

Many thanks for your help !

Best regards,


«À attendre que l'herbe pousse, le boeuf meurt de faim»
«Le boeuf» @< http://www.le-valdo.com  <http://www.le-valdo.com> > 

«À attendre que l'herbe pousse, le boeuf meurt de faim»
«Le boeuf» @<  <http://www.le-valdo.com> http://www.le-valdo.com> 

«À attendre que l'herbe pousse, le boeuf meurt de faim»
«Le boeuf» @<http://www.le-valdo.com> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pentaho.org/pipermail/mondrian/attachments/20070303/481796cd/attachment.html 

More information about the Mondrian mailing list