i am using the following
spring 1.2.3
resin 3.0.8
my jasper jar is jasperreports-1.0.0.jar (from spring lib directory)
jasperdemo is using jasperreports-0.6.3.jar based on build.xml but i've replaced it to use jasperreports-1.0.0.jar.
now my problem is it doesnt work. i always get this error:
does anyone has any experience w/ jasperdemo and this error?Code:[12:06:52.468] Compiling Jasper Report loaded from ServletContext resource [/WEB-INF/repor ts/subReportParent.jrxml] C:\resin-3.0.8\MasterReport.java:4: package net.sf.jasperreports.engine does not exist import net.sf.jasperreports.engine.*; ^ C:\resin-3.0.8\MasterReport.java:5: package net.sf.jasperreports.engine.fill does not exis t import net.sf.jasperreports.engine.fill.*; ^ C:\resin-3.0.8\MasterReport.java:18: cannot find symbol symbol: class JRCalculator public class MasterReport extends JRCalculator ^ C:\resin-3.0.8\MasterReport.java:25: cannot find symbol symbol : class JRFillParameter location: class MasterReport private JRFillParameter parameter_REPORT_RESOURCE_BUNDLE = null; ^ C:\resin-3.0.8\MasterReport.java:26: cannot find symbol symbol : class JRFillParameter location: class MasterReport private JRFillParameter parameter_REPORT_CONNECTION = null; ^ C:\resin-3.0.8\MasterReport.java:27: cannot find symbol symbol : class JRFillParameter location: class MasterReport private JRFillParameter parameter_REPORT_PARAMETERS_MAP = null; ^ C:\resin-3.0.8\MasterReport.java:28: cannot find symbol symbol : class JRFillParameter location: class MasterReport private JRFillParameter parameter_ProductsSubReport = null; ^ C:\resin-3.0.8\MasterReport.java:29: cannot find symbol symbol : class JRFillParameter location: class MasterReport private JRFillParameter parameter_REPORT_VIRTUALIZER = null; ^ C:\resin-3.0.8\MasterReport.java:30: cannot find symbol symbol : class JRFillParameter location: class MasterReport private JRFillParameter parameter_REPORT_LOCALE = null; ^ C:\resin-3.0.8\MasterReport.java:31: cannot find symbol symbol : class JRFillParameter location: class MasterReport private JRFillParameter parameter_REPORT_DATA_SOURCE = null; ^ C:\resin-3.0.8\MasterReport.java:32: cannot find symbol symbol : class JRFillParameter location: class MasterReport private JRFillParameter parameter_SubReportData = null; ^ C:\resin-3.0.8\MasterReport.java:33: cannot find symbol symbol : class JRFillParameter location: class MasterReport private JRFillParameter parameter_REPORT_SCRIPTLET = null; ^ C:\resin-3.0.8\MasterReport.java:34: cannot find symbol symbol : class JRFillParameter location: class MasterReport private JRFillParameter parameter_REPORT_MAX_COUNT = null; ^ C:\resin-3.0.8\MasterReport.java:36: cannot find symbol symbol : class JRFillField location: class MasterReport private JRFillField field_city = null; ^ C:\resin-3.0.8\MasterReport.java:38: cannot find symbol symbol : class JRFillVariable location: class MasterReport private JRFillVariable variable_PAGE_NUMBER = null; ^ C:\resin-3.0.8\MasterReport.java:39: cannot find symbol symbol : class JRFillVariable location: class MasterReport private JRFillVariable variable_COLUMN_NUMBER = null; ^ C:\resin-3.0.8\MasterReport.java:40: cannot find symbol symbol : class JRFillVariable location: class MasterReport private JRFillVariable variable_REPORT_COUNT = null; ^ C:\resin-3.0.8\MasterReport.java:41: cannot find symbol symbol : class JRFillVariable location: class MasterReport private JRFillVariable variable_PAGE_COUNT = null; ^ C:\resin-3.0.8\MasterReport.java:42: cannot find symbol symbol : class JRFillVariable location: class MasterReport private JRFillVariable variable_COLUMN_COUNT = null; ^ C:\resin-3.0.8\MasterReport.java:65: cannot find symbol symbol : class JRFillParameter location: class MasterReport parameter_REPORT_RESOURCE_BUNDLE = (JRFillParameter)pm.get("REPORT_RESOURCE_BUNDLE "); ^ C:\resin-3.0.8\MasterReport.java:66: cannot find symbol symbol : class JRFillParameter location: class MasterReport parameter_REPORT_CONNECTION = (JRFillParameter)pm.get("REPORT_CONNECTION"); ^ C:\resin-3.0.8\MasterReport.java:67: cannot find symbol symbol : class JRFillParameter location: class MasterReport parameter_REPORT_PARAMETERS_MAP = (JRFillParameter)pm.get("REPORT_PARAMETERS_MAP") ; ^ C:\resin-3.0.8\MasterReport.java:68: cannot find symbol symbol : class JRFillParameter location: class MasterReport parameter_ProductsSubReport = (JRFillParameter)pm.get("ProductsSubReport"); ^ C:\resin-3.0.8\MasterReport.java:69: cannot find symbol symbol : class JRFillParameter location: class MasterReport parameter_REPORT_VIRTUALIZER = (JRFillParameter)pm.get("REPORT_VIRTUALIZER"); ^ C:\resin-3.0.8\MasterReport.java:70: cannot find symbol symbol : class JRFillParameter location: class MasterReport parameter_REPORT_LOCALE = (JRFillParameter)pm.get("REPORT_LOCALE"); ^ C:\resin-3.0.8\MasterReport.java:71: cannot find symbol symbol : class JRFillParameter location: class MasterReport parameter_REPORT_DATA_SOURCE = (JRFillParameter)pm.get("REPORT_DATA_SOURCE"); ^ C:\resin-3.0.8\MasterReport.java:72: cannot find symbol symbol : class JRFillParameter location: class MasterReport parameter_SubReportData = (JRFillParameter)pm.get("SubReportData"); ^ C:\resin-3.0.8\MasterReport.java:73: cannot find symbol symbol : class JRFillParameter location: class MasterReport parameter_REPORT_SCRIPTLET = (JRFillParameter)pm.get("REPORT_SCRIPTLET"); ^ C:\resin-3.0.8\MasterReport.java:74: cannot find symbol symbol : class JRFillParameter location: class MasterReport parameter_REPORT_MAX_COUNT = (JRFillParameter)pm.get("REPORT_MAX_COUNT"); ^ C:\resin-3.0.8\MasterReport.java:83: cannot find symbol symbol : class JRFillField location: class MasterReport field_city = (JRFillField)fm.get("city"); ^ C:\resin-3.0.8\MasterReport.java:92: cannot find symbol symbol : class JRFillVariable location: class MasterReport variable_PAGE_NUMBER = (JRFillVariable)vm.get("PAGE_NUMBER"); ^ C:\resin-3.0.8\MasterReport.java:93: cannot find symbol symbol : class JRFillVariable location: class MasterReport variable_COLUMN_NUMBER = (JRFillVariable)vm.get("COLUMN_NUMBER"); ^ C:\resin-3.0.8\MasterReport.java:94: cannot find symbol symbol : class JRFillVariable location: class MasterReport variable_REPORT_COUNT = (JRFillVariable)vm.get("REPORT_COUNT"); ^ C:\resin-3.0.8\MasterReport.java:95: cannot find symbol symbol : class JRFillVariable location: class MasterReport variable_PAGE_COUNT = (JRFillVariable)vm.get("PAGE_COUNT"); ^ C:\resin-3.0.8\MasterReport.java:96: cannot find symbol symbol : class JRFillVariable location: class MasterReport variable_COLUMN_COUNT = (JRFillVariable)vm.get("COLUMN_COUNT"); ^ C:\resin-3.0.8\MasterReport.java:121: package net.sf.jasperreports.engine does not exist value = (net.sf.jasperreports.engine.JRDataSource)(((net.sf.jasperreports. engine.JRDataSource)parameter_SubReportData.getValue())); ^ C:\resin-3.0.8\MasterReport.java:121: package net.sf.jasperreports.engine does not exist value = (net.sf.jasperreports.engine.JRDataSource)(((net.sf.jasperreports. engine.JRDataSource)parameter_SubReportData.getValue())); ^ C:\resin-3.0.8\MasterReport.java:136: package net.sf.jasperreports.engine does not exist value = (net.sf.jasperreports.engine.JasperReport)(((net.sf.jasperreports. engine.JasperReport)parameter_ProductsSubReport.getValue())); ^ C:\resin-3.0.8\MasterReport.java:136: package net.sf.jasperreports.engine does not exist value = (net.sf.jasperreports.engine.JasperReport)(((net.sf.jasperreports. engine.JasperReport)parameter_ProductsSubReport.getValue())); ^ C:\resin-3.0.8\MasterReport.java:209: package net.sf.jasperreports.engine does not exist value = (net.sf.jasperreports.engine.JRDataSource)(((net.sf.jasperreports. engine.JRDataSource)parameter_SubReportData.getValue())); ^ C:\resin-3.0.8\MasterReport.java:209: package net.sf.jasperreports.engine does not exist value = (net.sf.jasperreports.engine.JRDataSource)(((net.sf.jasperreports. engine.JRDataSource)parameter_SubReportData.getValue())); ^ C:\resin-3.0.8\MasterReport.java:224: package net.sf.jasperreports.engine does not exist value = (net.sf.jasperreports.engine.JasperReport)(((net.sf.jasperreports. engine.JasperReport)parameter_ProductsSubReport.getValue())); ^ C:\resin-3.0.8\MasterReport.java:224: package net.sf.jasperreports.engine does not exist value = (net.sf.jasperreports.engine.JasperReport)(((net.sf.jasperreports. engine.JasperReport)parameter_ProductsSubReport.getValue())); ^ C:\resin-3.0.8\MasterReport.java:297: package net.sf.jasperreports.engine does not exist value = (net.sf.jasperreports.engine.JRDataSource)(((net.sf.jasperreports. engine.JRDataSource)parameter_SubReportData.getValue())); ^ C:\resin-3.0.8\MasterReport.java:297: package net.sf.jasperreports.engine does not exist value = (net.sf.jasperreports.engine.JRDataSource)(((net.sf.jasperreports. engine.JRDataSource)parameter_SubReportData.getValue())); ^ C:\resin-3.0.8\MasterReport.java:312: package net.sf.jasperreports.engine does not exist value = (net.sf.jasperreports.engine.JasperReport)(((net.sf.jasperreports. engine.JasperReport)parameter_ProductsSubReport.getValue())); ^ C:\resin-3.0.8\MasterReport.java:312: package net.sf.jasperreports.engine does not exist value = (net.sf.jasperreports.engine.JasperReport)(((net.sf.jasperreports. engine.JasperReport)parameter_ProductsSubReport.getValue())); ^ 47 errors [12:06:56.906] Destroying singletons in factory {org.springframework.beans.factory.support .DefaultListableBeanFactory defining beans [viewResolver,nameViewResolver,subReport,htmlRe port,urlMapping,controller,resolver]; root of BeanFactory hierarchy} [12:06:56.906] Context initialization failed [12:06:56.906] org.springframework.beans.factory.BeanCreationException: Error creating bea n with name 'subReport' defined in ServletContext resource [/WEB-INF/jrtest-servlet.xml]: Initialization of bean failed; nested exception is org.springframework.context.Application ContextException: Could not parse JasperReports report for URL [/WEB-INF/reports/subReport Parent.jrxml]; nested exception is net.sf.jasperreports.engine.JRException: Errors were en countered when compiling report expressions class file: [12:06:56.906] See error messages above. [12:06:56.906] org.springframework.context.ApplicationContextException: Could not parse Ja sperReports report for URL [/WEB-INF/reports/subReportParent.jrxml]; nested exception is n et.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expr essions class file: [12:06:56.906] See error messages above. [12:06:56.906] net.sf.jasperreports.engine.JRException: Errors were encountered when compi ling report expressions class file: [12:06:56.906] See error messages above. [12:06:56.906] at net.sf.jasperreports.engine.design.JRAbstractClassCompiler.compileRepor t(JRAbstractClassCompiler.java:109) [12:06:56.906] at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JRDe faultCompiler.java:106) [12:06:56.906] at org.springframework.web.servlet.view.jasperreports.AbstractJasperReport sView.loadReport(AbstractJasperReportsView.java:455) [12:06:56.906] at org.springframework.web.servlet.view.jasperreports.AbstractJasperReport sView.initApplicationContext(AbstractJasperReportsView.java:320) [12:06:56.906] at org.springframework.context.support.ApplicationObjectSupport.setApplica tionContext(ApplicationObjectSupport.java:79) [12:06:56.906] at org.springframework.context.support.ApplicationContextAwareProcessor.po stProcessBeforeInitialization(ApplicationContextAwareProcessor.java:84) [12:06:56.906] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFa ctory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java: 240) [12:06:56.906] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFa ctory.createBean(AbstractAutowireCapableBeanFactory.java:347) [12:06:56.906] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(A bstractBeanFactory.java:226) [12:06:56.906] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(A bstractBeanFactory.java:147) [12:06:56.906] at org.springframework.beans.factory.support.DefaultListableBeanFactory.pr eInstantiateSingletons(DefaultListableBeanFactory.java:275) [12:06:56.906] at org.springframework.context.support.AbstractApplicationContext.refresh( AbstractApplicationContext.java:317) [12:06:56.906] at org.springframework.web.context.support.AbstractRefreshableWebApplicati onContext.refresh(AbstractRefreshableWebApplicationContext.java:134) [12:06:56.906] at org.springframework.web.servlet.FrameworkServlet.createWebApplicationCo ntext(FrameworkServlet.java:305) [12:06:56.906] at org.springframework.web.servlet.FrameworkServlet.initWebApplicationCont ext(FrameworkServlet.java:250) [12:06:56.906] at org.springframework.web.servlet.FrameworkServlet.initServletBean(Framew orkServlet.java:219) [12:06:56.906] at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.ja va:111) [12:06:56.906] at javax.servlet.GenericServlet.init(GenericServlet.java:82) [12:06:56.906] at com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfi gImpl.java:566) [12:06:56.906] at com.caucho.server.dispatch.ServletManager.init(ServletManager.java:153) [12:06:56.906] at com.caucho.server.webapp.Application.start(Application.java:1535) [12:06:56.906] at com.caucho.server.deploy.Entry.startImpl(Entry.java:469) [12:06:56.906] at com.caucho.server.webapp.WebAppEntry.startImpl(WebAppEntry.java:94) [12:06:56.906] at com.caucho.server.deploy.Entry.redeployIfModifiedImpl(Entry.java:428) [12:06:56.906] at com.caucho.server.webapp.WebAppEntry.redeployIfModifiedImpl(WebAppEntry .java:94) [12:06:56.906] at com.caucho.server.deploy.Entry.startAutomatic(Entry.java:380) [12:06:56.906] at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:159 ) [12:06:56.906] at com.caucho.server.webapp.ApplicationContainer.start(ApplicationContaine r.java:562) [12:06:56.906] at com.caucho.server.host.Host.start(Host.java:496) [12:06:56.906] at com.caucho.server.deploy.Entry.startImpl(Entry.java:469) [12:06:56.906] at com.caucho.server.host.HostEntry.startImpl(HostEntry.java:95) [12:06:56.906] at com.caucho.server.deploy.Entry.redeployIfModifiedImpl(Entry.java:428) [12:06:56.906] at com.caucho.server.host.HostEntry.redeployIfModifiedImpl(HostEntry.java: 95) [12:06:56.906] at com.caucho.server.deploy.Entry.startAutomatic(Entry.java:380) [12:06:56.906] at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:159 ) [12:06:56.906] at com.caucho.server.host.HostContainer.start(HostContainer.java:475) [12:06:56.906] at com.caucho.server.resin.ServletServer.start(ServletServer.java:792) [12:06:56.906] at com.caucho.server.resin.ResinServer.start(ResinServer.java:430) [12:06:56.906] at com.caucho.server.resin.Resin.init(Resin.java:279) [12:06:56.906] at com.caucho.server.resin.Resin.main(Resin.java:474) [12:06:56.968] org.springframework.beans.factory.BeanCreationException: Error creating bea n with name 'subReport' defined in ServletContext resource [/WEB-INF/jrtest-servlet.xml]: Initialization of bean failed; nested exception is org.springframework.context.Application ContextException: Could not parse JasperReports report for URL [/WEB-INF/reports/subReport Parent.jrxml]; nested exception is net.sf.jasperreports.engine.JRException: Errors were en countered when compiling report expressions class file: [12:06:56.968] See error messages above. [12:06:56.968] org.springframework.context.ApplicationContextException: Could not parse Ja sperReports report for URL [/WEB-INF/reports/subReportParent.jrxml]; nested exception is n et.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expr essions class file: [12:06:56.968] See error messages above. [12:06:56.968] net.sf.jasperreports.engine.JRException: Errors were encountered when compi ling report expressions class file: [12:06:56.968] See error messages above.
any help and/or insight will be very much appreciated


Reply With Quote