JasperReports: xsd for custom component not found

Jaspersoft Community 'Read-Only' as of July 8, 2022

Transition to New TIBCO Community Just Weeks Away

You can still search, review wiki content, and review discussions in read-only mode. Please email community@tibco.com with questions or issues requiring TIBCO review or response.

I made a new chart type as custom component for JasperReports 6.19.1. I inserted my custom component into the jrxml but Jaspersoft Studio says it cannot find the xsd:

net.sf.jasperreports.engine.JRRuntimeException: Unknown entity http://jasperreports.sourceforge.net/xsd/blockchart.xsd, not loading.

I checked that the jar file contains blockchart.xsd. And the schema location is defined in the blockchart_beans.xml:

    <bean id="xmlParser" class="net.sf.jasperreports.engine.component.DefaultComponentXmlParser">
        <property name="namespace">
            <value>http://jasperreports.sourceforge.net/jasperreports/blockchart</value>
        </property>
        <property name="publicSchemaLocation">
            <value>http://jasperreports.sourceforge.net/xsd/blockchart.xsd</value>
        </property>
        <property name="internalSchemaResource">
            <value>de/xyz/jasperreports/blockchart/blockchart.xsd</value>
        </property>
        <property name="digesterConfigurer">
            <bean class="de.xyz.jasperreports.blockchart.BlockChartsDigester"/>
        </property>
    </bean>

My jrxml:

                <componentElement>
                <reportElement x="0" y="0" width="800" height="510" uuid="550e8442-e29b-11d4-a716-446655440042" />
                    <bc:blockChart evaluationTime="Group" evaluationGroup="mygroup"
                      xmlns:bc="http://jasperreports.sourceforge.net/jasperreports/blockchart"
                      xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/blockchart http://jasperreports.sourceforge.net/xsd/blockchart.xsd">
                        <bc:chartSettings customizerClass="de.xyz.jasper.Report1ChartCustomizer">
                    </bc:blockChart>
                </componentElement>

Why does Jaspersoft Studio not find my xsd? Any idea what I could have missed?

markus.schreiber's picture
Joined: May 17 2022 - 3:01am
Last seen: 1 month 1 week ago

0 Answers:

No answers yet
Feedback