Hi, I created a report using ireport which uses a custom data source. When I uploaded the report, I added the bean of my custom data source to the application-context.xml of my jasperserver (just like in the samples). <bean id="Report1DS class="com.jaspersoft.jasperserver.api.engine.jasperreports.util.CustomDataSourceDefinition"> <property name="factory" ref="customDataSourceServiceFactory"/> <property name="name" value="Report1DS"/> <property name="serviceClassName" value="com.esc.jasper.customdata.Report1DSService"/> </bean> Then I added the bean of my datasource factory: <bean id="Report1DSFactory" class="com.esc.jasper.customdata.Report1DSFactory" /> However, when I opened the report, the following exception occurs: java.lang.ClassCastException: com.esc.jasper.customdata.Report1DS at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.BeanReportDataSourceServiceFactory.createService(BeanReportDataSourceServiceFactory.java:86) at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl.createDataSourceService(EngineServiceImpl.java:793)... Did I miss something in the configuration? Is there a more complete tutorial for adding a custom data source bean?