Did you declare your contribution in the jar MANIFEST ?

For example, in your MANIFEST, you should have something like :
Nuxeo-Component: OSGI-INF/restlets-contrib.xml



[EMAIL PROTECTED] a écrit :
> Hi,
>
> I try to create a new restlet in the last release of Nuxeo.
> For that, I use a plugin.
> First, I wrote my class (TestClass, name testClass) with the UploadRestlet 
> model.
> Second, I wrote the restlets-contrib.xml file (in the ressources/OSGI-INF 
> directory):
>
> <?xml version="1.0"?> 
> <component name="org.nuxeo.ecm.platform.ui.web.restAPI.contrib"> 
>
>         <extension 
>         
> target="org.nuxeo.ecm.platform.ui.web.restAPI.service.PluggableRestletService"
>  
>                 point="restlets"> 
>                 <restletPlugin 
>                               name="testClass" 
>                         class="com.package.TestClass" 
>                         enabled="true" 
>                         useSeam="true"
>                         useConversation="true"> 
>                         <urlPatterns> 
>                                 <urlPattern> 
>                                         /testClass
>                                 </urlPattern> 
>                         </urlPatterns> 
>                 </restletPlugin> 
>         </extension> 
> </component> 
>
> I've deployed my plugin and tried the following URL:
> http://localhost:8080/nuxeo/restAPI/testClass
>
> but it does not work.
> If someone could help me...
>
> I hope that someone will read this message because this forum seems to be 
> inactive....
>
> Thanks in advance,
> Regards,
> Xavier.
> _______________________________________________
> ECM mailing list
> [email protected]
> http://lists.nuxeo.com/mailman/listinfo/ecm
>   

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to