Hi,

Make sure you have the JasperReports version 1.1.0 in your classpath.
I suspect an older version is somewhere in your application and it gets loaded.
There is no point in changing the URL for the DTD.

I hope this helps.
Teodor


Meenakshi Singh wrote:

hi all,

I have problems running crosstab sample reports. When I try to compile it
using compile managers compiletofile method, it says element 'style' not
defined. If I change th dtd file url to a local url where the dtd file is
present from the source of jasper reports1.1.0, it says

[11/7/05 18:15:00:250 IST] 795ea5a7 Digester      E
org.apache.commons.digester.Digester  Begin event threw exception
[11/7/05 18:15:00:266 IST] 795ea5a7 Digester      E
org.apache.commons.digester.Digester  TRAS0014I: The following exception was
logged java.lang.ClassCastException:
net.sf.jasperreports.engine.design.JRDesignBand
        at
net.sf.jasperreports.engine.xml.JRElementFactory.createObject(JRElementFacto
ry.java:75)
        at
org.apache.commons.digester.FactoryCreateRule.begin(FactoryCreateRule.java:3
89)
        at org.apache.commons.digester.Digester.startElement(Digester.java:1361)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown 
Source)
        at 
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
        at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown 
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno
wn Source)


help people...!

Thanks & Regards,
Meenakshi.
PS: My image problem is still unresolved...do help me on that as well.



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
jasperreports-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
jasperreports-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions

Reply via email to