Source Build Setup for Other Databases¶
You can use the example settings below for Oracle, SQL Server, and DB2.
Get Your JDBC Driver¶
You can choose to use the provided JDBC driver or download a native JDBC Driver.
Download a JDBC Driver¶
You can download a JDBC driver appropriate for your database. In this case, additional configurations are required. You can download a JDBC driver from one of these vendor sites:
- http://www.oracle.com/technetwork/indexes/downloads (Oracle)
- https://www.microsoft.com/en-us/download/details.aspx?id=56615 (SQL Server)
- http://www-01.ibm.com/software/data/db2/linux-unix-windows/downloads.html (DB2)
Copy the downloaded JDBC jar to the following location:
<js-src>/buildomatic/conf_source/db/<dbType>/jdbc
For example, for SQL Server the driver would go here:
<js-src>/buildomatic/conf_source/db/sqlserver/jdbc
Set Up Your Database¶
Oracle¶
-
Go to the buildomatic directory in the source distribution:
cd <js-src>/jasperserver/buildomatic -
Copy the Oracle specific file to the current directory and change its name to
default_master.properties:Windows: copy sample_conf\oracle_master.properties default_master.propertiesLinux: cp sample_conf/oracle_master.properties default_master.properties -
Open the new
default_master.propertiesfile for editing. -
Set the following properties for your local environment:
Property
Examples
appServerTypeappServerType=tomcat [jboss-eap-8, wildfly, skipAppServerCheck]appServerDirappServerDir = C:\Program Files\Apache Software Foundation\Tomcat 11.0
appServerDir = /home/<user>/apache-tomcat-11.0
sysUsernamesysUsername=system sysPasswordsysPassword=password dbUsernamedbUsername=jasperserver dbPassworddbPassword=password dbHostdbHost=localhostmavenmaven = C:\apache-maven-3.9\bin\mvn.cmd
maven = /home/<user>/apache-maven-3.9/bin/mvn
js-pathjs-path = C:\
JasperReports-Server-10.1.0
-src\jasperserverjs-path = /home/<user>/
JasperReports-Server-10.1.0
-src/jasperserverjs-pro-pathjs-pro-path = C:\
JasperReports-Server-10.1.0
-src\jasperserver-projs-pro-path = /home/<user>/
JasperReports-Server-10.1.0
-src/jasperserver-prorepo-pathrepo-path = C:\
JasperReports-Server-10.1.0
-src\jasperserver-reporepo-path = /home/<user>/
JasperReports-Server-10.1.0
-src/jasperserver-repochrome.pathchrome.path = C:/Program Files (x86)/Google/Chrome/Application/chrome.exe
chrome.path = /usr/bin/google-chrome
-
Save the default_master.properties file.
SQL Server¶
-
Go to the buildomatic directory in the source distribution:
cd <js-src>/jasperserver/buildomatic -
Copy the SQL Server specific file to the current directory and change its name to
default_master.properties:Windows: copy sample_conf\sqlserver_master.properties default_master.propertiesLinux: cp sample_conf/sqlserver_master.properties default_master.properties -
Edit the new
default_master.propertiesfile and set the following properties for your local environment:Property
Examples appServerTypeappServerType=tomcat [jboss-eap-8, wildfly, skipAppServerCheck]appServerDirappServerDir = C:\Program Files\Apache Software Foundation\Tomcat 11.0appServerDir = /home/<user>/apache-tomcat-11.0 dbUsernamedbUsername=sadbPassworddbPassword=sadbHostdbHost=localhostjs-pathjs-path = C:\
JasperReports-Server-10.1.0
-src\jasperserverjs-path = /home/<user>/
JasperReports-Server-10.1.0
-src/jasperserverjs-pro-pathjs-pro-path = C:\
JasperReports-Server-10.1.0
-src\jasperserver-projs-pro-path = /home/<user>/
JasperReports-Server-10.1.0
-src/jasperserver-prorepo-pathrepo-path = C:\
JasperReports-Server-10.1.0
-src\jasperserver-reporepo-path = /home/<user>/
JasperReports-Server-10.1.0
-src/jasperserver-repochrome.pathchrome.path = C:/Program Files (x86)/Google/Chrome/Application/chrome.exe
chrome.path = /usr/bin/google-chrome
-
Save the default_master.properties file.
DB2¶
-
Go to the buildomatic directory in the source distribution:
cd <js-src>/jasperserver/buildomatic -
Copy the DB2 specific file to the current directory and change its name to
default_master.properties:Windows: copy sample_conf\db2_master.properties default_master.propertiesLinux: cp sample_conf/db2_master.properties ./default_master.properties -
Edit the new
default_master.propertiesfile and set the following properties for your local environment:Property
Examples
appServerTypeappServerType=tomcat [jboss-eap-8, wildfly, skipAppServerCheck]appServerDirappServerDir = C:\Program Files\Apache Software Foundation\Tomcat 11.0appServerDir = /home/<user>/apache-tomcat-11.0 dbUsernamedbUsername=db2admindbPassworddbPassword=passworddbHostdbHost=localhostjs-pathjs-path = C:\
JasperReports-Server-10.1.0
-src\jasperserverjs-path = /home/<user>/
JasperReports-Server-10.1.0
-src/jasperserverjs-pro-pathjs-pro-path = C:\
JasperReports-Server-10.1.0
-src\jasperserver-projs-pro-path = /home/<user>/
JasperReports-Server-10.1.0
-src/jasperserver-prorepo-pathrepo-path = C:\
JasperReports-Server-10.1.0
-src\jasperserver-reporepo-path = /home/<user>/
JasperReports-Server-10.1.0
-src/jasperserver-repochrome.pathchrome.path = C:/Program Files (x86)/Google/Chrome/Application/chrome.exe
chrome.path = /usr/bin/google-chrome
-
Add the following additional properties, setting the correct values for your installation. For example:
-
Save the default_master.properties file.
Note
For DB2, the database must be created manually, because it is not possible to use a JDBC call to automatically create a database on DB2.