Pridanie nových reportov na JasperServer

Z SPIN2-wiki
Verzia z 12:30, 5. október 2020, ktorú vytvoril Stanislav.marochok (diskusia | príspevky) (Import Jasper zostav)
Prejsť na: navigácia, hľadanie

Add Your Content Here

Príprava softvéru

Na používanie Jasper reportov potrebujete JasperServer, napojený na vašu databázu (https://wiki.helios.eu/sk/spin2/index.php/In%C5%A1tal%C3%A1cia_JasperReports_Server_v7.1) .
Aby pridať Jasper reporty na vaš JasperServer, potrebujete nastroj "Buildomatic", ktorý je súčasťou JasperServera.

Ďalšie kroky predpokladajú, že už mate nainštalovaný JasperServer a je správne nakonfigurovaný.

Import Jasper zostav

1. Otvorte adresár, v ktorom sa nachádza vás Buildomatic (napr. "C://JasperServer/Buildomatic_70").
2. Otvorte adresár build_conf (napr. "C://JasperServer/Buildomatic_70/build_conf").
3. Vytvorte súbor "js.jdbc.properties".
4. Otvorte tento súbor "js.jdbc.properties" a nakopirujte tam tento kód:



  1. Copyright © 2005 - 2018 TIBCO Software Inc.
  2. http://www.jaspersoft.com.

  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU Affero General Public License as published by
  5. the Free Software Foundation, either version 3 of the License, or
  6. (at your option) any later version.

  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU Affero General Public License for more details.

  11. You should have received a copy of the GNU Affero General Public License
  12. along with this program. If not, see <https://www.gnu.org/licenses/>.


  1. Property that determines the Hibernate dialect

metadata.hibernate.dialect=org.hibernate.dialect.Oracle8iDialect


  1. jasperserver repo db settings

metadata.jdbc.driverClassName=oracle.jdbc.OracleDriver
metadata.jdbc.url=jdbc:oracle:thin:@//dharma.asol.local:1521/spintest.asol.local
metadata.jdbc.username=jasperserveruser
metadata.jdbc.password=kjop__548FER
metadata.jdbc.password.escapeXML=kjop__548FER


metadata.jndi=jdbc/jasperserver


metadata.database.generate=true



  1. used to add parms to tomcat datasource: context.xml
  2. todo: still used?

datasource.extra.params=


  1. Tomcat JNDI Resource factory attribute

tomcat.basic.datasource.factory=${tomcatBasicDatasourceFactory}


  1. jasperserver repo DB for Integration Testing
  2. it.metadata.jdbc.driverClassName=
  3. it.metadata.jdbc.url=
  4. it.metadata.jdbc.username=
  5. it.metadata.jdbc.password=
  6. it.metadata.jdbc.password.



2. Vytvorte súbor "Import-ZAKLAD-MZD-zip.bat".
3. Otvorte tento .bat súbor a nakopírujte tam tento kod:


/* text medzi takými to znakmi nekopírujte */


SET JAVA_HOME=c:\Program Files\Java\jre1.8.0_202 /* tuto definujte cestu do JRK */
SET ADDITIONAL_CONFIG_DIR=build_conf\nazov_adresara_s_configuracnym_suborom
CALL js-import.bat --input-zip Exports\asseco_ba_testAM\asseco_ba_testAM-ZAKLAD-MZD.zip --update --skip-user-update
pause