kavita.negi Posted October 15, 2013 Share Posted October 15, 2013 I have created a jre source and test it on ireport it work perfectly . But when I deploy it on jasper server .Connection successfully created but when report is executed it is always empty I have created a seprate xml file to give bean definiton as given below <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd"> <!-- define a custom data source --> <bean id="EmployeeDS" class="com.EmployeeDataSourceFactory"> </bean></beans> Please tell me whether there are some thing missing .Kind regards,Kavita Link to comment Share on other sites More sharing options...
ajinkya_c Posted October 15, 2013 Share Posted October 15, 2013 Hi,I think it may custom datasource related problem, Becouse when you deploy report on jasperserver then it not gives any error.Are you create custom datasource on JRS, and test the connection before run report?ThanksAjinkya Link to comment Share on other sites More sharing options...
kavita.negi Posted October 15, 2013 Author Share Posted October 15, 2013 Yes I create custom jre source and test it on ireport as well as on server it works fine with message connection passed on jasper server. But when attached to the report on jasper server the report is empty where as in ireport it show data correctly .Is my bean class is correct Link to comment Share on other sites More sharing options...
ajinkya_c Posted October 16, 2013 Share Posted October 16, 2013 Hi, I am not recollect what exactely issue is but i think you miss somewhere, as report works fine in iReport so the beans class may be correct. Some referece links may be helpful to you. http://community.jaspersoft.com/wiki/custom-data-source-sample-readme#Custom_Bean_Data_Source http://community.jaspersoft.com/wiki/switching-datasource-based-user Thanks Ajinkya Link to comment Share on other sites More sharing options...
kavita.negi Posted October 16, 2013 Author Share Posted October 16, 2013 Thanks Issue is resolved and report is running fine on jasper server But Now want to pass input value to the bean source and extract custom bean as filtered using input values . Please specify how to pass input to custom bean source . 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