Liferay doesn't show Nuxeo repository folders and documents

Hi,

I try to make a CMIS connection from Liferay 6.1.0 to Nuxeo 5.5

In the control Panel of Liferay I selected “Documents and Media”, “Add”, “Repository” and filled “Name”, “Description”, Repository Type: CMIS Repository (AtomPub), AtomPub URL: http://172.19.98.2:8080/nuxeo/atom/cmis, Permissions: Anyone

After “Save” the message is “your request completed succesfully”. But no content is displayed.

When adding “Documents and Media” to my Privat Page in Liferay the repository Nuxeo is shown but no content. The repository contains (sub) folders and documents however..

172.19.98.2 is the IP address of my Nuxeo PC. Liferay runs on a laptop. With a CMIS browser on the laptop i can browse through the Nuxeo repository on the Nuxeo PC.

Hope you can help me with this.

Best regards,

Eric Wagter

0 votes

2 answers

2413 views

ANSWER



Are you (or is Liferay) properly using searchAllVersions=true in the queries it makes to Nuxeo?

0 votes



Hi,

Yes, I set searchAllVersions=true in protal-ext.properties

This is now the current situation: I can add a Nuxeo repository, message: "your request completed succesfully". However I don't see documents or folders. In my privat pages i can add (using 'add', 'Document and Media Display') the Nuxeo repository. I can see: "Subfolders: Asset Library, Collaboration, Default domain", but i cannot enter these folders. I can add subfolders and documents (using 'Actions', 'Add subfolder' or 'Add Documents'). These subfolders and documents appear in Nuxeo (using the Nuxeo GUI). In Nuxeo i can delete these subfolders and documents and they disappear in Liferay.

Nuxeo version: 5.5.0-HF00 (both Windows + OVF tested)

Error message (OVF version) appears when I try to open the document I added (the document added the way described above):

15:26:47,538 ERROR [render_portlet_jsp:154] com.liferay.portal.kernel.repository.RepositoryException: No Repository exists with the primary key 12435

at com.liferay.portal.service.impl.RepositoryServiceImpl.checkRepository(RepositoryServiceImpl.java:73)
at com.liferay.portal.service.impl.RepositoryServiceImpl.getRepositoryImpl(RepositoryServiceImpl.java:134)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:112)
at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:59)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:59)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
at com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl.getRepository(DLAppServiceImpl.java:2629)
at com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl.getFolder(DLAppServiceImpl.java:1070)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:112)
at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:59)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:59)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:108)
at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
05/03/2012

I'm not sure what happens. A network trace of the conversation between Liferay and Nuxeo would be useful to diagnose things.
05/03/2012

Hi,

With Nuxeo 5.6 RC1 it works much better!

08/01/2012


Hi Eric,

have you used 'default' as the repository name for Nuxeo? I you haven't already, I suggest you take a look at the webinar we did with Liferay: http://www.nuxeo.com/en/resource-center/webinar/liferay-nuxeo-webinar

0 votes



Hi Laurent,

Yes, I used 'default' as the repository name for Nuxeo.

A strange thing happens: when using 'Actions' on the Nuxeo repository in Liferay (in my privat page) i can add a subfolder 'test' which appears in Nuxeo next to the Default domain. Normally it's not allowed to create a subfolder in this part of the structure of Nuxeo (it's not even possible to do that in Nuxeo). I can also add a basic document in Liferay using the same method and this document appears in Nuxeo too, next to the Default domain and this test subfolder.

Eric

05/02/2012

There are some things that you can do with CMIS and can't using the standard JSF interface of Nuxeo. And the document creation is indeed a good example. The UI forbids you to create other documents than Domain, but you can do it using a low level API like CMIS. So this is the expected behaviour here.
05/02/2012

Ok, thanks.

Unfortunately the initial problem is still there. I'll do some more tests.

05/02/2012

By the way are you testing with the community or the enterprise edition of Liferay? From my experience, the enterprise version is more stable than the community version when using CMIS.
05/02/2012

I'm testing with the community edition of Liferay..
05/02/2012