Foren

Connect through CMIS Liferay 6.1 b4 and Alfresco 4

thumbnail
Hadrien Mens-Pellen, geändert vor 12 Jahren.

Connect through CMIS Liferay 6.1 b4 and Alfresco 4

New Member Beiträge: 20 Beitrittsdatum: 21.02.11 Neueste Beiträge
Hello Liferay forums!

I come to you to seek help because I'm trying to connect Alfresco 4.0 and Liferay 6.1 b4. I noticed a broken functionnality.

I followed Alexander Chow's tutorial : http://www.liferay.com/web/alexander.chow/blog/-/blogs/7670631, to make the connection.

I successfully managed to connect the two and can now browse and add files to Alfresco through liferay. However, when I try to move a document from one folder to another in alfresco (from Liferay) the Documents and Medias portlet crashes. In the logs I can only see that it's an internal servlet error (CMIS).

Do you guys know if ans when a correction is planned for this issue? If not, do you happen to know a workaround for this?

Thanks in advance!

Hadrien

P.S. : Please excuse my bad English
thumbnail
Alexander Chow, geändert vor 12 Jahren.

RE: Connect through CMIS Liferay 6.1 b4 and Alfresco 4 (Antwort)

Liferay Master Beiträge: 518 Beitrittsdatum: 20.07.05 Neueste Beiträge
Hi Hadrien,

Sorry to hear of your troubles. At present, this is actually a bug I've been looking into and related to:

It seems as though what's happening is things are not getting refreshed between Alfresco and Liferay and you need to refresh the page before things work properly. It also seems to be an Alfresco 4.0-specific problem as I can't seem to reproduce the bug on Alfresco 3.2. Is this your experience as well?

Alex
thumbnail
Hadrien Mens-Pellen, geändert vor 12 Jahren.

RE: Connect through CMIS Liferay 6.1 b4 and Alfresco 4

New Member Beiträge: 20 Beitrittsdatum: 21.02.11 Neueste Beiträge
Hi Alexander!

Thanks a lot for the reply! I'm glad those bugs are being looked into!

I didn't try to connect Liferay to Alfresco 3.2, we wanted to use Solr to search both Liferay indexes and Alfresco indexes.

So you can connect a repository to Alfresco 3.2 and file movement, folder deletion etc. won't be a problem?

Hadrien
thumbnail
Alexander Chow, geändert vor 12 Jahren.

RE: Connect through CMIS Liferay 6.1 b4 and Alfresco 4

Liferay Master Beiträge: 518 Beitrittsdatum: 20.07.05 Neueste Beiträge
It does not seem like this is a problem with Alfresco 3.2. But, like I said, we are still investigating this and may still be able to get things to work with 4.0.

Also, you are aware that Liferay supports Solr out of the box right? See, for example, this wiki article.
thumbnail
Hadrien Mens-Pellen, geändert vor 12 Jahren.

RE: Connect through CMIS Liferay 6.1 b4 and Alfresco 4

New Member Beiträge: 20 Beitrittsdatum: 21.02.11 Neueste Beiträge
It would be great if the connexion could work with Alfresco 4.

Yes I stumbled upon this article, that's why I was enthusiast about Solr as a search engine for both Alfresco and Liferay.

Also, I tried to delete a folder in Alfresco, I get a stack trace in the log, but the folder is successfully deleted in Liferay and Alfresco!
thumbnail
Alexander Chow, geändert vor 12 Jahren.

RE: Connect through CMIS Liferay 6.1 b4 and Alfresco 4

Liferay Master Beiträge: 518 Beitrittsdatum: 20.07.05 Neueste Beiträge
That's our hope too. We want to support integration with as many technologies as possible, but if it is a bug on the Alfresco side, there is little we can control. However, we are trying our best to get to the root cause of things.

And yes, the deletion of folder bug is one of those I listed above, namely LPS-23887. emoticon
thumbnail
Hadrien Mens-Pellen, geändert vor 12 Jahren.

RE: Connect through CMIS Liferay 6.1 b4 and Alfresco 4

New Member Beiträge: 20 Beitrittsdatum: 21.02.11 Neueste Beiträge
Thanks a lot!
faissal faissal, geändert vor 10 Jahren.

RE: Connect through CMIS Liferay 6.1 b4 and Alfresco 4

New Member Beiträge: 3 Beitrittsdatum: 29.12.13 Neueste Beiträge
Hello ,

Since 2 days I try to connect Liferay Alfresco through CMIS protocol following the publication
https://www.liferay.com/fr/web/jonas.yuan/blog/-/blogs/integrating-alfresco-through-cmis-in-liferay .

Here is my config:

session.store.password=true
dl.hook.impl=com.liferay.documentlibrary.util.CMISHook
dl.store.impl=com.liferay.portlet.documentlibrary.store.CMISStore
cmis.credentials.username=admin
cmis.credentials.password=admin
cmis.repository.url=http://localhost:8082/alfresco/service/cmis
cmis.repository.version=1.0
cmis.system.root.dir=Liferay Home

However when I try to upload a file to my portal I get the following error:

java.lang.NoClassDefFoundError : Could not initialize class com.liferay.portlet.documentlibrary.store.CMISStore $ SessionHolder
at com.liferay.portlet.documentlibrary.store.CMISStore <init> ( CMISStore.java : 63).
at java.lang.Class.newInstance ( Class.java : 374)
at com.liferay.portal.kernel.util.InstanceFactory.newInstance ( InstanceFactory.java : 63)
at com.liferay.portal.kernel.util.InstanceFactory.newInstance ( InstanceFactory.java : 27)
at com.liferay.portlet.documentlibrary.store.StoreFactory._getInstance ( StoreFactory.java : 132)
at com.liferay.portlet.documentlibrary.store.StoreFactory.getInstance ( StoreFactory.java : 105)
at com.liferay.portlet.documentlibrary.store.StoreProxyImpl.hasFile ( StoreProxyImpl.java : 224)
at
at com.liferay.portlet.documentlibrary.store.DLStoreImpl.hasFile ( DLStoreImpl.java : 342)
at com.liferay.portlet.documentlibrary.store.DLStoreUtil.hasFile ( DLStoreUtil.java : 544)
at
at
at com.liferay.portlet.documentlibrary.util.ImageProcessorImpl.hasImages ( ImageProcessorImpl.java : 146)
at com.liferay.portlet.documentlibrary.util.ImageProcessorUtil.hasImages ( ImageProcessorUtil.java : 149)
at com.liferay.portlet.documentlibrary.util.DLImpl.getThumbnailSrc ( DLImpl.java : 927 )
at com.liferay.portlet.documentlibrary.util.DLUtil.getThumbnailSrc ( DLUtil.java : 310)
at
at org.apache.jasper.runtime.HttpJspBase.service ( HttpJspBase.java : 70)
at javax.servlet.http.HttpServlet.service ( HttpServlet.java : 728)
at com.liferay.portal.servlet.DirectRequestDispatcher.include ( DirectRequestDispatcher.java : 57)
[/ code]

Note: I tested 2 Version 6.1 and 6.2 in wine.

Thank you for helping me , I am really stuck .</init>
Prateeksha Mandloi, geändert vor 9 Jahren.

RE: Connect through CMIS Liferay 6.1 b4 and Alfresco 4

Regular Member Beiträge: 112 Beitrittsdatum: 05.02.14 Neueste Beiträge
Hey Faissal,

Did u get any solution ? I am facing the same issue.
Khalil MEZYAOUI, geändert vor 9 Jahren.

RE: Connect through CMIS Liferay 6.1 b4 and Alfresco 4

New Member Beitrag: 1 Beitrittsdatum: 07.10.14 Neueste Beiträge
Hi All,

Just fixed the issue with configuration bellow (tested with Liferay 6.2, Alfresco 4):


#in portal-ext.properties:

session.store.password=true
dl.store.impl=com.liferay.portlet.documentlibrary.store.CMISStore
dl.store.cmis.credentials.username=admin
dl.store.cmis.credentials.password=admin
dl.store.cmis.repository.url=http://localhost:8081/alfresco/service/api/cmis
dl.store.cmis.system.root.dir=Liferay Home

#if ever you are behind a proxy:
http.proxyHost=
http.proxyPort=
http.proxyUser=
http.proxyPassword=
http.nonProxyHosts="localhost"


This integration will just transform your Alfresco as a "storage" for Liferay, if you look for more useful ECM integration in Liferay you can try steps here

Regards
khalil