Jump to content

Reference to Data Adapter in JasperReport Server not working


zeldakr

Recommended Posts

Made use of the following example.

https://community.jaspersoft.com/wiki/using-data-adapters-fill-reports-json-data-remote-url

 

Got everything to work when deployed to same folder as per the above example.

BUT When I separate the DataAdapters and the Reports into different folders.

I keep getting ‘Resource not found at: DataAdapters/tubestatus.xml {for example}

 

DataAdapters Path: /organizations/organization_1/organizations/BasePack/DataAdapters

Report path: /organizations/organization_1/organizations/BasePack/Reports

 

Properties in jrxml

<property name="com.jaspersoft.studio.data.defaultdataadapter" value="..DataAdapterstubestatus.xml"/>

<property name="net.sf.jasperreports.data.adapter" value="DataAdapters/tubestatus.xml"/>

 

I have also tried the following reference options for "net.sf.jasperreports.data.adapter" but to no avail.

organizationsorganization_1organizationsBasePackDataAdapterstubestatus.xml

organization_1organizationsBasePackDataAdapterstubestatus.xml

organizationsBasePackDataAdapterstubestatus.xml

BasePackDataAdapterstubestatus.xml

..organization_1organizationsBasePackDataAdapterstubestatus.xml

..organizationsBasePackDataAdapterstubestatus.xml

..organizationsorganization_1organizationsBasePackDataAdapterstubestatus.xml

..BasePackDataAdapterstubestatus.xml

 

What am I doing wrong?

Link to comment
Share on other sites

The folloiwng worked:
Report Path:- /organizations/organization_1/organizations/BasePack/Reports
DataAdapter Path: /organizations/organization_1/organizations/BasePack/DataAdapter
DataAdapter uploaded file resource as xml file BUT did not add the file extention to the name or the Resouce ID.
 

Properties in .jrxml file

    <property name="com.jaspersoft.studio.data.defaultdataadapter" value="repo:/DataAdapter/tubestatus.xml"/>
    <property name="net.sf.jasperreports.data.adapter" value="repo:/DataAdapter/tubestatus"/>

 

 

  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...