Jump to content
We've recently updated our Privacy Statement, available here ×

report fails, can't find declaration for jasper


mmcaulay

Recommended Posts

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

  • Replies 4
  • Created
  • Last Reply

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...