I feel so dumb... I put all the new config files in config, but nothing, when I choose a new document, I still get the same types (I restart the Jboss AS).
/usr/local/nuxeo-5.1.2.GA/server/default/deploy/nuxeo.ear/config# ls -lat totale 76 drwxr-sr-x 4 root staff 4096 2007-11-06 18:56 . drwxr-sr-x 13 root staff 4096 2007-11-06 18:48 .. drwxr-sr-x 2 root staff 4096 2007-11-06 17:56 schemas -rw-r--r-- 1 root staff 232 2007-11-06 17:56 sample-config.xml -rw-r--r-- 1 root staff 480 2007-11-06 17:56 core-types-contrib-config.xml ... Leandro Florent Guillaume ha scritto: > Leandro, have you tried moving the schemas/ directory inside > nuxeo.ear/config ? > Also, you must not use a OSGI-INF directory, put every config xml file > inside nuxeo.ear/config. > > Also > > Florent > > On 6 Nov 2007, at 18:16, Leandro wrote: > >> Packaing will be my target, but for the moment, only be able to produce >> a new file/metadata schema will be enough. Unfortunately, I was unable. >> >> I put the following >> >> /usr/local/nuxeo-5.1.2.GA/server/default/deploy/nuxeo.ear/config# cat >> sample-config.xml >> <?xml version="1.0"?> >> <component name="org.nuxeo.project.sample.coreTypes"> >> <extension target="org.nuxeo.ecm.core.schema.TypeService" >> point="schema"> >> <schema name="sample" src="schemas/sample.xsd"/> >> </extension> >> </component> >> >> and the following >> >> /usr/local/nuxeo-5.1.2.GA/server/default/deploy/nuxeo.ear# cat >> schemas/sample.xsd >> <?xml version="1.0"?> >> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" >> targetNamespace="http://project.nuxeo.org/sample/schemas/sample/"> >> <xs:element name="sample1" type="xs:string"/> >> <xs:element name="sample2" type="xs:string"/> >> </xs:schema> >> >> and the following >> >> /usr/local/nuxeo-5.1.2.GA/server/default/deploy/nuxeo.ear/OSGI-INF# cat >> core-types-contrib.xml >> <?xml version="1.0"?> >> <component name="org.nuxeo.project.sample.coreTypes"> >> <extension target="org.nuxeo.ecm.core.schema.TypeService" >> point="schema"> >> <schema name="sample" src="schemas/sample.xsd"/> >> </extension> >> <extension target="org.nuxeo.ecm.core.schema.TypeService" >> point="doctype"> >> <doctype name="sample" extends="Document"> >> <schema name="common"/> >> <schema name="dublincore"/> >> <schema name="sample"/> >> </doctype> >> </extension> >> </component> >> >> I stop and run agina bin/run.sh but no new schema on the apps. Maybe I >> forget something? >> >> Thank you >> >> Leandro >> >> Florent Guillaume ha scritto: >>> Yes, you can follow the archetype organization described in the >>> documentation on doc.nuxeo.org. >>> Or simply put the xml configuration files (with a -config.xml suffix) >>> in server/default/deploy/nuxeo.ear/config if you don't care about >>> packaging your changes. >>> >>> Florent >>> >>> On 2 Nov 2007, at 19:08, Leandro wrote: >>> >>>> I have already seen the document. Tell me if I am wrong, but the >>>> directory you point out to me are present in the source of Nuxeo, >>>> not in >>>> the runtime version installed with the installer. Are you saying me I >>>> can make a simple jar containing these directories and files and >>>> then I >>>> can put it in the plugins directory >>>> (./server/default/deploy/nuxeo.ear/plugins) to see my newly created >>>> documents types and schemas? >>>> >>>> Leandro >>>> >>>> >>>> >>>> >>>> Tiry ha scritto: >>>>> Here is a sample layout : >>>>> http://svn.nuxeo.org/trac/nuxeo/browser/sandbox/nuxeo-platform-mail-types/src/main/resources >>>>> >>>>> >>>>> >>>>> If you want your new document types to be visible via the web, you >>>>> also >>>>> need to define another descriptor in OSGI-INF : >>>>> http://svn.nuxeo.org/trac/nuxeo/browser/sandbox/nuxeo-platform-mail-web/src/main/resources/OSGI-INF/ecm-types-contrib.xml >>>>> >>>>> >>>>> >>>>> See http://doc.nuxeo.org/current/reference/html/documents.html >>>>> >>>>> Tiry >>>>> >>>>> Le vendredi 02 novembre 2007 à 18:50 +0100, Leandro a écrit : >>>>> >>>>>> Tiry ha scritto: >>>>>> >>>>>>> Le vendredi 02 novembre 2007 à 18:28 +0100, Leandro a écrit : >>>>>>> >>>>>>> >>>>>>>> Hello, >>>>>>>> Nuxeo documentation explain how to add a new schema, >>>>>>>> http://doc.nuxeo.org/current/reference/html/documents.html >>>>>>>> >>>>>>>> I hope to have misunderstood, but is it a customization I can >>>>>>>> do at >>>>>>>> runtime or have I to recompile all Nuxeo to add my own document >>>>>>>> type >>>>>>>> with my own metadata? >>>>>>>> >>>>>>>> >>>>>>> There is no recompile : you never have to recompile anything. >>>>>>> >>>>>>> >>>>>> This is a great thing. I am a system admin, not an experienced java >>>>>> developer. >>>>>> >>>>>> >>>>>>> You just have to contribute your schemas and documents types >>>>>>> definitions. >>>>>>> This contribution should be made in a simple JAR archive and >>>>>>> copied in >>>>>>> the plugins directory. >>>>>>> >>>>>>> >>>>>> Perfect. Is there a doc about how to create/format the contents >>>>>> of the >>>>>> jar archive? >>>>>> Are already available other schemas and documents type in >>>>>> addition to >>>>>> the ones shipped with the installer? >>>>>> The doc I point out seems to refer to the nuxeo source code. >>>>>> >>>>>> Leandro >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> >>>> >>>> --=============== >>>> Leandro Dardini >>>> Tex.NET Telecomunicazioni Srl >>>> Via Mozza sul Gorone, 1/G >>>> 59100 Prato (PO) Italy >>>> phone: 0574695152 >>>> fax: 0574695038 >>>> >>>> _______________________________________________ >>>> ECM mailing list >>>> [email protected] >>>> http://lists.nuxeo.com/mailman/listinfo/ecm >>>> >>> >>> --Florent Guillaume, Director of R&D, Nuxeo >>> Open Source Enterprise Content Management (ECM) >>> http://www.nuxeo.com http://www.nuxeo.org +33 1 40 33 79 87 >>> >>> >>> >> >> >> --=============== >> Leandro Dardini >> Tex.NET Telecomunicazioni Srl >> Via Mozza sul Gorone, 1/G >> 59100 Prato (PO) Italy >> phone: 0574695152 >> fax: 0574695038 >> >> > > --Florent Guillaume, Director of R&D, Nuxeo > Open Source Enterprise Content Management (ECM) > http://www.nuxeo.com http://www.nuxeo.org +33 1 40 33 79 87 > > > -- =============== Leandro Dardini Tex.NET Telecomunicazioni Srl Via Mozza sul Gorone, 1/G 59100 Prato (PO) Italy phone: 0574695152 fax: 0574695038 _______________________________________________ ECM mailing list [email protected] http://lists.nuxeo.com/mailman/listinfo/ecm
