Here is my repository.xml under /myhippoproject/cms/src/main/webapp/WEB-INF/classes/org/hippoecm/repository/repository.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Repository PUBLIC
"-//The Apache Software Foundation//DTD Jackrabbit 1.5//EN"
"http://jackrabbit.apache.org/dtd/repository-1.5.dtd">
<Repository>
<FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
<param name="url" value="java:comp/env/jdbc/repositoryDS" />
<param name="driver" value="javax.naming.InitialContext" />
<param name="schemaObjectPrefix" value="repository_" />
<param name="schema" value="postgresql" />
</FileSystem>
<Security appName="Jackrabbit">
<SecurityManager
class="org.hippoecm.repository.security.SecurityManager" />
<AccessManager
class="org.hippoecm.repository.security.HippoAccessManager" />
<LoginModule
class="org.hippoecm.repository.security.HippoLoginModule" />
</Security>
<Workspaces rootPath="${rep.home}/workspaces"
defaultWorkspace="default" />
<Workspace name="${wsp.name}">
<FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
<param name="url" value="java:comp/env/jdbc/repositoryDS" />
<param name="driver" value="javax.naming.InitialContext" />
<param name="schemaObjectPrefix" value="${wsp.name}_" />
<param name="schema" value="postgresql" />
</FileSystem>
<PersistenceManager
class="org.apache.jackrabbit.core.persistence.bundle
.PostgreSQLPersistenceManager">
<param name="driver" value="javax.naming.InitialContext" />
<param name="url" value="java:comp/env/jdbc/repositoryDS" />
<param name="schemaObjectPrefix" value="${wsp.name}_" />
<param name="externalBLOBs" value="true" />
<param name="consistencyCheck" value="true" />
<param name="consistencyFix" value="true" />
</PersistenceManager>
<SearchIndex
class="org.hippoecm.repository.FacetedNavigationEngineImpl">
<param name="indexingConfiguration"
value="indexing_configuration.xml" />
<param name="indexingConfigurationClass"
value="org.hippoecm.repository.query.lucene
.ServicingIndexingConfigurationImpl" />
<param name="path" value="${wsp.home}/index" />
<param name="useCompoundFile" value="true" />
<param name="minMergeDocs" value="1000" />
<param name="volatileIdleTime" value="10" />
<param name="maxMergeDocs" value="1000000000" />
<param name="mergeFactor" value="5" />
<param name="maxFieldLength" value="10000" />
<param name="bufferSize" value="1000" />
<param name="cacheSize" value="1000" />
<param name="forceConsistencyCheck" value="true" />
<param name="enableConsistencyCheck" value="true" />
<param name="autoRepair" value="true" />
<param name="analyzer"
value="org.apache.lucene.analysis.standard
.StandardAnalyzer" />
<param name="queryClass"
value="org.apache.jackrabbit.core.query.QueryImpl" />
<param name="respectDocumentOrder" value="false" />
<param name="resultFetchSize" value="2147483647" />
<param name="extractorPoolSize" value="0" />
<param name="extractorTimeout" value="100" />
<param name="extractorBackLogSize" value="100" />
</SearchIndex>
<ISMLocking
class="org.apache.jackrabbit.core.state.FineGrainedISMLocking"/>
</Workspace>
<Versioning rootPath="${rep.home}/version">
<FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
<param name="url" value="java:comp/env/jdbc/repositoryDS" />
<param name="driver" value="javax.naming.InitialContext" />
<param name="schemaObjectPrefix" value="version_" />
<param name="schema" value="postgresql" />
</FileSystem>
<PersistenceManager
class="org.apache.jackrabbit.core.persistence.bundle
.PostgreSQLPersistenceManager">
<param name="driver" value="javax.naming.InitialContext" />
<param name="url" value="java:comp/env/jdbc/repositoryDS" />
<param name="schemaObjectPrefix" value="version_" />
<param name="externalBLOBs" value="true" />
<param name="consistencyCheck" value="true" />
<param name="consistencyFix" value="true" />
</PersistenceManager>
<ISMLocking class="org.apache.jackrabbit.core.state
.FineGrainedISMLocking"/>
</Versioning>
<DataStore class="org.apache.jackrabbit.core.data.db.DbDataStore">
<param name="url" value="java:comp/env/jdbc/repositoryDS" />
<param name="driver" value="javax.naming.InitialContext" />
<param name="databaseType" value="postgresql" />
<param name="minRecordLength" value="1024" />
<param name="maxConnections" value="5" />
<param name="copyWhenReading" value="true" />
</DataStore>
</Repository>
And this is some fragment of my pom.xml:
<profile>
<id>cargo.run</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<configuration>
<configuration>
<dependencies>
<dependency>
<groupId>postgresql</groupId>
<artifactId>postgresql</artifactId>
<classpath>extra</classpath>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<classpath>extra</classpath>
</dependency>
</dependencies>
<systemProperties>
<repo.config>
file:${project.basedir}/cms/src/main/webapp/WEB-INF/classes/org/hippoecm/repository/repository.xml
</repo.config>
<derby.stream.error.file>${project.basedir}/target/derby.log</derby.stream.error.file>
<log4j.configuration>file:${project.basedir}/conf/log4j-dev.xml</log4j.configuration>
<rebel.log4j-plugin>true</rebel.log4j-plugin>
<!-- enables auto export: -->
<project.basedir>${project.basedir}</project.basedir>
</systemProperties>
</container>
</configuration>
</plugin>
</plugins>
</build>
</profile>
--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
To post to this group, send email to hippo-c...@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-communi...@googlegroups.com.
Visit this group at http://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "Hippo Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/hippo-community/eHlWr6G60Yo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to hippo-communi...@googlegroups.com.
...
Hi Niels,
Thank you very much. It's definitely helpful. I did not find this exact page. It would have saved me much time. The one I found is for Hippo 7.8 postgesql setup with glassfish.
http://www.onehippo.org/7_8/library/deployment/configuring/configuring-hippo-7-for-glassfish-v3-and-postgresql.html
It's not up-to-date and not 100% what we want, but at least it makes a statement that hippo supports Postgreql in the older version easily.
Thanks,
Sam
On Wednesday, January 14, 2015 at 4:49:20 AM UTC-5, n.vankampenhout wrote:Hi,
Out of curiosity, did you find this page:
http://www.onehippo.org/library/deployment/configuring/configuring-hippo-7-for-postgresql.html
and if so, was it helpful?
I don't think we see a lot of PostgreSQL users (compared to MySQL,
Oracle) so the page might be outdated or incomplete.
Thanks,
Niels
On Mon, Jan 12, 2015 at 6:28 PM, <k...@northpointdigital.com> wrote:
> Thank you very much! It works! I replace the SearchIndex tag with the one
> from Oracle setup.
> http://www.onehippo.org/library/deployment/configuring/configuring-hippo-7-for-oracle-and-tomcat.html
> Hippo CMS finally comes up! A hundred thanks!
--