Hi,

I have a datatypes.xml file with a modified "lastmodified" under the name
"dt_dummy" datatype in it. The name is the only thing changed.
I include dt_dummy as a datatype in my builder and it will not recognise it
as a datatype, showing this error in tomcat:
ERROR   mmbase.util.xml.BuilderReader - Could not find base datatype for
'dt_dummy' falling back to string (class java.lang.String) commit: EMPTY
enumeration:  pattern:(?s)\A.*\z. in builder 'custombuilder'.

I don't understand why it won't read datatypes.xml, please help.

With regards,

Patrick

.-== web-inf/config/ datatypes.xml ==-.

  <datatype id="string">
    <description xml:lang="en">
      String fields contain text.
    </description>
    <class name="org.mmbase.datatypes.StringDataType" />

    <specialization id="*dt_dummy*">
      <description xml:lang="en">
        A ready-only field, which contains the user id of the last user that
changed the node to which the field belongs.
      </description>
      <unique value="false" />
      <pattern enforce="never" value="\A[^\n\r]*\z" />
      <setprocessor>
        <class name="org.mmbase.datatypes.processors.Readonly" />
      </setprocessor>
      <commitprocessor>
        <class name="org.mmbase.datatypes.processors.LastModifier" />
      </commitprocessor>
    </specialization>
  </datatype>

~-=========================-~


.-== web-inf/config/applications/sitename/builders/ customBuilder.xml ==-.

[...]
        <field>
            <descriptions>
                <description xml:lang="nl"></description>
            </descriptions>
            <gui>
            </gui>
            <datatype xmlns="http://www.mmbase.org/xmlns/datatypes"; base="*
dt_dummy*">
                <required value="false" />
            </datatype>
            <editor>
                <positions>
                    <list>1</list>
                    <search>1</search>
                </positions>
            </editor>
            <db>
                <name>*b_dummy*</name>
                <type key="false" notnull="false" size="20"
state="system">string</type>
            </db>
        </field>
[...]

~-=========================-~
_______________________________________________
Developers mailing list
Developers@lists.mmbase.org
http://lists.mmbase.org/mailman/listinfo/developers

Reply via email to