无法访问新的OFBiz 16.11插件
问题描述:
我想学习OFBiz 16.11,但是当我添加一个新插件并绑定使用它的URL访问它时,我正面临一个错误。无法访问新的OFBiz 16.11插件
: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 新插件URL目前正在测试的OFBiz:https://localhost:8443/ofbizDemo
有没有在任何梯级缺失创建导致此错误消息的新插件?
注意上面的命令可以在OFBiz的教程文件中找到: Tutorial Document
我检查了OfbizDemoUiLabels.xml文件,并在它的位置是否正确。
答
我找到了解决方案。只需删除OfbizDemoUiLabels.xml文件中的所有非英语条目即可。它现在按预期工作!
答
我刚刚面临同样的问题。我通过向我的系统默认语言(这是德语)向OfbizDemoUiLabels.xml添加条目,例如 来解决这个问题。 <value xml:lang="de">OfbizDemo Applikation</value>