mmcaulay Posted November 6, 2008 Share Posted November 6, 2008 Hi, I have certain report units that fail with the message "java.lang.Exception: 1 - org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'jasperReport'.The reports that work use the DTD, the ones that don't use the new version with XSD.The reports run in iReport 3.1.2NB, just not on Jasper Server 3.0.Do you have any idea what causes this? I was wondering whether it was the namespace in the xml and it possibly not finding the xsd to validate. I've included the jasperReport tag out of the xml for reference.Thanks,Mark. Code:<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="bsc_duplicate_personal" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20"> Link to comment Share on other sites More sharing options...
anandharaj Posted November 7, 2008 Share Posted November 7, 2008 I would suggest to use iReport 3.0 and re-compile the JRXML file. Then upload to JS and see the outcome. Might be iReport 3.1 have some new features with is not support in JS 3.0 Link to comment Share on other sites More sharing options...
mmcaulay Posted November 10, 2008 Author Share Posted November 10, 2008 Thanks that fixed the issue, I notice the syntax went back to being DTD based. Link to comment Share on other sites More sharing options...
crax Posted November 11, 2008 Share Posted November 11, 2008 I actually have this same problem when using 3.1.2 of ireport. I DON'T have this problem when using 3.1.1 of ireport. Pretty frustrating! Link to comment Share on other sites More sharing options...
swood Posted November 13, 2008 Share Posted November 13, 2008 JasperServer 3.1, which will have the production version out this week, fixes this incompatibility. iReport 3.1.2 will work with JasperServer 3.1 with no problems. ShermanJaspersoftPost Edited by Sherman Wood at 11/13/08 17:54 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now