|
Re: Importing our own schema into Nuxeo using sample project - 'not a regis: msg#00300cms.nuxeo.general
So we're very keen to, at this stage, just get a document into Nuxeo using a very cut down schema and start evaluating some of the other elements of the system. We're already using a schema very similar to the one you suggested (just a couple of simple elements with no attributes), however we are getting another problem: 15:58:53,990 ERROR [JCRDocument] Error setting value: Version 1.0.0 on property: Version 15:58:53,991 ERROR [ClientException] ClientException created... org.nuxeo.ecm.core.api.ClientException: Failed to create document my- new-policy at org.nuxeo.ecm.core.api.AbstractSession.createDocument (AbstractSession.java:525) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) Caused by: org.nuxeo.ecm.core.api.DocumentException: failed to set boolean property Version at org.nuxeo.ecm.core.jcr.properties.StringProperty.create (StringProperty.java:45) at org.nuxeo.ecm.core.jcr.properties.JCRScalarProperty.setValue (JCRScalarProperty.java:90) at org.nuxeo.ecm.core.jcr.JCRDocument.setPropertyValue (JCRDocument.java:430) at org.nuxeo.ecm.core.api.AbstractSession.writeModel (AbstractSession.java:336) at org.nuxeo.ecm.core.api.AbstractSession.createDocument (AbstractSession.java:498) ... 217 more Caused by: javax.jcr.nodetype.ConstraintViolationException: no matching property definition found for {}Version at org.apache.jackrabbit.core.nodetype.EffectiveNodeType.getApplicablePrope rtyDef(EffectiveNodeType.java:771) at org.apache.jackrabbit.core.NodeImpl.getApplicablePropertyDefinition (NodeImpl.java:926) at org.apache.jackrabbit.core.NodeImpl.getOrCreateProperty (NodeImpl.java:457) at org.apache.jackrabbit.core.NodeImpl.getOrCreateProperty (NodeImpl.java:407) at org.apache.jackrabbit.core.NodeImpl.setProperty (NodeImpl.java:2121) at org.nuxeo.ecm.core.jcr.properties.StringProperty.create (StringProperty.java:42) ... 221 more In 'ecm-types-contrib.xml', we are using: <type id="Policy" coretype="policy"> <label>PolicyMatter Document</label> <icon>/icons/pmLogo16.png</icon> <default-view>view_documents</default-view> <layout> <widget jsfcomponent="h:inputText" schemaname="dublincore" fieldname="title" required="true"/> <widget jsfcomponent="h:inputText" schemaname="policy" fieldname="Version" required="true"/> <widget jsfcomponent="nxu:editor" schemaname="policy" fieldname="Content" /> <widget jsfcomponent="nxdir:selectOneListbox" schemaname="dublincore" fieldname="language" directory="sample_languages"/> </layout> </type> ...with the schema: <?xml version="1.0" encoding="UTF-8"?> <xsd:schema targetNamespace="http://policy.policymatter.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="qualified"> <xsd:element name="Name" type="xsd:string"/> <xsd:element name="Version" type="xsd:string"/> <xsd:element name="Content" type="xsd:string"/> </xsd:schema> Any idea what could be going on here? Craig Pugsley Technical Consultant - PolicyMatter Ltd On 23 May 2007, at 15:26, Anahide Tchertchian wrote: Hi, |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Login page, or user authentication, changed?: 00300, Vincent Dutat |
|---|---|
| Next by Date: | Re: Importing our own schema into Nuxeo using sample project - 'not a registered core type': 00300, Anahide Tchertchian |
| Previous by Thread: | Re: Importing our own schema into Nuxeo using sample project - 'not a registered core type'i: 00300, Anahide Tchertchian |
| Next by Thread: | Re: Importing our own schema into Nuxeo using sample project - 'not a registered core type': 00300, Anahide Tchertchian |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |