Create module file for Pentaho Repository database
You need to create a file for the database that hosts the Pentaho Repository (either PostgreSQL, MySQL, or Oracle), as well as for HSQLDB.
Locate the
pentaho/server/pentaho-server/<your jboss installation directory>/modules/system/layers/base/orgfolder and create one of the following paths for the database on which you are hosting the Pentaho Repository.PostgreSQL:
postgresql/mainMySQL:
mysql/mainOracle:
oracle/mainMS SQL Server:
sqlserver/main
Create these two paths in the same directory.
HSQLDB:
hsqldb/mainH2:
h2/main
Download the supported JDBC driver for your Pentaho Repository database to the directory that you just created.
Within that directory, do the following things:
Use an editor to create a text file named
module.xml.Copy the appropriate code into the
module.xmlfile, then modify it so that the name of the JDBC driver you just downloaded appears.
Repository Type
Module Code
PostgreSQL
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0"name="org.postgresql">
<resources>
<resource-root path="[Name of JDBC Jar You Downloaded Here]"/>
</resources>
<dependencies><module name="javax.api"/></dependencies>7
</module>MySQL
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0"name="org.mysql">
<resources>
<resource-root path="[Name of JDBC Jar You Downloaded Here]"/>
</resources>
<dependencies><module name="javax.api"/></dependencies>
</module>Oracle
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0"name="org.oracle">
<resources>
<resource-root path="[Name of JDBC Jar You Downloaded Here]"/>
</resources>
<dependencies><module name="javax.api"/></dependencies>
</module>MS SQL Server
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0"name="org.sqlserver">
<resources>
<resource-root path="[Name of JDBC Jar You Downloaded Here]"/>
</resources>
<dependencies><module name="javax.api"/></dependencies>
</module>3. Save and close the `module.xml` file.
Last updated

