Pridanie nových reportov na JasperServer: Rozdiel medzi revíziami
(→Import Jasper zostav) |
(→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 /> | ||
<nowiki> | <nowiki> | ||
− | + | # <br /> | |
− | + | # Copyright © 2005 - 2018 TIBCO Software Inc. <br /> | |
− | # http://www.jaspersoft.com. | + | # http://www.jaspersoft.com. <br /> |
− | # | + | # <br /> |
− | # This program is free software: you can redistribute it and/or modify | + | # This program is free software: you can redistribute it and/or modify <br /> |
− | # it under the terms of the GNU Affero General Public License as published by | + | # it under the terms of the GNU Affero General Public License as published by <br /> |
− | # the Free Software Foundation, either version 3 of the License, or | + | # the Free Software Foundation, either version 3 of the License, or <br /> |
− | # (at your option) any later version. | + | # (at your option) any later version. <br /> |
− | # | + | # <br /> |
− | # This program is distributed in the hope that it will be useful, | + | # This program is distributed in the hope that it will be useful, <br /> |
− | # but WITHOUT ANY WARRANTY; without even the implied warranty of | + | # but WITHOUT ANY WARRANTY; without even the implied warranty of <br /> |
− | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | + | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the <br /> |
− | # GNU Affero General Public License for more details. | + | # GNU Affero General Public License for more details. <br /> |
− | # | + | # <br /> |
− | # You should have received a copy of the GNU Affero General Public License | + | # You should have received a copy of the GNU Affero General Public License <br /> |
− | # along with this program. If not, see <https://www.gnu.org/licenses/>. | + | # along with this program. If not, see <https://www.gnu.org/licenses/>. <br /> |
− | # | + | # <br /> |
− | + | <br /> | |
− | # Property that determines the Hibernate dialect | + | # Property that determines the Hibernate dialect <br /> |
− | metadata.hibernate.dialect=org.hibernate.dialect.Oracle8iDialect | + | metadata.hibernate.dialect=org.hibernate.dialect.Oracle8iDialect <br /> |
− | + | <br /> | |
− | # jasperserver repo db settings | + | # jasperserver repo db settings <br /> |
− | metadata.jdbc.driverClassName=oracle.jdbc.OracleDriver | + | metadata.jdbc.driverClassName=oracle.jdbc.OracleDriver <br /> |
− | metadata.jdbc.url=jdbc:oracle:thin:@//dharma.asol.local:1521/spintest.asol.local | + | metadata.jdbc.url=jdbc:oracle:thin:@//dharma.asol.local:1521/spintest.asol.local <br /> |
− | metadata.jdbc.username=jasperserveruser | + | metadata.jdbc.username=jasperserveruser <br /> |
− | metadata.jdbc.password=kjop__548FER | + | metadata.jdbc.password=kjop__548FER <br /> |
− | metadata.jdbc.password.escapeXML=kjop__548FER | + | metadata.jdbc.password.escapeXML=kjop__548FER <br /> |
− | + | <br /> | |
− | metadata.jndi=jdbc/jasperserver | + | metadata.jndi=jdbc/jasperserver <br /> |
− | + | <br /> | |
− | metadata.database.generate=true | + | metadata.database.generate=true <br /> |
− | + | <br /> | |
− | + | <br /> | |
− | # used to add parms to tomcat datasource: context.xml | + | # used to add parms to tomcat datasource: context.xml <br /> |
− | # todo: still used? | + | # todo: still used? <br /> |
− | datasource.extra.params= | + | datasource.extra.params= <br /> |
− | + | <br /> | |
− | # Tomcat JNDI Resource factory attribute | + | # Tomcat JNDI Resource factory attribute <br /> |
− | tomcat.basic.datasource.factory=${tomcatBasicDatasourceFactory} | + | tomcat.basic.datasource.factory=${tomcatBasicDatasourceFactory} <br /> |
− | + | <br /> | |
− | # jasperserver repo DB for Integration Testing | + | # jasperserver repo DB for Integration Testing <br /> |
− | #it.metadata.jdbc.driverClassName= | + | #it.metadata.jdbc.driverClassName= <br /> |
− | #it.metadata.jdbc.url= | + | #it.metadata.jdbc.url= <br /> |
− | #it.metadata.jdbc.username= | + | #it.metadata.jdbc.username= <br /> |
− | #it.metadata.jdbc.password= | + | #it.metadata.jdbc.password= <br /> |
− | #it.metadata.jdbc.password. | + | #it.metadata.jdbc.password. <br /> |
− | + | <br /> | |
</nowiki> | </nowiki> | ||
Verzia zo dňa a času 12:30, 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:
# <br />
# Copyright © 2005 - 2018 TIBCO Software Inc. <br />
# http://www.jaspersoft.com. <br />
# <br />
# This program is free software: you can redistribute it and/or modify <br />
# it under the terms of the GNU Affero General Public License as published by <br />
# the Free Software Foundation, either version 3 of the License, or <br />
# (at your option) any later version. <br />
# <br />
# This program is distributed in the hope that it will be useful, <br />
# but WITHOUT ANY WARRANTY; without even the implied warranty of <br />
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the <br />
# GNU Affero General Public License for more details. <br />
# <br />
# You should have received a copy of the GNU Affero General Public License <br />
# along with this program. If not, see <https://www.gnu.org/licenses/>. <br />
# <br />
<br />
# Property that determines the Hibernate dialect <br />
metadata.hibernate.dialect=org.hibernate.dialect.Oracle8iDialect <br />
<br />
# jasperserver repo db settings <br />
metadata.jdbc.driverClassName=oracle.jdbc.OracleDriver <br />
metadata.jdbc.url=jdbc:oracle:thin:@//dharma.asol.local:1521/spintest.asol.local <br />
metadata.jdbc.username=jasperserveruser <br />
metadata.jdbc.password=kjop__548FER <br />
metadata.jdbc.password.escapeXML=kjop__548FER <br />
<br />
metadata.jndi=jdbc/jasperserver <br />
<br />
metadata.database.generate=true <br />
<br />
<br />
# used to add parms to tomcat datasource: context.xml <br />
# todo: still used? <br />
datasource.extra.params= <br />
<br />
# Tomcat JNDI Resource factory attribute <br />
tomcat.basic.datasource.factory=${tomcatBasicDatasourceFactory} <br />
<br />
# jasperserver repo DB for Integration Testing <br />
#it.metadata.jdbc.driverClassName= <br />
#it.metadata.jdbc.url= <br />
#it.metadata.jdbc.username= <br />
#it.metadata.jdbc.password= <br />
#it.metadata.jdbc.password. <br />
<br />
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