[Mondrian] Re: Mondrian in my Java Program

michael bienstein mbienstein at yahoo.fr
Sun Mar 4 08:15:38 EST 2007


1) Check if MondrianDef.class is in the JAR
2) Write a JSP that checks if Class.forName() finds the class. (e.g. <html><body><%String n = request.getParameter("clazz"); if (n!= null) {try {Class c=Class.forName(clazz);%><H1>Found <%=c%></H1><%}catch (ClassNotFoundException ex) {%><H1>Not found:<%=clazz%></H1><%}}%><FORM><INPUT type="text" name="clazz" value="<%=clazz == null ? "" : clazz%>"><input type="submit" value="Go"></FORM></BODY></HTML>
3) If that doesn't work, see if you can check the context class loader used.

Michael

----- Message d'origine ----
De : Laurent Valdes <valderama at gmail.com>
À : Mondrian developer mailing list <mondrian at pentaho.org>
Envoyé le : Dimanche, 4 Mars 2007, 14h10mn 41s
Objet : Re: Re : [Mondrian] Re: Mondrian in my Java Program

Nope, it does the same thing.

Laurent

2007/3/4, Laurent Valdes <valderama at gmail.com>:
Glassfish libraries are in classpath, but I'm not using glassfish. The program is run from the command line.
However I'll have a look at this.

Many thanks,

Laurent.




2007/3/4, michael bienstein <mbienstein at yahoo.fr>:

Just a guess:


/C:/Documents%20and%20Settings/VALDES.SUPRATEC_NT/Bureau/pentaho/mondrian-2.2.2/lib/mondrian.jar

/C:/Documents%20and%20Settings/VALDES.SUPRATEC_NT/Bureau/pentaho/mondrian-2.2.2/mondrian-2.2.2-src/mondrian-2.2.2/src/main/


Why do you have the src and the jar at the same time?  The source isn't compiled so it shouldn't be there.  BUT if Glassfish does some on-the-fly compiling and that directory is higher in the class path, then the inner class for MondrianDef might - just might - be found and bind to the wrong classpath entry blocking MondrianDef from being found correctly since it is a generated file?







		 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 

Yahoo! Questions/Réponses.


_______________________________________________
Mondrian mailing list

Mondrian at pentaho.org

http://lists.pentaho.org/mailman/listinfo/mondrian







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





-- 
«À attendre que l'herbe pousse, le boeuf meurt de faim»
«Le boeuf» @<http://www.le-valdo.com>
_______________________________________________
Mondrian mailing list
Mondrian at pentaho.org
http://lists.pentaho.org/mailman/listinfo/mondrian







	

	
		
___________________________________________________________________________ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pentaho.org/pipermail/mondrian/attachments/20070304/9ccd0701/attachment.html 


More information about the Mondrian mailing list