Scenario:
You have developed reports in older versions of JasperServer (<7.2.0) which have subreports that connect to different data sources using property
<property name="com.jaspersoft.jrs.data.source" value="/organizations/organization_1/datasources/somedatasource"/>
Now it's not displaying any data. What could be the problem?
Solution:
In 7.2.0 and higher the resources belonging to organization need to be referenced from the organizational root instead of repository root. The users that belong to organization and develop reports for organization are not supposed to know there's something above the organization in the repository structure. So for users from organization_1 to run this properly the correct repository path would be the following:
<property name="com.jaspersoft.jrs.data.source" value="/datasources/somedatasource"/>
Notice the /organizations/organization_1 removed. Same thing applies to any other resource reference such as image, subreport, etc.
Recommended Comments
There are no comments to display.
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