I want to upload a file from Java application into Alfresco. I using the apache chemistry in eclipse, also I using Alfresco 4.2.f and maven (for including libs).
I don't know what to use folder path and I have a exception: "Exception in thread "main" org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNotFoundException: Object not found: /app:company_home/st:sites/cm:site/ at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:475) at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.read(AbstractAtomPubService.java:634) at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getObjectInternal(AbstractAtomPubService.java:857) at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.getObjectByPath(ObjectServiceImpl.java:634) at org.apache.chemistry.opencmis.client.runtime.SessionImpl.getObjectByPath(SessionImpl.java:556) at org.apache.chemistry.opencmis.client.runtime.SessionImpl.getObjectByPath(SessionImpl.java:534) at example.exmpl.AspectExample.getTestFolder(AspectExample.java:84) at example.exmpl.AspectExample.createTestDoc(AspectExample.java:107) at example.exmpl.AspectExample.doExample(AspectExample.java:38) at example.exmpl.AspectExample.main(AspectExample.java:34) "
Suppose you have a site named "test-site-1", the path to the document library within that site would be: /app:company_home/st:sites/cm:test-site-1/cm:documentLibrary
Alternatively, you could put your file in the repository outside of the Share Site structure. If you have a folder named "test" in the root of Company Home, the path is: /app:company_home/cm:test
You should use the Node Browser within Alfresco Share to inspect the folder structure. Or download the OpenCMIS Workbench from http://chemistry.apache.org and use it.