connecting to olap server with xml/ a

Hello community,
i'm trying to connect ireport to jasperserver via xml/ a so i'm able to use the new warehouse explorer. I`ve created a Mondrian xml/ a datasource on jasperserver named olapxmladefintion. I've named the catalog like my schema is named 'olapschema'.
When I'm trying to connect to jasperserver from ireport with xml/ a connection a Datasource is shown named:
Provider=Mondrian;DataSource=OLAP;

That is the right connection i think, but no catalog is shown. I've tried several descriptions for the catalog like Foodmart or simply olap.

Which description is the right one?
I'm not using foodmart database! The name of my Schema is OLAP.

Hope someone can help me?!
jens_noering's picture
Joined: Feb 20 2007 - 11:54pm
Last seen: 7 years 10 months ago

15 Answers:

Exactly the same problem here AND the costly documentation is of no help at all.

Please help.
jdcryans's picture
Joined: Jan 30 2007 - 12:43am
Last seen: 16 years 4 months ago
Hello,

this is a relatively new feature, so it hasn't been well documented yet. The datasource in the XML/A connection must match the name of the catalog, so try

Provider=Mondrian;DataSource=olapschema;

if your catalog is named 'olapschema'.

hope this helps.
sbirney's picture
153
Joined: Jul 7 2006 - 2:43am
Last seen: 16 years 11 months ago
In my case, everything from client connections to schemas is named 'Test'. And it doesn't work tho I have know way to know what's wrong (printing the catched exception into the console would have been cool).

Thanks
jdcryans's picture
Joined: Jan 30 2007 - 12:43am
Last seen: 16 years 4 months ago
I've also tried the same things.
uploaded schema with name OLAP.
created a mondrian connection with name OLAP.
But nothing happend.

The DataSource is given automaticaly by ireport, I'm not able to define this.

Any other ideas on this topic.
Maybe I have to change the xml.jsp ?
jens_noering's picture
Joined: Feb 20 2007 - 11:54pm
Last seen: 7 years 10 months ago
Hi Everyone!!
May be XMLA connection definitions is different from the way in JI.

I tried defining connection to mondrian using xmla it worked. here is the screen shot attached...


Here is what i did:-
Deployed mondrian.war on Tomcat application server.

XMLA Server url is required so i passed
http://locahost:8080/mondrian/xmla.
and clicked "Get metadata" button. It discovers all the datasources that are present on the XMLA Server, based on the datasource selected it displays the catalog and based on the catalog it displays the cubes. i select the cube and save the connection information after verification (Test).
Now, from IR Wizard or Report query dialog When i click the design query it opens up the Rex Wizard to design my mdx query.
Hope this info helps
Post edited by: sure919, at: 2007/02/28 07:53
sure919's picture
227
Joined: Aug 3 2006 - 3:02pm
Last seen: 4 years 3 months ago
Oops i am unable to upload the image(SCreenshot)..
here are the steps
pass the url info.. and click the get metadata button.
Hope it works for you too..

Cheers!!!
sure
sure919's picture
227
Joined: Aug 3 2006 - 3:02pm
Last seen: 4 years 3 months ago
Hi sure919,

I already connected to JI trough ireport on a blank version(Samples installed) of JI (JR 1.2) with the foodmart and sugarcrm datasource, so the steps i've to make to connect are well known to me.
But no I've to connect to our own olap database.
And there is the problem that ireport shows me the correct provider and datasource, but no catalog appears in the drilldown box. So I'm able to connect to the databse through xml/a, but now catalog is found.

But thanxx that you have taken a look at my problem.
Did you connect to foodmart or to an own olap database?

greetz
jens noering
Post edited by: jens_noering, at: 2007/02/28 09:24
jens_noering's picture
Joined: Feb 20 2007 - 11:54pm
Last seen: 7 years 10 months ago
Hi Jens Noering,

I need to look into your datasources.xml file. This file contains the
1. datasource information,
2. Catalog information (xml format). along with the DB info.
later the Catalog contains the cube information.
Could you please upload your "datasources.xml" file (you could find this in WEB-INF folder like "C:\apache-tomcat-5.5.12\webapps\mondrian\WEB-INF").
I am attaching my datasources.xml file, hope this helps
Cheers!!
Sure
[file name=datasources.xml size=1155]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/dat...
sure919's picture
227
Joined: Aug 3 2006 - 3:02pm
Last seen: 4 years 3 months ago
Thanxx Sure,

dont know why, but there was no Datasources.xml in the
C:\Programme\jasperintelligence-1.1.0\apache-tomcat\webapps\jasperserver\WEB-INF
Folder.

After I noticed that, I made my one one. Please take a look at it.

As you can see in my folderdescription, i'm running the olap server on JI 1.1.
Database is MySQL. MySQl Database is named olap.
Olap Schema File Path =
C:\Programme\jasperintelligence-1.1.0\apache-tomcat\webapps\jasperserver\WEB-INF\olappivot.xml

Hope you can help me [file name=datasources-070fd19117e73a26dc22b6f58d2d77fc.xml size=554]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/dat...
jens_noering's picture
Joined: Feb 20 2007 - 11:54pm
Last seen: 7 years 10 months ago
Update:

I noticed the port for the jdbc connection to mysql was wrong.
Updated it but nothing happend.

greetz

Jens Noering
jens_noering's picture
Joined: Feb 20 2007 - 11:54pm
Last seen: 7 years 10 months ago
I fixed my problem finally. Simply, I thought I had jasper server 1.2 but it was 1.1

Now that I have updated, I do see my catalog and my cube but when I go in the query designer (with the XMLA connection and query language set to "XMLA-MDX") I have the following message : "defaultCloseOperation must be one of : DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE, or DISPOSE_ON_CLOSE".

Funny enough! Anyone else has this message? This bug should be easy to fix.

Thx
jdcryans's picture
Joined: Jan 30 2007 - 12:43am
Last seen: 16 years 4 months ago
datasources.xml is not used by JI. All the configuration for XML/A datasources is done by creating a XMLA Definition in the repository on the server.

Then you can connect to this from iReport, or from an XMLA Connection on the same or another JI server.

I'm not too knowledgeable about connecting with iReport, but I have tested this for the XMLA Connection method.
sbirney's picture
153
Joined: Jul 7 2006 - 2:43am
Last seen: 16 years 11 months ago
ok installed Jasperserver 1.2 and tried to connect to my olap database. That is working well, but now the problem is, that the same error appears:

defaultCloseOperation must be one of: DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE, or DISPOSE_ON_CLOSE



Maybe a java version problem?
Installed JRE 1.6

Anybody got the same problem?
jens_noering's picture
Joined: Feb 20 2007 - 11:54pm
Last seen: 7 years 10 months ago
jdcryans wrote:

Now that I have updated, I do see my catalog and my cube but when I go in the query designer (with the XMLA connection and query language set to "XMLA-MDX") I have the following message : "defaultCloseOperation must be one of : DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE, or DISPOSE_ON_CLOSE".
Funny enough! Anyone else has this message? This bug should be easy to fix.
Thx



Yes I do
jdcryans's picture
Joined: Jan 30 2007 - 12:43am
Last seen: 16 years 4 months ago
Me too. Tried running Ireport with JRE1.5_11, without success.

jdcryans wrote:
jdcryans wrote:

Now that I have updated, I do see my catalog and my cube but when I go in the query designer (with the XMLA connection and query language set to "XMLA-MDX") I have the following message : "defaultCloseOperation must be one of : DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE, or DISPOSE_ON_CLOSE".
Funny enough! Anyone else has this message? This bug should be easy to fix.
Thx



Yes I do
jonnyfrastovner's picture
Joined: Feb 13 2007 - 8:00pm
Last seen: 16 years 3 months ago
Feedback