When deploying Jasper Reports getting error message - jasper-reports

Hi I created a simple report using iReport 4.5.1 and when I tried to deploy the report in JasperSoft (Ver 4.5) I am getting the following error message even thought I am selecting the correct JRXML file
The selected JRXML could not be parsed. You might have selected the wrong file.
What could be the issue.
I am using iReport designer to design my reports.
Database: Oracle 11g
I have created a Data Source in JaseperSoft - test connection successfull
I am getting the error message only when I click the browse button to upload the JRXML file when i tried to upload a report file...
Please help....

This error can occur when attempting to deploy a report that uses stored procedures.
You can find this issue at http://jasperforge.org.
This article is about how to call stored procedures from JasperReports.

Try to deploy the report using the jdeploy tool on https://sourceforge.net/projects/jaspertools/?source=directory

Solution:
By default JasperSoft® Studio tries to save and upload the JRXML's in the latest possile JRXML version which may not be compatible with the parser on the server side. You can configure the version used by the studio. Go to Window > Preferences > Jaspersoft Studio > Compatibility and in the Source .jrxml version set the version to 6.2.1. Then open your reports, do a minor change and re-save it. This should re-generate the JRXML that is compatible with previous JasperReports version. You can also set the same compatibility setting on project level by right clicking on the project folder in the Project Explorer > Properties > Jaspersoft Studio > Compatibility
https://community.jaspersoft.com/wiki/error-message-selected-jrxml-could-not-be-parsed-when-trying-update-jrxml-files-tibco

I have created an automatic build option for maven reports. Anyone that is interested please read: http://the-consultants-blog.blogspot.be/2013/06/deploy-jasperreports-with-maven.html
It might come in handy with deployment problems or with mass deployment of jrxmls.

Related

Where JasperStudio stores .jrxml files?

I am migrating from Jasper 5.5.x to 6.4.0, using Jaspersoft Studio (no more iReport), but I noticed that after modifying a few reports, JRXML files are not modified (at least not in the folder where .jrxml and .jasper are, from where I opened it). they are in the "workspace".
How can I make Studio to save the jrxml in the same place that .jaspers?
Usually they are saved in the same folder but I don't have experience in migrating from iReport.
You can change the directory where Jasersoft Studio saves the files by right-clicking on your project in the Project Explorer and selecting Properties.
On the left side you select Resources->Linked Resources. Under Path Variables you can set the PROJECT_LOC variable.
Hope this helps

Avoid Jasper Studio adding timestamp comment in jrxml file

In Jasper Studio 6.1.1 final each time you save a report file a timestamp comment is added to the jrxml file like this:
<!-- Created with Jaspersoft Studio version 6.1.1.final using JasperReports Library version 6.1.1 -->
<!-- 2016-07-22T15:29:22 -->
This behaviour is annoying when you use a version system like SVN or Git because it marks the file as pending of commit for no reason (if no real changes were done).
Menu Windows -> Preferences -> Jaspersoft Studio: uncheck the option Add timestamp information when saving the JRXML file.
On newer versions of Jaspersoft Studio you may need to click on Compatibility option after the Jaspersoft Studio option (I can't test this by now).

How can I choose the destination of the generated .jasper file into Jaspersoft Studio 6.1?

I am absolutly new in JasperReports and I have the following problem: I am woking on a project that generate an Excel file into Jaspersoft Studio 6.1.0.
After that I save my .jrxml file project and build it, so it seems that it generate the related .jasper file into the Desktop folder of my Windows system.
How can I choose the directory into wich generate this .jasper file?
Unfortunately you can not as in ireport choose where the .jasper is build.
Quoting mrabbi (jasper report staff)
currently in Jaspersoft Studio when compiled the JRXML produces the
.jasper file in the same folder position where they are. This is an
implementation choice.
You can hide them if you don't like to see them and you can configure an "additional" output directory on build (jasper will be copied to this).
In IReport it was Tools > Options > IReport > Compilation and Execution then untick "Use Report Directory to compile" and you could select a new one.

Difference between Report server project wizard and Report server project

I am trying to know the differnce between report server project wizard and report server project. i tried google, but was not happie with the answers.
can some one please help me with this?
Report Server Project:
A Report Server Project is a Business Intelligence Projects template installed by Visual Studio that is available from the New Project dialog box. Report Server project properties apply to all reports and all shared data sources in a project. These properties include the URL for the report server and the folder names for reports and shared data sources.
Report Server Project Wizard:
Report Server Wizard Project automatically creates a report server project using Report Wizard. In the wizard, you can create a report by following instructions on each page to create a connection string to a data source, set data source credentials, design a query, add a table or matrix data region, specify report data and groups, pick a font and color style, publish the report to a report server, and preview the report locally.
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/ede9b706-4141-4f42-bf4d-199f2286c849/what-is-the-difference-between-report-server-project-wizard-and-report-model-project-and-report?forum=sqlreportingservices
See this thread for your answer.

Spring - Apache and XML error

I was following this tutorial for Spring Login example. I downloaded their sample code and import in my Eclipse. It throws 2 error.
Error 1
Target runtime Apache Tomcat v6.0 (2) is not defined. Unknown Faceted Project Problem
Error 2
Referenced file contains errors (http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd).
I already download the latest updates in eclipse and reinstall the tomcat.
Using Tomcat6,Spring-3.2.0.RC1.
Please advice. Thanks
We need to right click on the project, properties and Targeted Runtimes. Uncheck the old server entry and enable the new entry. This should solve this error.
http://javashine.wordpress.com/2010/09/07/target-runtime-apache-tomcat-v6-0-is-not-defined/
Hope this helps.
Right click on the project->select properties option.
Search for targetedruntimes in the search bar
uncheck the tomcat old version
select latest version and the version you wnat to use.