无法访问新的OFBiz 16.11插件

问题描述 投票:1回答:2

我正在尝试学习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]))

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

--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

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

在创建新插件期间是否有任何缺少的步骤导致此错误消息?

请注意,上述命令可以在OFBiz教程文档中找到:Tutorial Document

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

java apache ofbiz
2个回答
3
投票

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


0
投票

我刚遇到同样的问题。我通过将我系统的默认语言(德语)的条目添加到OfbizDemoUiLabels.xml来解决它,例如<value xml:lang="de">OfbizDemo Applikation</value>

© www.soinside.com 2019 - 2024. All rights reserved.