Step 8: Update JNDI data source reference to conform to JBoss standards
Update these files so that referenced JNDI datasources conform to JBoss standards.
Use a text editor to open the
pentaho/server/pentaho-server/pentaho-solutions/system/quartz/quartz.propertiesfile. Change the org.quartz.dataSource.myDS.jndiURL value to jboss/datasources/Quartz, then save and close the file.Use a text editor to open the
pentaho/server/pentaho-server/pentaho-solutions/system/audit_sql.xmlfile. Change the JNDI value to jboss/datasources/Hibernate, then save and close the file.Use a text editor to open the
pentaho/server/pentaho-server/pentaho-solutions/system/data-access/settings.xmlfile. Change the data-access-staging-jndi value to jboss/datasources/Hibernate, then save and close the file.Open the
pentaho/server/pentaho-server/pentaho-solutions/system/audit/dialects/h2directory, making sure to open the file from the correct folder.Use the text editor to open each file in the
H2directory and make the following changes:Change <database>Audit</database> to <database>jboss/datasources/Audit</database>.
Change <database>Hibernate</database> to <database>jboss/datasources/Hibernate</database>.
Navigate to the
server/pentaho-server/pentaho-solutions/system/hibernatedirectory and open the.hibernate.cfg.xmlfile corresponding to your repository database with any text editor.For the default PostgreSQL database, the file is
postgresql.hibernate.cfg.xml.Revise the
<property name="hibernate.connection.datasource">java:comp/env/jdbc/Hibernate</property>entry to the value<property name=“hibernate.connection.datasource”>java:jboss/datasources/Hibernate</property>.Save and close the file.
Last updated
Was this helpful?

