Define Document Type in plain XML for Nuxeo
<p>I try to grasp the mechanics of Nuxeo and as such started with all tutorials and documents around. I put together a bundle that seemed quite right for me and tried now for several hours to make it work in any flavor - without success. </p>

<p>Using Nuxeo 8.3.</p>

<p>Anything i am missing?</p>

<p>The manifest at META_INF/MANIFEST.MF</p>

<pre><code>Manifest-Version: 1.0
Bundle-SymbolicName: de.foo.nuxeo.tutorial.tutorial-demo1;singlet
 on=true
Bundle-Version: 1.0.0
Bundle-Name: tutorial-demo1
Bundle-ClassPath: .
Bundle-ManifestVersion: 2
Bundle-Vendor: de.foo.nuxeo.tutorial
Nuxeo-Component: OSGI-INF/foo-demo-component-core-types.xml,OSGI-INF/foo-demo-component-ui-types.xml
</code></pre>

<p>A core document type at OSG-INF/foo-demo-component-core-types.xml</p>

<pre><code>&lt;?xml version="1.0"?&gt;
&lt;component name="de.foo.demo.component.core.types" version="1.0"&gt;

    &lt;extension target="org.nuxeo.ecm.core.schema.TypeService" point="schema"&gt;
        &lt;schema name="foo" src="schemas/foo-demo-foo.xsd"
            prefix="isfoo" /&gt;
    &lt;/extension&gt;

    &lt;extension target="org.nuxeo.ecm.core.schema.TypeService" point="doctype" &gt;
        &lt;doctype extends="File" name="FooFile"&gt;n
            &lt;schema name="foo" /&gt;
        &lt;/doctype&gt;
    &lt;/extension&gt;

&lt;/component&gt;
</code></pre>

<p>A ECM document type at OSGI-INF/foo-demo-component-ui-types.xml</p>

<pre><code>&lt;?xml version="1.0"?&gt;
&lt;component name="de.foo.demo.component.ui.types" version="1.0"&gt;

    &lt;require&gt;org.nuxeo.ecm.platform.types&lt;/require&gt;

    &lt;extension target="org.nuxeo.ecm.platform.types.TypeService"
        point="types"&gt;

        &lt;type id="FooFile"&gt;
            &lt;label&gt;Foo File&lt;/label&gt;
            &lt;icon&gt;/icons/file.gif&lt;/icon&gt;
            &lt;bigIcon&gt;/icons/file_100.png&lt;/bigIcon&gt;
            &lt;category&gt;SimpleDocument&lt;/category&gt;
            &lt;description&gt;A foo file&lt;/description&gt;
            &lt;default-view&gt;view_documents&lt;/default-view&gt;
            &lt;layouts mode="any"&gt;
                &lt;layout&gt;heading&lt;/layout&gt;
                &lt;layout&gt;file&lt;/layout&gt;
            &lt;/layouts&gt;
        &lt;/type&gt;

        &lt;type id="Folder"&gt;
            &lt;subtypes&gt; 
                &lt;type&gt;FooFile&lt;/type&gt;
            &lt;/subtypes&gt;
        &lt;/type&gt;


    &lt;/extension&gt;

&lt;/component&gt;
</code></pre>

<p>A schema at schemas/foo-demo-foo.xsd</p>

<pre><code>&lt;?xml version="1.0"?&gt;
&lt;xs:schema 
    targetNamespace="http://www.foo.de/nuxeo/schemas/foo/"
    xmlns="http://www.foo.de/nuxeo/schemas/foo/"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;

    &lt;xs:element name="gnu" type="xs:string" /&gt;
    &lt;xs:element name="gnat" type="xs:string" /&gt;
&lt;/xs:schema&gt;
</code></pre>

<p>Packed in a jar and deployed to nxserver/bundles. After a  restart i see the bundle loaded in the administrator view, no errors in the log file. When i create a new document, i do not see the new type... </p>

<p>What am i missing?</p>