我在JasperReports 5.1中有一个带有 HTML 组件的报告。
它在iReport中运行良好,但在JasperReports Server Professional 5.0中无法运行。
org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'hc:html'.
One of '{"http://jasperreports.sourceforge.net/jasperreports":component}' is expected.
我尝试在JasperReports.properties文件中添加以下属性,但没有成功:
net.sf.jasperreports.extension.registry.factory.htmlelement=net.sf.jasperreports.extensions.HtmlElementExtensionsRegistryFactory
net.sf.jasperreports.extension.registry.factory.htmlcomponent=net.sf.jasperreports.components.html.HtmlComponentExtensionsRegistryFactory
请建议我该如何解决这个问题。