我想學習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文件,並在它的位置是否正確。