Hi, I'm using Custom Visualization Component for building a histogram in D3. From JasperSoft 6.5.1 I have d3_histograma.jrxml, d3_histograma.js, d3_histograma.min.js,d3.v4.js and d3.v4.min.js. I have compiled build.js and I have run report and the report is built perfectly well. I have a servlet that creates the pdf of d3_histograma.jrxml. The d3_histograma.jrxml file is like this:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.5.1.final using JasperReports Library version 6.5.1 -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="d3_histograma" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="af19a009-a534-47f2-95e4-1cddcf04ff84">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="LocalHost"/>
<parameter name="id_fpproces" class="java.lang.String">
<defaultValueExpression><![CDATA[118821]]></defaultValueExpression>
</parameter>
<parameter name="SUBREPORT_DIR" class="java.lang.String">
<defaultValueExpression><![CDATA["/Subreports/"]]></defaultValueExpression>
</parameter>
<parameter name="Lanzamiento" class="java.lang.String">
<defaultValueExpression><![CDATA[""]]></defaultValueExpression>
</parameter>
<parameter name="apache" class="java.lang.String">
<defaultValueExpression><![CDATA["http://gestio.alme/webapps"]]></defaultValueExpression>
</parameter>
<parameter name="mitja" class="java.lang.String" isForPrompting="false">
<defaultValueExpression><![CDATA[""]]></defaultValueExpression>
</parameter>
<queryString language="SQL">
<![CDATA[SELECT
he.id_fpproces,
proces.codfas,
proces.desfas,
concat(users.cognom1,' ', users.cognom2,', ', users.nom) as nom,
he.id_lanzmt,
he.nomcar,
he.data,
he.tolerancia_inferior,
he.tolerancia_superior,
he.decimals,
he.valors,
he.observacions,
he.id_spc_dispositiu,
he.id_usuaris_stamp
FROM
spc_histogrames_especials he
LEFT JOIN produccio.general_projecte_detall_full_proces proces USING (id_fpproces)
LEFT JOIN produccio.general_mestre_usuaris users ON (users.id_usuaris = he.id_usuaris_stamp)
WHERE
he.id_fpproces = $P{id_fpproces}]]>
</queryString>
<field name="desfas" class="java.lang.String"/>
<field name="id_fpproces" class="java.lang.Integer">
<property name="com.jaspersoft.studio.field.label" value="id_fpproces"/>
<property name="com.jaspersoft.studio.field.tree.path" value="general_projecte_detall_full_proces"/>
</field>
<field name="codfas" class="java.lang.String"/>
<field name="data" class="java.sql.Date"/>
<field name="tolerancia_superior" class="java.lang.Integer"/>
<field name="tolerancia_inferior" class="java.lang.Integer"/>
<field name="nom" class="java.lang.String"/>
<field name="observacions" class="java.lang.String"/>
<variable name="stProva" class="java.lang.String"/>
<group name="Country">
<groupHeader>
<band height="731" splitType="Stretch">
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.FreeLayout"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<componentElement>
<reportElement x="0" y="200" width="555" height="350" uuid="8457279e-2dfc-4ca4-9953-3fbbdf33c4a3">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="pixel"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<cvc:customvisualization xmlns:cvc="http://www.jaspersoft.com/cvcomponent" xsi:schemaLocation="http://www.jaspersoft.com/cvcomponent http://www.jaspersoft.com/cvcomponent/component.xsd" evaluationTime="Group" evaluationGroup="Country">
<cvc:itemProperty name="script" value="d3_histograma.min.js"/>
<cvc:itemProperty name="css" value="d3_histograma.css"/>
<cvc:cvData>
<cvc:item>
<cvc:itemProperty name="subcategory" value="mitja"/>
<cvc:itemProperty name="valor">
<valueExpression><![CDATA[$P{mitja}]]></valueExpression>
</cvc:itemProperty>
</cvc:item>
</cvc:cvData>
</cvc:customvisualization>
</componentElement>
<frame>
<reportElement x="0" y="0" width="555" height="25" uuid="ae447ff9-76f9-44bc-a0c9-498cad5a8e22">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<box topPadding="0" leftPadding="0" bottomPadding="0" rightPadding="0">
<pen lineWidth="1.25"/>
</box>
<textField>
<reportElement x="491" y="7" width="50" height="14" uuid="82daff3e-4be4-4220-81fe-9033c30425b9">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textFieldExpression><![CDATA[$F{data}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="130" y="7" width="116" height="14" uuid="508d994a-7b2a-4f93-aa4b-e4c346a63ba3">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<text><![CDATA[ESTUDI DE CAPACITAT]]></text>
</staticText>
<staticText>
<reportElement x="281" y="7" width="154" height="14" uuid="284fec74-e6a6-41bb-b7ab-4ad7e45fcaf8">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<text><![CDATA[HISTOGRAMA CEQ Barcelona]]></text>
</staticText>
<staticText>
<reportElement x="451" y="7" width="34" height="14" uuid="a3c23d65-86ad-4f36-a58c-5dd539dd193b">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<text><![CDATA[Data:]]></text>
</staticText>
<staticText>
<reportElement x="11" y="7" width="100" height="14" uuid="2b940526-ad4d-4c77-a0e1-52b4437fd974">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<text><![CDATA[AMES, S.A]]></text>
</staticText>
</frame>
<frame>
<reportElement x="0" y="25" width="555" height="120" uuid="53c3ca5f-0659-4c1d-a23c-bf1c0a8d85d9">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<box topPadding="0" leftPadding="0" bottomPadding="0" rightPadding="0">
<pen lineWidth="1.25"/>
</box>
<line>
<reportElement x="0" y="30" width="555" height="1" uuid="0f666fcb-97ee-41ad-aead-abb52bfbf809">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
</line>
<line>
<reportElement x="0" y="80" width="555" height="1" uuid="2903ca7c-820d-455d-be52-274d0a9e676f">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
</line>
<staticText>
<reportElement x="193" y="35" width="36" height="14" uuid="1cd07da2-b6ef-4a55-9629-2626771bc0c7">
<property name="com.jaspersoft.studio.unit.x" value="px"/>
</reportElement>
<text><![CDATA[Fase:]]></text>
</staticText>
<textField>
<reportElement x="245" y="35" width="100" height="14" uuid="d4077588-6bd3-49be-be2c-595f7c11e886">
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textFieldExpression><![CDATA[$F{desfas}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="193" y="49" width="48" height="20" uuid="d890ea20-5e8f-4983-91ee-5aa78254916f">
<property name="com.jaspersoft.studio.unit.x" value="px"/>
</reportElement>
<text><![CDATA[Tol. Sup:]]></text>
</staticText>
<textField>
<reportElement x="245" y="49" width="62" height="14" uuid="47fb2f14-36dc-4ce2-873b-6389ef6e0ea1">
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textFieldExpression><![CDATA[$F{tolerancia_superior}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="193" y="64" width="52" height="15" uuid="c341ca2c-f952-4fbd-ba9b-92e678e12c43">
<property name="com.jaspersoft.studio.unit.x" value="px"/>
</reportElement>
<text><![CDATA[Verfificat:]]></text>
</staticText>
<textField>
<reportElement x="391" y="48" width="34" height="14" uuid="b976be4d-de45-4bca-a357-81b3bd8f2d76">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textFieldExpression><![CDATA[$F{tolerancia_inferior}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="337" y="48" width="43" height="14" uuid="5ce4d594-d785-451b-b0ac-81bffab24342">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<text><![CDATA[Tol. Inf:]]></text>
</staticText>
<staticText>
<reportElement x="11" y="35" width="100" height="14" uuid="3822e6c0-a4a3-41e0-b206-1e744eb5fb33">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<text><![CDATA[Màquina:]]></text>
</staticText>
<staticText>
<reportElement x="11" y="50" width="100" height="14" uuid="4a5e1b0f-cd7d-4348-b2cd-83d5c5d741c0">
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<text><![CDATA[Caracter:]]></text>
</staticText>
<staticText>
<reportElement x="11" y="64" width="100" height="14" uuid="bdb63ca6-549e-41c1-9ca5-87ca0377fb9e">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
</reportElement>
<text><![CDATA[Llançmnt:]]></text>
</staticText>
<textField>
<reportElement x="245" y="64" width="150" height="14" uuid="2a828349-c277-4eb9-abdb-bdb8a8cac5d2">
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
</reportElement>
<textFieldExpression><![CDATA[$F{nom}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="11" y="3" width="100" height="14" uuid="0c6de97f-7a5e-42ca-9396-e434e41f491c">
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<text><![CDATA[Denom:]]></text>
</staticText>
<staticText>
<reportElement x="221" y="3" width="100" height="14" uuid="20f28398-4ec4-4ad9-bd5b-5e8027982769">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<text><![CDATA[Data Edició:]]></text>
</staticText>
<staticText>
<reportElement x="418" y="3" width="100" height="14" uuid="244c3437-d7db-42af-bb58-84cea662ac07">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<text><![CDATA[Plànol:]]></text>
</staticText>
<textField>
<reportElement x="110" y="83" width="100" height="14" uuid="49991307-d63f-4621-8bca-058fa7db8e75">
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textFieldExpression><![CDATA[$F{observacions}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="11" y="83" width="100" height="14" uuid="6e147304-54bb-4a2e-9f97-156d220cc35c">
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<text><![CDATA[Observacions]]></text>
</staticText>
</frame>
<frame>
<reportElement x="-1" y="591" width="555" height="140" uuid="27d5e445-ec44-4d33-a6b5-6091ef094491">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<box topPadding="0" leftPadding="0" bottomPadding="0" rightPadding="0">
<pen lineWidth="1.25"/>
</box>
<line>
<reportElement x="0" y="20" width="555" height="1" uuid="49883add-6392-416f-922b-d208d9ef260f">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
</line>
<line>
<reportElement x="0" y="40" width="555" height="1" uuid="102502aa-e82f-4d10-b6ec-909a008ee022">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
</line>
<line>
<reportElement x="0" y="60" width="555" height="1" uuid="dcd092c8-fbc5-473b-9011-a34d027b8383">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
</line>
<line>
<reportElement x="0" y="80" width="555" height="1" uuid="f3f85b77-02ac-4468-a111-ed1ff362efa9">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
</line>
<line>
<reportElement x="0" y="100" width="555" height="1" uuid="2df3d808-f392-4ab1-826d-4bedc92bbda6">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
</line>
<line>
<reportElement x="135" y="0" width="1" height="140" uuid="7930a1cb-034e-4a26-b271-87e18681d5c9">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
</line>
<line>
<reportElement x="280" y="0" width="1" height="140" uuid="93cd686d-952e-41f7-a85e-7c1f5a0f26a0">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
</line>
<line>
<reportElement x="425" y="1" width="1" height="140" uuid="822a5ec6-f2ab-4279-afb0-0afbbfcd4abb">
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
</line>
</frame>
<textField>
<reportElement x="0" y="160" width="100" height="15" uuid="6d788d3e-5163-4023-816d-aa6e78eb5b17"/>
<textFieldExpression><![CDATA[$P{mitja}]]></textFieldExpression>
</textField>
</band>
</groupHeader>
<groupFooter>
<band/>
</groupFooter>
</group>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="70" splitType="Stretch">
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.FreeLayout"/>
<staticText>
<reportElement x="0" y="0" width="555" height="70" uuid="33efe829-b23f-4c8d-86fe-242aae88cd57">
<property name="com.jaspersoft.studio.unit.height" value="pixel"/>
</reportElement>
<textElement>
<font size="33"/>
</textElement>
<text><![CDATA[Histograma Spc]]></text>
</staticText>
</band>
</title>
<pageHeader>
<band splitType="Stretch"/>
</pageHeader>
<columnHeader>
<band splitType="Stretch"/>
</columnHeader>
<detail>
<band splitType="Stretch"/>
</detail>
<columnFooter>
<band splitType="Stretch"/>
</columnFooter>
<pageFooter>
<band splitType="Stretch"/>
</pageFooter>
<summary>
<band splitType="Stretch"/>
</summary>
</jasperReport>
I compile the servlet with all d3_histograma.*, and deploy .war generated to TomCat server. And when I call the servlet, the next message appeared:
net.sf.jasperreports.engine.JRRuntimeException: Unknown entity http://www.jaspersoft.com/cvcomponent/component.xsd, not loading.
javax.servlet.ServletException: net.sf.jasperreports.engine.JRRuntimeException: Unknown entity http://www.jaspersoft.com/cvcomponent/component.xsd, not loading.
If I checked this url http://www.jaspersoft.com/cvcomponent/component.xsd, The requested page could not be found
I need help, please,
salutations
Javier Rojas Almagro