Hi. I'm currently working on a prototype using OpenCmis. I installed a cmis server with following repository.properties
class=org.apache.chemistry.opencmis.fileshare.FileShareServiceFactory login.1 = test:test login.2 = cmisuser:password login.3 = reader:reader type.1 = /a99/a99a/bld/server/allgemein/cmis/type.xml repository.testrepo = /a99/a99a/bld/server/allgemein/cmis/data repository.testrepo.readwrite = test, cmisuser repository.testrepo.readonly = reader The type.xml looks like that. <?xml version="1.0" encoding="UTF-8"?> <cmisra:type xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/" xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cmis:cmisTypeDocumentDefinitionType"> <cmis:id>capUserId</cmis:id> <cmis:localName>capUserId</cmis:localName> <cmis:localNamespace>http://www.bedag.ch/cmis</cmis:localNamespace> <cmis:parentId>cmis:document</cmis:parentId> <cmis:displayName>Capitastra User ID</cmis:displayName> <cmis:queryName>USERID</cmis:queryName> <cmis:description>Capitastra User ID</cmis:description> <cmis:baseId>cmis:document</cmis:baseId> <cmis:creatable>true</cmis:creatable> <cmis:fileable>true</cmis:fileable> <cmis:queryable>false</cmis:queryable> <cmis:fulltextindexed>false</cmis:fulltextindexed> <cmis:includedInSupertypeQuery>true</cmis:includedInSupertypeQuery> <cmis:controllablePolicy>false</cmis:controllablePolicy> <cmis:controllableACL>false</cmis:controllableACL> <cmis:versionable>false</cmis:versionable> <cmis:contentStreamAllowed>required</cmis:contentStreamAllowed> <cmis:propertyStringDefinition> <cmis:id>capUserid</cmis:id> <cmis:localName>capUserId</cmis:localName> <cmis:displayName>Capitastra User ID</cmis:displayName> <cmis:queryName>capUserId</cmis:queryName> <cmis:description>Capitastra User ID</cmis:description> <cmis:propertyType>string</cmis:propertyType> <cmis:cardinality>single</cmis:cardinality> <cmis:updatability>readwrite</cmis:updatability> <cmis:inherited>false</cmis:inherited> <cmis:required>false</cmis:required> <cmis:queryable>false</cmis:queryable> <cmis:orderable>false</cmis:orderable> </cmis:propertyStringDefinition> </cmisra:type> The type.xml is parsed correctly. But when i try to use this property my client complains the following. java.lang.IllegalArgumentException: Property 'cmis:capUserId' is not valid for this type! at org.apache.chemistry.opencmis.client.runtime.repository.ObjectFactoryImpl.convertProperties(ObjectFactoryImpl.java:318) When i debug the SessionImpl.class I see that my Type is not in the TypeDefinition of the DocumentTypeDefinitionImpl. What do i miss??? Cheers Rolf Rolf Künzli Bedag Informatik AG SE/EN4 GBA Gutenbergstr. 1 3011 Bern Telefon: +41 (0)31 633 21 21 (633 22 27) Fax: +41 (0)31 382 35 56 E-Mail: [email protected] Internet: www.bedag.ch
