Jump to content

Recommended Posts

Posted

This is my jrxml file:

 

 


<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.0.4.final using JasperReports Library version 6.0.4  -->
<!-- 2015-04-23T11:34:47 -->
<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="Header" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="cf1c3001-9c28-466e-a26e-79a9b3e6be70">
    <property name="com.jaspersoft.studio.data.defaultdataadapter" value="New Data Adapter (2)"/>
    <queryString>
        <![CDATA[]]>
    </queryString>
    <background>
        <band splitType="Stretch"/>
    </background>
    <title>
        <band height="119" splitType="Stretch">
            <componentElement>
                <reportElement x="-10" y="-10" width="570" height="129" uuid="e8ebdbe5-9b08-4e03-94e7-58331367d218"/>
                <hc:html xmlns:hc="http://jasperreports.sourceforge.net/htmlcomponent" xsi:schemaLocation="http://jasperreports.sourceforge.net/htmlcomponent http://jasperreports.sourceforge.net/xsd/htmlcomponent.xsd" scaleType="RetainShape" horizontalAlign="Left" verticalAlign="Middle">
                    <hc:htmlContentExpression><![CDATA["<html><head></head><body><table border=1' cellpadding='1' cellspacing='1' height='123' width='679'><tbody><tr><td rowspan='4'background='E:/Eclipse_IMS_WS/Examples/WebContent/images/header/SobisLogo.gif'> </td><td colspan='2'>Title</td><td colspan='2'> </td></tr><tr><td>Reference No.</td><td> </td><td>ISO Std.</td><td> </td></tr><tr><td>Revision No.</td><td> </td><td>Issue No.</td><td> </td></tr><tr><td><p>Revision Effective Date</p></td><td> </td><td><p>Issue Effective Date</p></td><td> </td></tr></tbody></table></body></html&gt]]></hc:htmlContentExpression>
                </hc:html>
            </componentElement>
        </band>
    </title>
    <pageHeader>
        <band height="82" splitType="Stretch"/>
    </pageHeader>
    <columnHeader>
        <band height="86" splitType="Stretch"/>
    </columnHeader>
    <detail>
        <band height="241" splitType="Stretch"/>
    </detail>
    <pageFooter>
        <band height="207" splitType="Stretch">
            <componentElement>
                <reportElement x="0" y="80" width="560" height="120" uuid="6b3c87ea-2f9d-4de1-a8fd-a45a3be0f650"/>
                <hc:html xmlns:hc="http://jasperreports.sourceforge.net/htmlcomponent" xsi:schemaLocation="http://jasperreports.sourceforge.net/htmlcomponent http://jasperreports.sourceforge.net/xsd/htmlcomponent.xsd" scaleType="RetainShape" horizontalAlign="Left" verticalAlign="Middle">
                    <hc:htmlContentExpression><![CDATA["<html><head><title></title></head><body><table border=1' cellpadding='1' cellspacing='1' height='53' width='661'><tbody><tr><td>Effective Date</td><td> </td><td>Page No.</td><td> </td></tr><tr><td colspan='2'>Retention Period</td><td colspan='2'> </td></tr></tbody></table><p> </p></body></html&gt]]></hc:htmlContentExpression>
                </hc:html>
            </componentElement>
        </band>
    </pageFooter>
    <summary>
        <band height="42" splitType="Stretch"/>
    </summary>
</jasperReport>

 

 

 

 


When is try to export this to pdf i am getting this error :


Exception in thread "main" net.sf.jasperreports.engine.JRException: org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://jasperreports.sourceforge.net/xsd/htmlcomponent.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
    at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:302)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:285)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:274)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:248)
    at com.sobis.ims.engine.Header.main(Header.java:40)
Caused by: org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://jasperreports.sourceforge.net/xsd/htmlcomponent.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
    at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
    at org.apache.xerces.util.ErrorHandlerWrapper.warning(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
    at org.apache.xerces.impl.xs.traversers.XSDHandler.reportSchemaWarning(Unknown Source)
    at org.apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument(Unknown Source)
    at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source)
    at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source)
    at org.apache.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar(Unknown Source)
    at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
    at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    at org.apache.commons.digester.Digester.parse(Digester.java:1892)
    at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:298)
    ... 4 more

Please suggest what to do?
 

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...