hi, the exception in jboss say: org.nuxeo.ecm.core.api.WrappedException: Exception: org.nuxeo.ecm.directory.DirectoryException. message: Directory 'myusers' id field 'username' is not present in schema 'myuser' but I think I did all , please lock
*myuser.xsd* <?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://sample.nuxeo.org/sample/schemas/myuser/" xmlns:bk="http://sample.nuxeo.org/sample/schemas/myuser/"> <xs:include schemaLocation="base.xsd" /> <xs:element name="username" type="xs:string"/> <xs:element name="password" type="xs:string"/> <xs:element name="firstName" type="xs:string"/> <xs:element name="lastName" type="xs:string"/> <xs:element name="company" type="xs:string"/> <xs:element name="email" type="xs:string"/> <xs:element name="division" type="xs:string"/> <xs:element name="equipe" type="xs:string"/> </xs:schema> *myusers.csv* in directories folder username, password, firstName, lastName, company, email, division, equipe "Admin","Admin","","","","[email protected]","asm","rsi" *core-types-contrib.xml* ....... <extension target="org.nuxeo.ecm.core.schema.TypeService" point="schema"> <schema name="book" src="schemas/book.xsd" prefix="bk" /> <schema name="dstage" src="schemas/dstage.xsd" prefix="ds" /> *<schema name="myuser" src="schemas/myuser.xsd" prefix="us" />* </extension> <extension target="org.nuxeo.ecm.core.schema.TypeService" point="doctype"> <doctype name="Book" extends="Document"> <schema name="common" /> <schema name="dublincore" /> <schema name="book" /> <schema name="file" /> <schema name="uid" /> <facet name="Commentable" /> <facet name="Versionable" /> <facet name="Indexable" /> </doctype> <doctype name="Dstage" extends="Document"> <schema name="common" /> <schema name="dublincore" /> <schema name="dstage" /> </doctype> *<doctype name="Myuser" extends="User">* <schema name="myuser" /> </doctype> *<doctype id="MyUserCreate" extends="UserCreate">* </doctype> </extension> *directories-contrib.xml* ..... <directory name="myusers"> <schema>myuser</schema> <idField>username</idField> <passwordField>password</passwordField> <dataSource>java:/nxsqldirectory</dataSource> <table>myusers</table> <createTablePolicy>on_missing_columns</createTablePolicy> <dataFile>directories/myusers.csv</dataFile> <references> <inverseReference field="groups" directory="groupDirectory" dualReferenceField="members" /> </references> </directory> ..... -- Posted by "isteve7" at Nuxeo Discussions <http://nuxeo.org/discussions> View the complete thread: <http://www.nuxeo.org/discussions/thread.jspa?threadID=2676#7628> _______________________________________________ ECM mailing list [email protected] http://lists.nuxeo.com/mailman/listinfo/ecm To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm
