zeldakr Posted February 5, 2020 Share Posted February 5, 2020 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/DataAdaptersReport 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.xmlorganization_1organizationsBasePackDataAdapterstubestatus.xmlorganizationsBasePackDataAdapterstubestatus.xmlBasePackDataAdapterstubestatus.xml..organization_1organizationsBasePackDataAdapterstubestatus.xml..organizationsBasePackDataAdapterstubestatus.xml..organizationsorganization_1organizationsBasePackDataAdapterstubestatus.xml..BasePackDataAdapterstubestatus.xml What am I doing wrong? Link to comment Share on other sites More sharing options...
zeldakr Posted February 10, 2020 Author Share Posted February 10, 2020 The folloiwng worked:Report Path:- /organizations/organization_1/organizations/BasePack/ReportsDataAdapter Path: /organizations/organization_1/organizations/BasePack/DataAdapterDataAdapter 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"/> 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now