stiftung.jugend.nervt Posted June 25, 2015 Share Posted June 25, 2015 Hello! I'm a little confused because I don't think that I'm the only one having this problem but I couldn't find any posts related to my problem so here's the question:I just created a report which is based on a bean datasource (MyBean) with iReports (created and added myBeanPackage.jar to the classpath of iReports --> works fine!). My problem is that I like to deploy the report to the JasperServer but when I try to add a new bean datasource at the server side the associated class cannot be found. How do I deploy/add my myBeanPackage.jar so that it is recognized by the JasperServer? Thanks in advanceT Link to comment Share on other sites More sharing options...
stiftung.jugend.nervt Posted June 25, 2015 Author Share Posted June 25, 2015 !!! the ultimate goal is to create reports which are based on beans and to deploy the reports and the jar containing the bean datasource to the server just by using the JasperServer web/rest interface !!! Link to comment Share on other sites More sharing options...
elizam Posted June 26, 2015 Share Posted June 26, 2015 If you want to add support for a data source to the server, you have to create a number of files to interface with your datasource. There's Java code to talk to your datasource, a Spring bean definition file to register the code, and a message catalog for any strings you want to show to the user (for example, for any properties the user needs to enter).There are some samples of data sources in the WAR install. You can see the doc herehttp://community.jaspersoft.com/documentation/tibco-jasperreports-server-ultimate-guide/v60/custom-data-source-examples-0http://community.jaspersoft.com/documentation/tibco-jasperreports-server-ultimate-guide/v60/creating-custom-data-source-0(This is from the 6.0 Ultimate Guide - some of the samples have now been pre-installed in the server & are enabled in a config file, so are no longer available as samples.)I believe this is well beyond the scope of the REST API. 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