PDA

View Full Version : Re : Re : [Mondrian] Re: Mondrian in my Java Program



michael bienstein
03-04-2007, 09:26 AM
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 (DOT) com>

Laurent Valdes
03-04-2007, 10:16 AM
The MondrianDef seems to be in the .jar, since I "import"ed it in the first
lines of code.
"Found class mondrian.olap.MondrianDef"
It runs.
But this not a secret.
When loaded in my CLI program, the forClass succeeds, as in test.jsp. I have
some deeper investigation.

Best regards,
Laurent.


2007/3/4, michael bienstein <mbienstein (AT) yahoo (DOT) fr>:[color=blue]
>
> 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 (DOT) com>
>

Laurent Valdes
03-04-2007, 10:34 AM
RolapSchema$Pool.get seems to be ENORMOUS.

;)

Laurent

2007/3/4, Laurent Valdes <valderama (AT) gmail (DOT) com>:[color=blue]
>
> The MondrianDef seems to be in the .jar, since I "import"ed it in the
> first lines of code.
> "Found class mondrian.olap.MondrianDef"
> It runs.
> But this not a secret.
> When loaded in my CLI program, the forClass succeeds, as in test.jsp. I
> have some deeper investigation.
>
> Best regards,
> Laurent.
>
>
> 2007/3/4, michael bienstein <mbienstein (AT) yahoo (DOT) fr>:[color=green]
> >
> > 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 (DOT) com>
> >

Laurent Valdes
03-04-2007, 07:13 PM
OK.

I found out this spoofy error.
It was a .jar in lib/endorsed.

Sorry for all !

Laurent.


2007/3/4, Laurent Valdes <valderama (AT) gmail (DOT) com>:[color=blue]
>
> RolapSchema$Pool.get seems to be ENORMOUS.
>
> ;)
>
> Laurent
>
> 2007/3/4, Laurent Valdes <valderama (AT) gmail (DOT) com>:[color=green]
> >
> > The MondrianDef seems to be in the .jar, since I "import"ed it in the
> > first lines of code.
> > "Found class mondrian.olap.MondrianDef"
> > It runs.
> > But this not a secret.
> > When loaded in my CLI program, the forClass succeeds, as in test.jsp. I
> > have some deeper investigation.
> >
> > Best regards,
> > Laurent.
> >
> >
> > 2007/3/4, michael bienstein < mbienstein (AT) yahoo (DOT) fr>:[color=darkred]
> > >
> > > 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 (DOT) com>
> > >