Skip to end of metadata
Go to start of metadata

This article will help you to configure your Nuxeo 5.2 server with JCR and PostreSQL as backend storage.

For those who were using Nuxeo 5.1, a major change has been introduced in the configuration as there is configuration file in nuxeo.ear/datasources folder that contains the Nuxeo datasource for the repository. Now you have to set up nuxeo.ear/datasources/default-repository-ds.xml in addition to nuxeo.ear/config/default-repository-config.xml that contains the type of repository and its configuration options.

Previously, the datasource configuration for JCR was hidden in the nuxeo-core-jca JAR.

Now that the default configuration for storage is the Visible Content Store, aka the SQL storage, the configuration for JCR datasources has to be explicitly put inside the global datasource folder, what allows us to disable it.

An example of configuration for default-repository-ds.xml is:

Take care that this file references the nuxeo-core-jca connector in version 1.5.0: if you're using another version, change this value.

An example of configuration for default-repository-config.xml is:

Moreover, you can change the storage for the other datas (audit, directories ...).

An example of configuration for unified-ds.xml:

In the case you change the database used to store Jena data, change the properties above in config/sql.properties :

  • org.nuxeo.ecm.sql.jena.databaseType=PostgreSQL

Drop the following JARs in server/default/deploy/nuxeo.ear/system:

Jars for other versions of Nuxeo EP can be found through Nexus search interface at http://maven.nuxeo.org/nexus/.

To get proper application startup, in JBoss, you have to update server/default/conf/login-config.xml to remove/comment the application policy "other" at the end like this:

Otherwise, JBoss will pretend it has a JAAS config for every application including Jackrabbit, but we don't want Jackrabbit to use JAAS.

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.