[opencms-dev] Invalid XML Schema

Christoph Kukulies kuku at physik.rwth-aachen.de
Thu Jan 28 18:00:35 CET 2016


For some reason I had to carry around some templatetwo modules. I added 
them into my existing 9.5.3 System.
But in opencms.log I find the following entry:

28 Jan 2016 17:43:39,135 ERROR [ypes.CmsResourceTypeXmlContent: 281] 
Invalid XML schema 
"/system/modules/org.opencms.frontend.templatetwo/schemas/config.xsd" 
configured for type name "ttconfig".
org.opencms.xml.CmsXmlException: Invalid custom widget class 
"org.opencms.frontend.templatetwo.CmsPresetSelectWidget" for element 
"Preset" in content definition 
"opencms://system/modules/org.opencms.frontend.templatetwo/schemas/config.xsd".
     at 
org.opencms.xml.content.CmsDefaultXmlContentHandler.addWidget(CmsDefaultXmlContentHandler.java:1810)
     at 
org.opencms.xml.content.CmsDefaultXmlContentHandler.initLayouts(CmsDefaultXmlContentHandler.java:2142)
     at 
org.opencms.xml.content.CmsDefaultXmlContentHandler.initialize(CmsDefaultXmlContentHandler.java:1093)
     at 
org.opencms.xml.CmsXmlContentDefinition.unmarshalInternal(CmsXmlContentDefinition.java:1000)
     at 
org.opencms.xml.CmsXmlContentDefinition.unmarshal(CmsXmlContentDefinition.java:386)
     at 
org.opencms.file.types.CmsResourceTypeXmlContent.initialize(CmsResourceTypeXmlContent.java:271)
     at 
org.opencms.loader.CmsResourceManager.initialize(CmsResourceManager.java:1167)
     at 
org.opencms.module.CmsModuleImportExportHandler.importModule(CmsModuleImportExportHandler.java:568)
     at 
org.opencms.module.CmsModuleImportExportHandler.importData(CmsModuleImportExportHandler.java:370)
     at 
org.opencms.importexport.CmsImportExportManager.importData(CmsImportExportManager.java:730)
     at 
org.opencms.workplace.threads.CmsDatabaseImportThread.run(CmsDatabaseImportThread.java:90)
Caused by: java.lang.ClassNotFoundException: 
org.opencms.frontend.templatetwo.CmsPresetSelectWidget
     at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
     at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
     at java.lang.Class.forName0(Native Method)
     at java.lang.Class.forName(Class.java:190)
     at 
org.opencms.xml.content.CmsDefaultXmlContentHandler.addWidget(CmsDefaultXmlContentHandler.java:1802)
     ... 10 more
28 Jan 2016 17:43:39,150 ERROR [ypes.CmsResourceTypeXmlContent: 281] 
Invalid XML schema 
"/system/modules/org.opencms.frontend.templatetwo/schemas/listbox.xsd" 
configured for type name "ttlistbox".
org.opencms.xml.CmsXmlException: Invalid custom widget class 
"org.opencms.frontend.templatetwo.CmsCollectorSelectWidget" for element 
"Collector" in content definition 
"opencms://system/modules/org.opencms.frontend.templatetwo/schemas/listbox.xsd".
     at 
org.opencms.xml.content.CmsDefaultXmlContentHandler.addWidget(CmsDefaultXmlContentHandler.java:1810)
     at 
org.opencms.xml.content.CmsDefaultXmlContentHandler.initLayouts(CmsDefaultXmlContentHandler.java:2142)
     at 
org.opencms.xml.content.CmsDefaultXmlContentHandler.initialize(CmsDefaultXmlContentHandler.java:1093)
     at 
org.opencms.xml.CmsXmlContentDefinition.unmarshalInternal(CmsXmlContentDefinition.java:1000)
     at 
org.opencms.xml.CmsXmlContentDefinition.unmarshal(CmsXmlContentDefinition.java:386)
     at 
org.opencms.file.types.CmsResourceTypeXmlContent.initialize(CmsResourceTypeXmlContent.java:271)
     at 
org.opencms.loader.CmsResourceManager.initialize(CmsResourceManager.java:1167)
     at 
org.opencms.module.CmsModuleImportExportHandler.importModule(CmsModuleImportExportHandler.java:568)
     at 
org.opencms.module.CmsModuleImportExportHandler.importData(CmsModuleImportExportHandler.java:370)
     at 
org.opencms.importexport.CmsImportExportManager.importData(CmsImportExportManager.java:730)
     at 
org.opencms.workplace.threads.CmsDatabaseImportThread.run(CmsDatabaseImportThread.java:90)
Caused by: java.lang.ClassNotFoundException: 
org.opencms.frontend.templatetwo.CmsCollectorSelectWidget
     at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
     at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
     at java.lang.Class.forName0(Native Method)
     at java.lang.Class.forName(Class.java:190)
     at 
org.opencms.xml.content.CmsDefaultXmlContentHandler.addWidget(CmsDefaultXmlContentHandler.java:1802)
     ... 10 more
28 Jan 2016 17:43:39,214  INFO [ncms.loader.CmsResourceManager:1171] . 
Loader configuration : finished

Any ideas how I can repair this?

-- 
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de



More information about the opencms-dev mailing list