Java 无法访问新的OFBiz 16.11插件
我试图学习Biz 16.11,但在添加新插件并使用其url绑定访问它时,我遇到了一个错误Java 无法访问新的OFBiz 16.11插件,java,apache,ofbiz,Java,Apache,Ofbiz,我试图学习Biz 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: E
: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
我目前正在使用Windows10测试BIZ。
新插件URL:
在创建新插件的过程中是否缺少导致此错误消息的步骤
请注意,上述命令可在OFBiz教程文档中找到:
我检查了OfbizDemoUiLabels.xml文件,它位于正确的位置。我找到了解决方案。只需删除biddemouilabels.xml文件
中的所有非英语条目即可。它现在正在按预期工作 我也遇到了同样的问题。我通过在OfbizDemoUiLabels.xml中添加系统默认语言(德语)的条目来解决这个问题,
e、 g.BizDemo应用程序的
之所以发生这种情况,是因为当前语言已设置为英语(美国)[en-US]。只需在“注销”和“视觉主题”左侧的右上角“语言”菜单中将语言更改为“英语-[en]”
或者,编辑配置文件:
apache-ofbiz-16.11.xx\specialpurpose\ofbizDemo\config\OfbizDemoUiLabels.xml
全部替换-
<value xml:lang="en">OfbizDemo Application</value>
BizDemo应用程序的
与
BizDemo应用程序的是的,它对我也适用。似乎是国际化的问题。
<value xml:lang="en-US">OfbizDemo Application</value>