掲示板

Connect through CMIS Liferay 6.1 b4 and Alfresco 4

thumbnail
12年前 に Hadrien Mens-Pellen によって更新されました。

Connect through CMIS Liferay 6.1 b4 and Alfresco 4

New Member 投稿: 20 参加年月日: 11/02/21 最新の投稿
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
12年前 に Alexander Chow によって更新されました。

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

Liferay Master 投稿: 518 参加年月日: 05/07/20 最新の投稿
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
12年前 に Hadrien Mens-Pellen によって更新されました。

RE: Connect through CMIS Liferay 6.1 b4 and Alfresco 4

New Member 投稿: 20 参加年月日: 11/02/21 最新の投稿
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
12年前 に Alexander Chow によって更新されました。

RE: Connect through CMIS Liferay 6.1 b4 and Alfresco 4

Liferay Master 投稿: 518 参加年月日: 05/07/20 最新の投稿
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
12年前 に Hadrien Mens-Pellen によって更新されました。

RE: Connect through CMIS Liferay 6.1 b4 and Alfresco 4

New Member 投稿: 20 参加年月日: 11/02/21 最新の投稿
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
12年前 に Alexander Chow によって更新されました。

RE: Connect through CMIS Liferay 6.1 b4 and Alfresco 4

Liferay Master 投稿: 518 参加年月日: 05/07/20 最新の投稿
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
12年前 に Hadrien Mens-Pellen によって更新されました。

RE: Connect through CMIS Liferay 6.1 b4 and Alfresco 4

New Member 投稿: 20 参加年月日: 11/02/21 最新の投稿
Thanks a lot!
10年前 に faissal faissal によって更新されました。

RE: Connect through CMIS Liferay 6.1 b4 and Alfresco 4

New Member 投稿: 3 参加年月日: 13/12/29 最新の投稿
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>
9年前 に Prateeksha Mandloi によって更新されました。

RE: Connect through CMIS Liferay 6.1 b4 and Alfresco 4

Regular Member 投稿: 112 参加年月日: 14/02/05 最新の投稿
Hey Faissal,

Did u get any solution ? I am facing the same issue.
9年前 に Khalil MEZYAOUI によって更新されました。

RE: Connect through CMIS Liferay 6.1 b4 and Alfresco 4

New Member 投稿: 1 参加年月日: 14/10/07 最新の投稿
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