Foren
Liferay 6.0 and JackRabbit
Jaber C. Mourad, geändert vor 14 Jahren.
Liferay 6.0 and JackRabbit
Junior Member Beiträge: 89 Beitrittsdatum: 19.02.10 Neueste Beiträge
Hi,
I'm trying to configure Jackrabbit to use database as content repository.
I have modified ${liferayhome}/data/jackrabbit/repository.xml
I set dl.hook.impl=com.liferay.documentlibrary.util.JCRHook in portal-ext.properties
When I reload the portal, nothing happen, no change and content continue to be store in the file system !
There are no special logs and the data schema is not created... So, I think JackRabbit hasn't take the new configuration !
Do I miss something ?
Regards
I'm trying to configure Jackrabbit to use database as content repository.
I have modified ${liferayhome}/data/jackrabbit/repository.xml
<!--?xml version="1.0"?-->
<repository>
<filesystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
<param name="driver" value="javax.naming.InitialContext">
<param name="url" value="jdbc/LiferayPool">
<param name="schema" value="mysql">
<param name="schemaObjectPrefix" value="JR_CR_FS_">
</filesystem>
<security appname="Jackrabbit">
<accessmanager class="org.apache.jackrabbit.core.security.SimpleAccessManager" />
<loginmodule class="org.apache.jackrabbit.core.security.SimpleLoginModule">
<param name="anonymousId" value="anonymous">
</loginmodule>
</security>
<workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="liferay" />
<workspace name="${wsp.name}">
<persistencemanager class="org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager">
<param name="driver" value="javax.naming.InitialContext">
<param name="url" value="jdbc/LiferayPool">
<param name="schema" value="mysql">
<param name="schemaObjectPrefix" value="JR_PM_${wsp.name}_">
<param name="externalBLOBs" value="false">
</persistencemanager>
<filesystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
<param name="driver" value="javax.naming.InitialContext">
<param name="url" value="jdbc/LiferayPool">
<param name="schema" value="mysql">
<param name="schemaObjectPrefix" value="JR_CR_FS_${wsp.name}_">
</filesystem>
</workspace>
<versioning rootpath="${rep.home}/version">
<filesystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
<param name="driver" value="javax.naming.InitialContext">
<param name="url" value="jdbc/LiferayPool">
<param name="schema" value="mysql">
<param name="schemaObjectPrefix" value="JB_V_FS_">
</filesystem>
<persistencemanager class="org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager">
<param name="driver" value="javax.naming.InitialContext">
<param name="url" value="jdbc/LiferayPool">
<param name="schema" value="mysql">
<param name="schemaObjectPrefix" value="JB_V_PM_">
<param name="externalBLOBs" value="false">
</persistencemanager>
</versioning>
</repository>
I set dl.hook.impl=com.liferay.documentlibrary.util.JCRHook in portal-ext.properties
When I reload the portal, nothing happen, no change and content continue to be store in the file system !
There are no special logs and the data schema is not created... So, I think JackRabbit hasn't take the new configuration !
Do I miss something ?
Regards
Manish Kumar Gupta, geändert vor 14 Jahren.
RE: Liferay 6.0 and JackRabbit
Liferay Master Beiträge: 535 Beitrittsdatum: 16.05.08 Neueste Beiträge
Can you check Control Panel -> Server Administration -> Properties -> Portal Properties to see the value of dl.hook.impl? Is it showing com.liferay.documentlibrary.util.FileSystemHook or com.liferay.documentlibrary.util.JCRHook?
Jaber C. Mourad, geändert vor 14 Jahren.
RE: Liferay 6.0 and JackRabbit
Junior Member Beiträge: 89 Beitrittsdatum: 19.02.10 Neueste Beiträge
For dl.* properties I have :
dl.comparable.file.extensions .css,.js,.htm,.html,.txt,.xml
dl.file.entry.comments.enabled true
dl.file.extensions *
dl.file.icons .bmp,.css,.doc,.docx,.dot,.gif,.gz,.htm,.html,.jpg,.js,.lar,.odb,.odf,.odg,.odp,...
dl.file.max.size 3072000
dl.file.rank.enabled true
dl.hook.file.system.root.dir /home/mourad/temp/liferay-portal-6.0.0/data/document_library
dl.hook.impl com.liferay.documentlibrary.util.JCRHook
dl.hook.jcr.fetch.delay 500
dl.hook.jcr.fetch.max.failures 5
dl.hook.s3.access.key ,
dl.hook.s3.bucket.name ,
dl.comparable.file.extensions .css,.js,.htm,.html,.txt,.xml
dl.file.entry.comments.enabled true
dl.file.extensions *
dl.file.icons .bmp,.css,.doc,.docx,.dot,.gif,.gz,.htm,.html,.jpg,.js,.lar,.odb,.odf,.odg,.odp,...
dl.file.max.size 3072000
dl.file.rank.enabled true
dl.hook.file.system.root.dir /home/mourad/temp/liferay-portal-6.0.0/data/document_library
dl.hook.impl com.liferay.documentlibrary.util.JCRHook
dl.hook.jcr.fetch.delay 500
dl.hook.jcr.fetch.max.failures 5
dl.hook.s3.access.key ,
dl.hook.s3.bucket.name ,
Jaber C. Mourad, geändert vor 14 Jahren.
RE: Liferay 6.0 and JackRabbit
Junior Member Beiträge: 89 Beitrittsdatum: 19.02.10 Neueste Beiträge
I have added that key in the portal-ext.properties :
jcr.jackrabbit.config.file.path=${com.sun.aas.installRoot}/../data/jackrabbit/repository.xml
(I'm running under glassfish)
And it manage to connect to repository and it works !
Regards
jcr.jackrabbit.config.file.path=${com.sun.aas.installRoot}/../data/jackrabbit/repository.xml
(I'm running under glassfish)
And it manage to connect to repository and it works !
Regards