我是春天的新人。我使用的是spring-mvc,postgresql和ireport 5.6.0。我有一份报告从iReport设计师运行良好。但是,当我尝试从应用程序生成它时,它显示错误。以下是我的尝试:
在我的jasper配置>>
中<bean id="myProfilePdfReport"
class="org.springframework.web.servlet.view.jasperreports.JasperReportsPdfView"
p:url="/WEB-INF/report/ctsEmployeeProfile.jrxml"
/>
在我的控制器中,网址&gt;&gt;
@RequestMapping(method = RequestMethod.GET , value ="myprofile")
public ModelAndView generatePdfReport(ModelAndView modelAndView, HttpServletRequest request) {
Map<String,Object> parameterMap = new HashMap<String,Object>();
parameterMap.put("companyCode", "CTS");
parameterMap.put("empCode", "0021");
parameterMap.put("format", "00AA11");
modelAndView = new ModelAndView("pdfReport", parameterMap);
return modelAndView;
}
最后错误是&gt;&gt;
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myProfilePdfReport' defined in ServletContext resource [/WEB-INF/jasper-view.xml]: Initialization of bean failed; nested exception is org.springframework.context.ApplicationContextException: Could not parse JasperReports report from ServletContext resource [/WEB-INF/report/ctsEmployeeProfile.jrxml]; nested exception is net.sf.jasperreports.engine.JRException: org.xml.sax.SAXParseException; lineNumber: 24; columnNumber: 16; Error at line 24 char 16: No query executer factory registered for the 'plsql' language.
有人可以帮我这个吗?