-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I just created a new Spring Boot app with version 9 and I'm using richlets. But there's an undocumented required tag <config-name>. It's not even in the xsd.
In /src/main/resources/application.properties I only have: zk.richlet-filter-mapping=/app/*
In src/main/resources/metainfo/zk/zk.xml I have:
<zk>
<richlet>
<richlet-name>webcam</richlet-name>
<richlet-class>com.patmangames.WebCam</richlet-class>
</richlet>
<richlet-mapping>
<richlet-name>webcam</richlet-name>
<url-pattern>/app/webcam/*</url-pattern>
</richlet-mapping>
</zk>
Start the app and see this error in the log:
2020-06-22 13:16:12.204 ERROR 14176 --- [ restartedMain] org.zkoss.zk.ui.http.WebManager : Unable to load metainfo/zk/zk.xml
org.zkoss.util.IllegalSyntaxException: <config-name> is required ([null:file:/C:/mtg/fe_zk/detector/target/classes/metainfo/zk/zk.xml:1:5]).
at org.zkoss.idom.util.IDOMs.getRequiredElementValue(IDOMs.java:80) ~[zcommon-9.0.0.jar:9.0.0]
at org.zkoss.util.resource.ClassLocator$XMLResource.<init>(ClassLocator.java:205) ~[zcommon-9.0.0.jar:9.0.0]
at org.zkoss.util.resource.ClassLocator$XMLResource.<init>(ClassLocator.java:184) ~[zcommon-9.0.0.jar:9.0.0]
at org.zkoss.util.resource.ClassLocator.getDependentXMLResources(ClassLocator.java:83) ~[zcommon-9.0.0.jar:9.0.0]
at org.zkoss.zk.ui.http.WebManager.<init>(WebManager.java:147) ~[zk-9.0.0.jar:9.0.0]
To fix add this in the zk.xml: <config-name></config-name>
Thanks
yes that's correct: the same <config-name> element is used in the demo configuration
do you have any related question/problem?
Asked: 2020-06-23 01:25:19 +0800
Seen: 12 times
Last updated: Jun 23 '20