Jaspersoft Integration User Guide
Jaspersoft Integration User Guide
Jaspersoft Integration
Version Control
Date Changed by Version Page Comments
Jaspersoft integration allows a modern and flexible reporting framework for developers and
power users to create and adjust warehouse operation reports and is available in modern
releases (i.e., 5.0_dublin and later).
This section provides instruction how to install Jaspersoft on to a client’s server and
is the starting place when a new system is required to have Jaspersoft installed.
This section will guide the implementer through the process of configuring Jaspersoft
Reports after the installation of the server is complete.
This section provides the necessary steps on how to start with Jaspersoft Studio and
build custom reports.
2.1 ROOT functions and process - Create user jsadmin on a client server
To create the jsadmin user on the client server, the following steps are required to be
completed:
2.2 Granting user jsadmin root permission via the visudo file
To grant user jsadmin root permission via the visudo file, the following steps are required
to be completed:
Note
Using the :wq! command saves all changes made to a Linux file when using the vi text editor. If
you don’t wish to save your changes, press esc, type :q! then press enter.
2.3 Download the correct Jasper Report install file for Linux
The instructions to download the Jasper Report installation file for Linux are below:
1. Go to URL: https://community.jaspersoft.com/project/jasperreports-server/releases
2. Find and select the file TIB_js-jrs-cp_7.8.0_linux_x86_64.run
3. Complete the Jaspersoft Registration Process
4. Then after completing the registration process, FTP the file to the /usr/local/ directory
on the client’s server
Note
Items highlighted within the red border shows that the jaspersoft installation file is now executable
and is owned by user jsadmin as explained in steps 7.4 & 7.5 respectively.
Note
Items highlighted within the red border indicate that the user jsadmin now has ownership rights
of the newly created directory jasperreports-server-7.8.0 including the two subdirectories apache-
tomcat and lib as explained in steps 7.6 & 7.7 respectively.
2.8 Sourcing the correct Oracle JDBC driver for Jasper Reports
The following details how to find and download the required driver for Jaspersoft Reports:
1. Go to URL -
https://jar-download.com/artifacts/com.oracle.ojdbc/ojdbc8/19.3.0.0/source-
code
2. Download the file ojdbc8-19.3.0.0.jar to a directory on your pc
3. Once you have the file, ftp the ojdbc8-19.3.0.0.jar file into directory
/usr/local/jasperreports-server-7.8.0/apache-tomcat/lib on the client server
Note
If you’re unable to copy the ojdbc8-19.3.0.0.jar file into the /apache-tomcat/lib directory due to
permission restrictions, use the chmod 777 command to make the directories readable, writable and
2.9 Running the Jasper Reports installation file on the client server
The following details how to run the installation file on the client’s server:
1
Message:
“Welcome to the
JasperReports Server CP
7.8.0 Setup Wizard…”
User Action:
Press [Enter] to continue
2
User Action:
Press [Enter] to continue
3
User Action:
Press [Enter] to
continuedopn
5
User Action:
Press [Enter] to continue
6
User Action:
Press [Enter] to continue
7
User Action:
Press [Enter] to continue
8
User Action:
Press [Enter] to continue
9
User Action:
Press [Enter] to continue
User Action:
11
Press [Enter] to continue
12
User Action:
Press [Enter] to continue
13
User Action:
Press [Enter] to continue
14
User Action:
Press [Enter] to continue
15
User Action:
Press [Enter] to continue
17
User Action:
Press [Enter] to continue
18
User Action:
Press [Enter] to continue
19
User Action:
Press [Enter] to continue
20
User Action:
Press [Enter] to continue
21
User Action:
Press [Enter] to continue
23
User Action:
Press [Enter] to continue
24
User Action:
Press [Enter] to continue
25
User Action:
Press [Enter] to continue
26
User Action:
Enter option [1]
27
User Action:
Create an installation
directory within the
/usr/local/ directory
28
User Action:
Press [Enter] to continue
29
User Action:
Enter Y to continue
30
User Action:
Enter y to continue
31
User Action:
Enter Y to continue
33
User Action:
Enter Y to continue:
34
User Action:
Await installation of
Jasper Reports – “0% to
100%”
Enter n to continue
35
Jasper Reports setup now
completed
2.11 Sourcing the correct font jar file for Jasper Reports
The following details how to source the correct font jar file:
1. Go to the URL:
https://wisetechglobal.sharepoint.com/:f:/r/sites/Acquisitions/Microlistics/Projects/
Projects/06%20Internal/JasperSoft%20implementation/Jasper%20Report%20Guide
%20-%20Impl/final?csf=1&web=1&e=G1zqPt
2. Download the file mWMSFont.jar to a directory on your pc
3. Once you have the file, ftp the mWMSFont.jar file into directory
/usr/local/jasperreports-server-7.8.0/apache-tomcat/webapps/jasperserver/
WEB-INF/lib on the client server.
Note
If you’re unable to copy the mWMSFont.jar file into the
/apache-tomcat/webapps/jasperserver/WEB-INF/lib directory due to permission restrictions, use
the chmod 777 command to make the directories readable, writable and executable for
everyone.
1. Navigate to
/usr/local/jasperreports-server-7.8.0/apache-tomcat/webapps/jasperserver/
WEB-INF/classes directory as jsadmin user
2. At the prompt type vim + jasperreports.properties - press enter
3. Press o to start editing the file
4. Copy and paste the following two lines into the file:
net.sf.jasperreports.default.font.name = mWMSFont
© 2022 Microlistics – part of the WiseTech Global group. Jaspersoft Integration | 13 of 82
net.sf.jasperreports.default.font.size = 10
5. Press Esc to exit inserting mode
6. Press :q! to save the change
After saving the change, please run command cat jasperreports.properties to confirm the two
properties exist in the file
1. Now navigate to the newly created Jasper reports installation directory as outlined in
6.10, step 27.
2. For example, /usr/local/jasperreports-server-7.8.0-Installation
Note
The ctlscript.sh script is found in the installation folder created in table section T1.27 and once
triggered the apache-tomcat services are activated and confirmed by an automated message as
per below:
Apache Log4j 2 logging library therefore needs to be updated, to version 2.16.0, the steps
to do this are below:
3. Go to the <jasper-server-installation>/apache-tomcat/webapps/jasperserver/WEB-
INF/lib/ directory by typing:
cd jasper-server-installation>/apache-tomcat/webapps/jasperserver/WEB-
INF/lib/
4. Delete the seven 2.13.3 version log4j jar files in this directory as below:
https://wisetechglobal.sharepoint.com/:f:/r/sites/Acquisitions/Microlistics/Projects/
Projects/06%20Internal/JasperSoft%20implementation/Jasper%20Report%20Guide
%20-%20Impl/final?csf=1&web=1&e=UjeLRD
log4j-1.2-api-2.16.0.jar
log4j-api-2.16.0.jar
log4j-core-2.16.0.jar
log4j-jcl-2.16.0.jar
8. Check that the log4j jar files in 2.16.0 version exist under the <jasper-server-
installation>/apache-tomcat/webapps/jasperserver/WEB-INF/lib/ directory, for
example:
10. Confirm that the Jaspersoft Server is up and running by accessing the URL:
http://<jasper-server-ip>:<jasper-server-port>/jasperserver/login.html
Note
Alternative ways to start and stop the Japsersoft service from within the /etc/system/system
directory.
You can click on “Need help logging in ?” and default logins are : jasperadmin /
jasperadmin
Note
When a client IP is entered into the URL field as per the image below, the Jaspersoft Server
splash screen appears and is ready to be utilised.
- EG: 10.70.0.70:8080/jasperserver/login.html
Instructions to find the service, start and stop the service, and the check status of the
service is provided below:
A Linux systemd service named jasper.service is created so that the jsadmin user can
start and stop the Jaspersoft Server.
Note
Only the user jsadmin is to be used to start and stop the Linux services created for
JasperServer. Credentials will be provided by the Microlistics administrator post installation.
Note
The default port used once the installation is completed is 8080. If any other service is already
running on this port for the client, then this port number will need to be changed to a new port in
the tomcat directory. This is covered in section 3.4.
1. To check if Jasper Reports Server is installed, first see if the below Jaspersoft Server
URL is accessible.
http[s]://{hostname}:{port}/jasperserver/login.html
2. If the link is not accessible, then it means that the Jaspersoft Server is not installed or
not running.
3. To check if the Jaspersoft Server (jasperserver) is running, from the Linux command
line, type the bellow:
The jsadmin user should show that the jasperserver is running as shown below:
If server is not running, then need to connect to the Jaspersoft Server with the
jsadmin user and start the server.
4. To start or stop the Jaspersoft Server use the Linux system service jasper.service as
the jsadmin user:
b. Check if the systemd Linux service for the Jaspersoft Server exists (this will be
created by the administer during installation and if it does not exist then report this
to the administrator, so it is created). To check if the jasper.service is present,
type:
cd /etc/systemd/system
ls jasper.service
The above command should then list the jasper.service as shown below:
c. If the jasper.service is present, then start the Jasper Service using the below
command:
e. To check if the service is started and running, then use the below command:
This command will show the Jasper Service as active when started as shown
below:
Warning: Journal has been rotated since unit was started. Log
output is incomplete or unavailable.
5. If any errors occur when the service is started, these can be identified by looking at the
service logs. Any errors should be reported to the Microlistics Administrator to be
resolved.
journalctl -u jasper.service
journalctl -u jasper.service -f
Note
Once the Jaspersoft Server is started and if a report failure happens, any server logs should
be checked and provided when an issue is reported. The logs can be found in:
<jasper-server-installation>/apache-tomcat/logs/catalina.out
Note
Once the port is changed, for the changes to take effect, the Jaspersoft Server needs to be
stopped and restarted using jasper.service.
3.5 SSL
If SSL is not required, then SSL will not be used and by default, SSL is not enabled in the
Jaspersoft Server.
If SSL is required, then the client’s SSL certification will need to be provided for
installation.
To enable SSL:
1. The Microlistics Administrator will need to enable SSL at the server side and the
provided certificate will need to be installed.
2. Then the ISIS.config file will need to be altered as detailed in section 3.7.1 of this
document.
3. The report manager will require extra configuration which is detailed in section 3.7.3 of
this document.
3. The Add Users screen will then be displayed, enter all required details, and then
press Add User:
Note
The default user is jasperadmin which is created as a part of the Jaspersoft
Server installation. The username and password for default is jasperadmin.
4. The new Jasper admin user must be provided the ADMINISTRATOR role. This can
be done by selecting the newly created user and then select Edit:
6. Once the new admin user is created, switch across to it by selecting the new user in
the screen below and then selecting Login as User:
7. The default admin user should then be disabled or deleted which can also be done in
the above screen by selecting the default admin user and then pressing the Delete
User button or unclicking the User is enabled option:
Before field_install is run, it must be first checked that the ISIS.config file (located in
$ISIS_HOME) is configured with the correct parameters and added as required:
For example:
Note
Ensure to configure these parameters as required if not using the default values. If using the
default port, the default jasper admin user, if no SSL is enabled, not using Jaspersoft Server
professional license version, and not connecting to a remote oracle host, then no configuration
as above is required in the ISIS.config file.
After field_install has been successfully run, it is then required to login to the Jaspersoft
Server and validate if the Directories, Data source, Users, Server attributes and Icons
have been created as required:
Note
To login to the Jaspersoft Server, the login URL is:
http[s]://{hostname}:{post}/jasperserver/login.html
b. Check if the directory mWMS is created in the Jaspersoft Server as shown below:
g. All the report files will be deployed to the respective directories under the Custom
folder. Check if the respective report unit with a Type of “Report” are present in
the mWMS/$ISIS_ORACLE_USER/Custom directory:
i. Select Server Attributes, and check that the following server attributes have been
created and set to the correct values as shown below:
mWMS_Schema
mWMS_Database
mWMS_Password
Find the directory for the $ISIS_ORACLE_USER and then select Client_icons:
k. It must also be validated that the Oracle server and the Jasper Installation are on
the same box or not. If setup on different boxes, a manual correction of the
datasource URL in the datasource connector created by the jasper_install script is
required to be done as below:
1. To change the localhost value in the datasource URL, select mWMS in the
Repository and then selecting the Edit button:
3. Once the required changes are made, then the connection can be tested by
selecting Test Connection.
JASPER_SERVER_PORT: The port where the Jaspersoft Server is running – the default
value is 8080. If the port has been set to a different number, then this parameter also
needs to be set to the same value.
Updat
Parameter Value Description
e
Constant value for
JASPER_SERVER jasperserver Y
JASPER_SERVER
This is the host server where
JASPER_SERVER_HOS
localhost jasper server has been Y
T
installed and running
JASPER_SERVER_POR
8080 Jasper server port no Y
T
1. Via SQL Developer, create a record in the IS_PRINTS_NAME table as shown below:
Note
The CLIENT, PRINT_QUEUE and ID should be set as required.
2. Via SQL Developer, create a record in the IS_RPT_REQUEST table as shown below
to generate the report:
3. Start up the Report Manager via the usual method and ensure that the CLIENT.PDF
file is generated in the spool directory of $ISIS_HOME. If the report is generated, this
means that the Jaspersoft Server Installation is a success.
4. The PERFORMED field in the IS_RPT_REQUEST table will be updated with system
date once the report is generated successfully.
Note
Client icons need to have the same name as the spelling of the IS_CLIENT.CODE that
that the report is being generated for as Jaspersoft Reports will only recognise client icons
that have this naming.
1. To install a client icon, the following command is required to be run if the jasperadmin
user, port and the other usage params are defaulted:
For example:
2. If any of the default values have been altered, then the command should be run as
below:
3. Once the log has been installed, it will appear the on the Jaspersoft Server under the
users schema, under the Client_Icons directory:
Note
The usage of the client_icon script, can be found by typing: client_icon -help
https://community.jaspersoft.com/project/jaspersoft-studio/releases
Accept the license and install (the directory that the software is installed is up to the user
installing the software).
1. In the Repository Explorer, click on Data Adapters and then right click and select
Create Data Adapter:
e. In the File Browser screen as shown below, locate the file downloaded in step 4b
above and then select Open:
g. A sucessful message should then appear and once this appears select OK.
1. Under the Repository Explorer, click on Servers, and then right click and select
Create JasperReports Server Connection:
4. Click on OK, and then Finish to complete the creation of the connection.
5. Once connection is established, the reports can be viewed that are already publi+
6. shed to the Jaspersoft Server under the mWMS/$ISIS_ORACLE_USER/directory.
Note
If any of the views shown below are not shown, then using Help and searching for the
required view (for example Outline view) will provide the instructions on how to display the
view.
4. Enter the Name of the Project to be created and then press Finish.
Once the project is created, then a Jaspersoft Report can then be created, to do this:
1. In the Project Explorer, select the project just created, and then right click and select
New and then select Jasper Report:
4. In the Data Source screen, select the Data Adaptor created above in the Data
Adaptor list:
There are two options to provide a data source for the report being created:
a. To provide a direct data source, in the below screen, ensure the correct Data
Adaptor is selected and then on the right-hand side of the screen, enter the query
that will be used as the basis of the new report:
Then press Next, and then the Fields screen will be displayed:
Press Next and then the Group By options can be selected, select a field to group
by (if required) and then press the > button:
To provide the dataset to be used, then select the DataSet and Query editor
dialog button:
In this screen, select the Dataset to be used by selecting the required adaptor from
the dropdown box:
Press OK to continue and then the report will again be shown in Design mode:
Once this is done, the report will then look like the below:
Other fields can be deleted by click on the required field and then pressing delete. For
example, deleting the text Add a description here has been done below:
3. Then change the value in the Text Field by either double clicking on it and altering
the value or using the Text Field tab in the bottom right of the screen and changing
the Text Field Expression value:
2. Then select the Text Field just added and in the bottom right-hand side of the screen,
select the Text Field tab:
And then the Expression field should then be populated with this value as shown above.
6. Press Finish in the Expression Editor and then the report should look similar to the
below:
These are all added by similar methods to the adding of a text field.
For example, if want to add an extra line to the report, then select Line from the Palette at
the top right of the screen and then drag it to the required position on the report.
1. Select the Image option from the Palette on the right-hand side of the screen:
2. Then drag to the required position on the report, once this is done, the Create new
image element popup will be displayed:
6. Then press Finish, then the Create new image element popup should again be
displayed, this time with the Option field populated:
Note
New icons can be added to the Jaspersoft Server Repository by following the instructions
in section 6.7.5.
When this is selected, then the report will be shown as below where the final version of
the report can be viewed and adjusted as required, ensure that the Data Adaptor is set to
the correct value:
2. At the bottom of the report, will show the results of the compile:
Once the report is published to the Jaspersoft Server, then the report can be tested via
the Microlistics WMS Report Manager.
1. On the Design tab of the Main Report, press the Publish Report to JasperReports
Server button:
2. Once this is selected, then the Publish To JasperReports Server wizard will be
displayed. Select the user schema from the list provided. To do this first click on the
Server Connection, this will then display similar to the below:
4. Ensure that the Create Report Unit button is ticked and then press Next:
6. Press Next and then in the Configure the data source screen, select the Data
Source from Repository option and then click the icon:
8. And the click on the > symbol next to mWMS and then select the mWMS option and
then press Finish:
2. Next, the schema user must be logged in as to run the report in the Jaspersoft Server,
to do this:
d. The user that was just selected to log in as should then be displayed at the top of
the screen, when the Repository screen is then redisplayed after selecting Login
as User is pressed:
b. Then from the list of folders displayed, select the correct user, in this example it is
natpharma and then select the Custom folder:
The right-hand side of the screen will then display all the reports available.
c. Find the report that was created in section 4.4 as shown below:
d. The report will then be displayed from the Jaspersoft Server which verifies that the
report can be generated and run from the Jaspersoft Server:
1. A record first needs to be created in the Printer Reports screen (menu option: 509)
for the report. An example is below:
Note
3. Ensure that the Report Manager is running, and the report manager will then process
the request created in the IS_RPT_REQUEST table and when the request is
processed, then the PERFORMED field will be updated to the date/time that the
request was processed.
4. The generated report can then be viewed in the Printer Spooler (menu option: 557) in
the Microlistics GUI as shown below:
For example, to alter the report created above, then click on:
2. Alter the report by altering the dataset to add more fields (see section 4.5 for more
information).
3. Add additional fields to the report (see section 4.5.2 for more information).
4. Once finished modifying the report, preview it (see section 4.5.5 for more
information), compile it (see section 4.5.6) for more information, then publish it to the
Jaspersoft Server (see section 4.6).
Note
All log files referred to in the below are in the $ISIS_HOME/errorlogs directory.
For any error that occur before the call that is triggered from the Report Manager to
the Jaspersoft Server to fetch the report, will log details in the:
- dat file,
- IS_ERRORLOG table and log file
For any error that was received as response for the call once the request is triggered
from the report manager, logs to the:
- dat file,
- the IS_ERRORLOG table and log file
- creates an html file for error response received from Jaspersoft Server.
The Jasper error response body is saved to below path as a HTML file in below format:
$ISIS_HOME/errorlogs/incidents/REPORT_MANAGER_$
{ISIS_ORACLE_USER}_yyyymmdd_hh24miss.html
The log files can be found in the jasper server installation tomcat directory as below:
<jasper-server-installation>/apache-tomcat/logs/catalina.out
Old log files can also be checked for exceptions and are timestamped for example:
catalina.2022-01-24.log
For any issues that arise during report generation post Jaspersoft Server installation and
running of the Jaspersoft Server.
Provide the below information whenever a problem arises:
$ISIS_HOME/errorlogs/REPORT_MANAGER.debug
$ISIS_HOME/errorlogs/REPORT_MANAGER. {$ISIS_ORACLE_USER }.dat
$ISIS_HOME/errorlogs/REPORT_MANAGER. {$ORACLE_SID}.
{$ISIS_ORACLE_USER}.log
$ISIS_HOME/errorlogs/incidents/REPORT_MANAGER_$
{ISIS_ORACLE_USER}_yyyymmdd_hh24miss.html (if created for the error for
whatever datetime it matches)
extract_o of the associated order
catalina.out or catalina-{datetime}.log – as per the error occurred timing
Any error that happens when trying to start the jasper.service can be identified by
executing the below commands to see the service logs. Please notify the Microlistics
administrator who did initial install of the issues along with any errors logged:
journalctl -u jasper.service
journalctl -u jasper.service -f