[opencms-dev] Invalid OpenCMS Widget Class Error

Antonio Cordeddu antoniocordeddu at coranto.it
Wed Mar 29 15:30:20 CEST 2017


Hi Clement,

have you add the node "widget" in opencms-vfs.xml config file?

For example: <widget class="org.opencms.widgets.CmsTypeComboWidget" 
alias="TypeComboWidget" />

Regards
Antonio

_______________________________________________
Coranto informatica di Antonio Cordeddu
Via Torricelli, 9 09047 Selargius (CA) - Italy
antoniocordeddu at coranto.it
http://www.coranto.it
_______________________________________________




On 29/03/2017 11:21, Clement Wee wrote:
> Hello!
>
> I just created an OpenCMS native widget following the instructions in 
> the documentation. All the export points are set up properly etc, but 
> I am getting the following error when I try to load a component using 
> that widget in the Site Editor.
>
> 29 Mar 2017 17:14:47,863 ERROR [ncms.loader.CmsResourceManager: 618] 
> Error in getAllowedContextMap, 
> schema=/system/modules/elixir.opencms/schemas/SampleCustomChart.xsd, 
> type=SampleCustomChart, Invalid custom widget class 
> "com.elixirtech.opencms.ChartEditor" for element "Chart" in content 
> definition 
> "opencms://system/modules/elixir.opencms/schemas/SampleCustomChart.xsd".
>
> The class com.elixirtech.opencms.ChartEditor exists in a jar in the 
> lib folder of the module, which is already exported, so I have no idea 
> why it can't export. Is it because the package name of the module and 
> the package name of the Widget Class is different?
>
> Regards,
> Clement
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20170329/277e461d/attachment.htm>


More information about the opencms-dev mailing list