java - 无法访问新的 OFBiz 16.11 插件

标签 java apache ofbiz

我正在尝试学习 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/

相关文章:

java - 如何通过Android套接字获取输入的字符到java服务器

java - 将 HTML 和 CSS 样式应用于 Java Swing 组件

php - RewriteRule 斜杠单一重定向

java - 如何在 Apache OFBiz 中调用 java 类方法返回 excel 文件?

java - Oracle 是否支持通过 JDBC 的服务器端可滚动游标?

java - 运行 OfBiz 时获取 ScreenRenderException

java - 如何将参数传递给 Apache Apex 中的 application.java 类?

java - Spring Boot jar 带来 : java. lang.NoSuchMethodError : javax. persistence.Table.indexes( [Ljavax/persistence/Index

linux - 如何安全地将 apache 版本降级到不适合当前 gnome 状态的版本?

php - Laravel 5 需要使用 Apache 虚拟主机的 index.php