Pridanie nových reportov na JasperServer: Rozdiel medzi revíziami

Z SPIN2-wiki
Prejsť na: navigácia, hľadanie
(Príprava softvéru)
(Import Jasper zostav)
Riadok 17: Riadok 17:
 
4. Otvorte tento súbor "js.jdbc.properties" a nakopirujte tam tento kód: <br />
 
4. Otvorte tento súbor "js.jdbc.properties" a nakopirujte tam tento kód: <br />
 
''/*-------------------------------------*/''
 
''/*-------------------------------------*/''
''hello''
+
#
 +
# Copyright © 2005 - 2018 TIBCO Software Inc.
 +
# http://www.jaspersoft.com.
 +
#
 +
# This program is free software: you can redistribute it and/or modify
 +
# it under the terms of the GNU Affero General Public License as published by
 +
# the Free Software Foundation, either version 3 of the License, or
 +
# (at your option) any later version.
 +
#
 +
# This program is distributed in the hope that it will be useful,
 +
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 +
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 +
# GNU Affero General Public License for more details.
 +
#
 +
# You should have received a copy of the GNU Affero General Public License
 +
# along with this program.  If not, see <https://www.gnu.org/licenses/>.
 +
#
 +
 
 +
# Property that determines the Hibernate dialect
 +
metadata.hibernate.dialect=org.hibernate.dialect.Oracle8iDialect
 +
 
 +
# 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
 +
 
 +
 
 +
# used to add parms to tomcat datasource: context.xml
 +
# todo: still used?
 +
datasource.extra.params=
 +
 
 +
# Tomcat JNDI Resource factory attribute
 +
tomcat.basic.datasource.factory=${tomcatBasicDatasourceFactory}
 +
 
 +
# jasperserver repo DB for Integration Testing
 +
#it.metadata.jdbc.driverClassName=
 +
#it.metadata.jdbc.url=
 +
#it.metadata.jdbc.username=
 +
#it.metadata.jdbc.password=
 +
#it.metadata.jdbc.password.
 
''/*-------------------------------------*/''
 
''/*-------------------------------------*/''
 
  <br />
 
  <br />

Verzia zo dňa a času 12:27, 5. október 2020

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