2017-07-27 94 views
0

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

回答

0

我找到了解決方案。只需刪除OfbizDemoUiLabels.xml文件中的所有非英語條目即可。它現在按預期工作!

0

我剛剛面臨同樣的問題。我通過向我的系統默認語言(這是德語)向OfbizDemoUiLabels.xml添加條目,例如 來解決這個問題。 <value xml:lang="de">OfbizDemo Applikation</value>