简体   繁体   English

Apache Ofbiz安装麻烦

[英]Apache Ofbiz installation trouble

I have been trying to install Apache Ofbiz on my 32-bit processor computer, with Windows 7 as the operating system. 我一直试图在Windows 7作为操作系统的32位处理器计算机上安装Apache Ofbiz。 I have downloaded Java\\jdk1.8.0_25: and apache-ant-1.9.4: and :apache-ofbiz-13.07.01. 我已经下载了Java \\ jdk1.8.0_25:和apache-ant-1.9.4:和:apache-ofbiz-13.07.01。 I made two environmental variables, JAVA_HOME and ANT_HOME; 我做了两个环境变量,JAVA_HOME和ANT_HOME。 in addition, I included both Java and Ant Apache Bin addresses respectively into the environmental the PATH variable. 另外,我分别在环境PATH变量中包括了Java和Ant Apache Bin地址。 Then I ran the CMD and entered the Ofbiz directory' cd [apache ofbiz address], thenceforward, I resumed into entering the the 'ant run-install' command, followed by 'ant run-install-seed', I received a 'build successful' message for both of the commands I entered. 然后,我运行CMD并进入Ofbiz目录的cd [apache ofbiz地址],此后,我继续输入'ant run-install'命令,接着输入'ant run-install-seed',我收到了'build我输入的两个命令都显示“成功”消息。 After the foregone commands were executed I proceeded into clicking the startofbiz located inside the apache ofbiz folder. 执行已放弃的命令后,我继续单击位于apache ofbiz文件夹内的startofbiz。 A cmd screen opened listing all sorts of commands. 将打开一个cmd屏幕,其中列出了各种命令。 Once all these were carried out I typed the following address into my internet search bar: 完成所有这些操作后,我在互联网搜索栏中输入了以下地址:

https://localhost:8443/webtools  

Notwithstanding, I constantly received the following error message that says THE TEMPLATE LOCATION IS EMPTY even after a numberless amount of permutations, deleting java, re-installing Ant Apache, etc: 尽管如此,我仍然不断收到以下错误消息,即使经过无数次排列,删除Java,重新安装Ant Apache等之后, 模板位置仍为空。

:ERROR MESSAGE: org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://common/widget/CommonScreens.xml#GlobalDecorator]: java.lang.IllegalArgumentException: Template location is empty (Template location is empty) :错误消息:org.ofbiz.widget.screen.ScreenRenderException:错误呈现屏幕[component://common/widget/CommonScreens.xml#GlobalDecorator]:java.lang.IllegalArgumentException:模板位置为空(模板位置为空)

I have not been able to come to grasps with this issue. 我一直无法掌握这个问题。 I don't believe things should be this difficult to install. 我不认为安装起来应该很困难。 I stand ready for any guidance, thank you. 我随时准备提供任何指导,谢谢。

This issue is not related to your Application setup. 此问题与您的应用程序设置无关。 it seems your Application setup is fine. 看来您的应用程序设置很好。 This is related to Seed data. 这与种子数据有关。 The data which requires to initialize the default theme. 需要初始化默认主题的数据。 To load the theme data, execute the following ant command then strat the application. 要加载主题数据,请执行以下ant命令,然后对应用程序进行分层。 The error should be disappeared now. 该错误现在应该消失了。

   ant load-seed

As per my best knowledge " ant load-seed (Load ONLY the seed data (not seed-initial, demo, ext* or anything else); meant for use after an ualong with the code and needs to be in sync for operation)" 据我所知,“ ant加载了种子 (仅加载种子数据(不加载种子初始,演示,ext *或其他任何内容;旨在与代码一起使用,并且需要进行同步操作)”)

You need to fire ant load-demo start (if you're using OFbiz version 13.07.01).Please make your're at the root of the OFbiz project location. 您需要启动ant load-demo启动 (如果您使用的是OFbiz版本13.07.01)。请确保您位于OFbiz项目位置的根目录。 Fyi - At very first time it takes more than 20 mins to load all your demo data and seed data, so please be patient. Fyi-第一次加载所有演示数据和种子数据需要20多个分钟,因此请耐心等待。 Hope this will help you. 希望这会帮助你。

Note: Please rate this if find useful. 注意:如果有帮助,请对此进行评分。 Thanks 谢谢

Since OFBiz switched from ant to gradle recently, the correct command to load the seed data is as follows (run in root ofbiz folder eg /opt/ofbiz and don't forget the quotes): 由于OFBiz最近从ant切换到gradle,因此加载种子数据的正确命令如下(在/ biz / optbiz的根目录下运行,并且不要忘记引号):

./gradlew "ofbiz --load-data readers=seed"

To get the available options for the ofbiz build, run: 要获得ofbiz构建的可用选项,请运行:

./gradlew "ofbiz --help"

Other ant-to-gradle hints can be found here . 可以在这里找到其他从上到下的提示。

You will then need to create an initial user (admin/ofbiz does only exist in demo data). 然后,您需要创建一个初始用户(admin / ofbiz仅存在于演示数据中)。

./gradlew loadAdminUserLogin -PuserLoginId=MyUserName

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM