无法访问新的 OFBiz 16.11 插件

MWK*_*WKZ 2 java apache ofbiz

我正在尝试学习 OFBiz 16.11,但是在添加新插件并使用其 url 绑定访问它时遇到错误。

:ERROR MESSAGE:
org.apache.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen [component://common/widget/CommonScreens.xml#login]: org.apache.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen [component://ofbizDemo/widget/CommonScreens.xml#main-decorator]: java.lang.IllegalArgumentException: Could not find resource bundle [OfbizDemoUiLabels] in the locale [en_US] (Could not find resource bundle [OfbizDemoUiLabels] in the locale [en_US]) (Error rendering screen [component://ofbizDemo/widget/CommonScreens.xml#main-decorator]: java.lang.IllegalArgumentException: Could not find resource bundle [OfbizDemoUiLabels] in the locale [en_US] (Could not find resource bundle [OfbizDemoUiLabels] in the locale [en_US]))
Run Code Online (Sandbox Code Playgroud)

我运行以下命令来创建一个新插件:

--Initialize OFBiz and load demo data
gradlew cleanAll loadDefault ofbiz

--Add new plugin
gradlew createPlugin -PpluginId=ofbizDemo 

--Apply changes and run OFBiz
gradlew loadDefault ofbiz
Run Code Online (Sandbox Code Playgroud)

我目前正在使用 Windows 10 测试 OFBiz。新插件 URL:https://localhost:8443/ofbizDemo

在创建新插件的过程中是否缺少导致此错误消息的步骤?

注意上面的命令可以在OFBiz教程文档中找到: 教程文档

我检查了 OfbizDemoUiLabels.xml 文件,它存在于正确的位置。

MWK*_*WKZ 5

我找到了解决方案。只需删除文件中的所有非英语条目OfbizDemoUiLabels.xml。它现在按预期工作!