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

Cannot find the declaration of element 'jasperRepo


hgfree

Recommended Posts

1 - org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'jasperReport'.


java.lang.Exception: 1 - org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'jasperReport'. 
    at com.jaspersoft.ireport.jasperserver.ws.WSClient.runReport(WSClient.java:403) 
    at com.jaspersoft.ireport.jasperserver.ws.WSClient.runReport(WSClient.java:320) 
    at com.jaspersoft.ireport.jasperserver.ReportRunner.run(ReportRunner.java:70) 
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561) 
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986) 

 

Hello,
I receive the above message when trying to Run Report Unit through JasperServer Pro 3.0.2 Repository in iReport 3.5.0.  The report runs OK when executing in iReport Preview.  Other Info from About: Java: 1.5.0_06; Java HotSpot Client VM 1.5.0_06-b05 System: Windows XP version 5.1 running on x86; UTF-8; en_US(iReport). 
I get the following message when trying to run the report through JasperServer Pro.  Not sure where to post this as it appears to cross several forums.  Any ideas on why this is happening and how to fix?

Thank You,
Chris

Error Trace

com.jaspersoft.jasperserver.api.JSExceptionWrapper: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'jasperReport'.

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

iReport 3.5.0 uses jasperreports 3.5.0 that produce a jrxml not compatible with older versions.

Workaround: Tools->options->ireport->jasperserver repository

check the flag to patch the file.

Please note that this only patch the DTD reference, but if you use some of the new tags (i.e. pie chart are changed a lot), you can still have problems with your jrxml.

Giulio

Link to comment
Share on other sites

  • 4 months later...

Hi Chris,

Have you been able to resolve this problem? We now have this error ever since we moved to a new Server. The previous died along with all our JasperReports.

We feel we have something left out somewhere but we have almost no Java skills and no idea where to start looking.


We really like using the product but it does require huge amounts of Googling ever word when trying to figure out the syntax if we need to manipulate data.

Thanks in advance to you and anyone else who can help us please.

 

Glen.

Link to comment
Share on other sites

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