我正在尝试学习 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。 新插件网址:https://localhost:8443/ofbizDemo
在创建新插件的过程中是否缺少任何导致此错误消息的步骤?
注意上面的命令可以在OFBiz教程文档中找到: Tutorial Document
我检查了 OfbizDemoUiLabels.xml 文件,它存在于正确的位置。
最佳答案
我找到了解决方案。只需删除 OfbizDemoUiLabels.xml
文件中的所有非英语条目。它现在按预期工作!
关于java - 无法访问新的 OFBiz 16.11 插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45351899/