Posted: 10 Sep 2015 6:20 EDT Last activity: 28 Aug 2016 22:14 EDT
Pega 7 CMIS/atom integration with Alfresco Community Edition 5.0
I'm trying to configure CMIS integration over atompub with Alfresco Community Edition 5.0 but I'm having problems.
Pega 7 instance is ML7 personal edition running locally on my laptop.
Alfresco Community 5.0 is also running locally on my laptop.
I used the Alfresco Community Win 64 installer - creates separate Tomcat/PostrgreSQL instances as Windows services so I used Advanced mode to change all the ports from the defaults so there is no conflict with the ones used by Pega 7.
I can log into Alfresco and create a site and documents using the web tool that ships with the product so I have every reason to believe that the install is good.
On Pega I created an atom server instance. However the Test Connectivity button gives me a Fail.
I checked that the two Windows services (one for Tomcat and one for PostgreSQL) are started - they are.
Personal edition works by installing a Tomcat instance and a PostgreSQL instance directly on the laptop - i.e. there is no VM - these are started/stopped using scripts.
Alfresco is also installed as a (2nd) Tomcat instance and a (2nd) PostgreSQL instance directly on the laptop - again no VM - this time they are Windows services so you start/stop them from the Windows services applet.
Hence personal edition on one Tomcat should be able to access Alfresco on the second Tomcat using localhost or 127.0.0.1 as the 'Host' part of the URI.
However I did not try using the real IP address of my laptop. I'll give that a go and will report back.
I am guessing your Alfresco is a different version from mine (5.0) as your URI is different.
u can have the system ip instead of typing localhost if u have the alfresco in your system and if it is present any where outside the system u can enter that system ip make sure that alfresco is running at that time
I was having the same exact issue as originally described. My issue was I was using a server URL for an older version of Alfresco. I currently have Alfresco 5.0 and fixed the issue by using the server URL specific for Alfresco 5.0. Try one of the server URLs below.
For Alfresco 4.2.d-f, Alfresco 5.0 and Alfresco 5.1: http://[host]:[port]/alfresco/api/-default-/public/cmis/versions/1.1/atom
For Alfresco 4.2 and Alfresco 5.0: http://[host]:[port]/alfresco/api/-default-/public/cmis/versions/1.1/browser
The issue is only in Pega7.1.7. This is working in 7.1.8 and above versions.
Now i tried to set the work object id to the document properties in Alfresco. I created the model.xml and context.xml file added to Alfresco extensions folder. I restarted the Alfresco server and resaved the application rule. the warning is removed for application rule. now when i try to upload a file, its giving me the below error:
com.pega.pegarules.pub.services.RemoteApplicationException: Failed to search for duplicate document: org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException: Search all version is not supported!