<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16414" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=888013020-03032007><FONT face=Verdana 
color=#000080 size=2>The '<FONT face="Times New Roman" color=#000000 
size=3>Enclosure class <SPAN class=st id=st name="st">mondrian</SPAN>.<SPAN 
class=st id=st name="st">olap</SPAN>.<SPAN class=st id=st 
name="st">MondrianDef</SPAN> not found</FONT></FONT></SPAN><SPAN 
class=888013020-03032007><SPAN class=888013020-03032007><FONT face=Verdana 
color=#000080 size=2>' 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 &lt;catalog&gt;.xml file. For instance, 
if you try running with foodmart.xml, I think you'll find that error goes 
away.</FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=888013020-03032007><SPAN class=888013020-03032007><FONT 
face=Verdana color=#000080 size=2></FONT></SPAN></SPAN>&nbsp;</DIV>
<DIV><SPAN class=888013020-03032007><SPAN class=888013020-03032007><FONT 
face=Verdana color=#000080 size=2>Julian</FONT></SPAN></SPAN></DIV>
<DIV dir=ltr align=left><BR></DIV>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000080 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> mondrian-bounces@pentaho.org 
  [mailto:mondrian-bounces@pentaho.org] <B>On Behalf Of </B>Laurent 
  Valdes<BR><B>Sent:</B> Saturday, March 03, 2007 8:44 AM<BR><B>To:</B> 
  mondrian@pentaho.org<BR><B>Subject:</B> [Mondrian] Re: Mondrian in my Java 
  Program<BR></FONT><BR></DIV>
  <DIV></DIV>Sorry, I tested my JDBC string several times.<BR>Enclosure class 
  <SPAN class=st id=st name="st">mondrian</SPAN>.<SPAN class=st id=st 
  name="st">olap</SPAN>.<SPAN class=st id=st name="st">MondrianDef</SPAN> not 
  found. <BR>and the class does exist since I have done Class.forClass to check 
  for its existence.<BR><BR>Have a good day !<BR><BR><BR>
  <DIV><SPAN class=gmail_quote>2007/3/2, Laurent Valdes &lt;<A 
  href="mailto:valderama@gmail.com"> valderama@gmail.com</A>&gt;:</SPAN>
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Currently 
    I have the following:<BR><BR>OLAPTest ot=new OLAPTest(); 
    <BR>&nbsp;&nbsp;&nbsp; try{<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
    ot.initialize();<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; 
    catch(Exception e)<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp; 
    &nbsp;&nbsp;&nbsp; System.out.println("Erreur initialisation: 
    ");<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
    e.printStackTrace();<BR>&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; 
    <BR>&nbsp;&nbsp;&nbsp; Connection connection = 
    DriverManager.getConnection(<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
    "Provider=<SPAN class=st id=st name="st">mondrian</SPAN>;" 
    +<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "Jdbc=" + ot.jdbcUri + ";" 
    +<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "Catalog="+ "" + 
    ot.catalogUrl.toString(),<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 
    null,<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; false);<BR><BR>But I get the 
    following: <BR><BR><BR>Exception in thread "main" 
    org.eigenbase.xom.AssertFailure: Enclosure class <SPAN class=st id=st 
    name="st">mondrian</SPAN>.<SPAN class=st id=st name="st">olap</SPAN>.<SPAN 
    class=st id=st name="st">MondrianDef</SPAN> not found. 
    <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at 
    org.eigenbase.xom.DOMElementParser.getEnclosureClass(Unknown 
    Source)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at 
    org.eigenbase.xom.DOMElementParser.classArray(Unknown 
    Source)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at 
    org.eigenbase.xom.DOMElementParser.getArray(Unknown Source) 
    <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at <SPAN class=st id=st 
    name="st">mondrian</SPAN>.<SPAN class=st id=st name="st">olap</SPAN>.<SPAN 
    class=st id=st name="st">MondrianDef</SPAN>$Schema.&lt;init&gt;(<SPAN 
    class=st id=st name="st"> MondrianDef</SPAN>.java:104)<BR><BR><BR><BR>
    <DIV><SPAN class=gmail_quote>2007/3/2, Laurent Valdes &lt;<A 
    onclick="return top.js.OpenExtLink(window,event,this)" 
    href="mailto:valderama@gmail.com" target=_blank>valderama@gmail.com 
    </A>&gt;: </SPAN>
    <DIV><SPAN class=e id=q_111124bd2e819e40_1>
    <BLOCKQUOTE class=gmail_quote 
    style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi 
      everybody,<BR><BR>How are you ?<BR>I'm absolutely new in this 
      mailing-list. <BR clear=all><BR>I'm writing some java programs to automate 
      decisions in my company, and&nbsp; was trying to use Mondrian as it is 
      possible to use JDBC: from a Java program. <BR><BR>My first question is: 
      How do I execute MDX queries from Java code ?<BR>My second question is: 
      Does the client need to keep separated from the ROLAP server ?<BR>If no, 
      how can I do queries ?<BR>If yes, how can I start the server ? and then 
      how do I make OLAP queries ? <BR><BR>Many thanks for your help 
      !<BR><BR>Best regards,<BR><BR>Laurent.<BR><SPAN><BR><BR>-- <BR>«À attendre 
      que l'herbe pousse, le boeuf meurt de faim»<BR>«Le boeuf» @&lt;<A 
      onclick="return top.js.OpenExtLink(window,event,this)" 
      href="http://www.le-valdo.com" target=_blank> http://www.le-valdo.com 
      </A>&gt; </SPAN></BLOCKQUOTE></SPAN></DIV></DIV>
    <DIV><SPAN class=e id=q_111124bd2e819e40_3><BR><BR clear=all><BR>-- <BR>«À 
    attendre que l'herbe pousse, le boeuf meurt de faim»<BR>«Le boeuf» @&lt;<A 
    onclick="return top.js.OpenExtLink(window,event,this)" 
    href="http://www.le-valdo.com" target=_blank> 
    http://www.le-valdo.com</A>&gt; </SPAN></DIV></BLOCKQUOTE></DIV><BR><BR 
  clear=all><BR>-- <BR>«À attendre que l'herbe pousse, le boeuf meurt de 
  faim»<BR>«Le boeuf» @&lt;<A 
  href="http://www.le-valdo.com">http://www.le-valdo.com</A>&gt; 
</BLOCKQUOTE></BODY></HTML>