Hybris 5.6.02的安装脚本存在的困难 [英] Difficulties with installation script for hybris 5.6.02

查看:76
本文介绍了Hybris 5.6.02的安装脚本存在的困难的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装脚本报告构建失败...

The installation script reports a Build failure...

mlittle-mbook1:~ mlittle$ pwd

/Users/mlittle

mlittle-mbook1:~ mlittle$ cd hybris/bin/platform

mlittle-mbook1:platform mlittle$ ls -a

. .project build.number global.properties project.properties setantenv.sh tomcat

.. .settings build.xml hybrisserver.bat resources tcServer

.classpath adminserver.bat env.properties hybrisserver.sh roles.bat tenant_foo.properties

.externalToolBuilders adminserver.sh ext lib roles.sh tenant_junit.properties

.fbprefs apache-ant-1.9.1 extensions.xml license.bat ruleset.xml tenant_t1.properties

.pmd bootstrap extgen license.sh setantenv.bat tenant_t2.properties

mlittle-mbook1:platform mlittle$ . ./setantenv.sh

mlittle-mbook1:platform mlittle$ ant clean all

Buildfile: /Users/mlittle/hybris/bin/platform/build.xml

  [echo] /Users/mlittle/hybris/bin/platform/tomcat/bin

  [echo] /Users/mlittle/hybris/bin/platform/ext/core/web/webroot/WEB-INF/external-dependencies.xml was not found!

建立失败

它正在寻找路径以及该路径下的文件. 用户/mlittle/hybris/bin/platform/ext/core/web/webroot/WEB-INF/external-dependencies.xml

It is looking for the path, and the file at that path.. Users/mlittle/hybris/bin/platform/ext/core/web/webroot/WEB-INF/external-dependencies.xml

在路径中寻找时,我找不到Users/mlittle/hybris/bin/platform/ext/core/web/??

When one looks in the path, I could not find Users/mlittle/hybris/bin/platform/ext/core/web/??

有什么建议吗?

最好的问候.

==== 附加信息... [2015-10-09-0952 EST]

==== Additional information... [2015-10-09-0952 EST]

步骤:
程序:
MJL评论… 1:转到下载"页面,然后下载要安装的软件包. :完成

Step:
Procedure:
MJL comment… 1:Go to the Download page and download the packages you want to install. :Done

2.::创建将解压缩ZIP归档文件的目录.该目录必须满足以下条件: 它必须靠近系统根目录(例如C:\ hybris.您可以将文件直接下载到根目录,因为ZIP文件已经包含目录hybris). Microsoft Windows要求目录路径必须少于255个字符.目录路径中超出此限制的任何部分都将被截断. hybris Commerce Suite模块安装会创建几个子目录,因此使用短目录路径. 不要使用包含空格的目录路径(例如C:\ hybris Platform).如果目录路径包含空格,则构建hybris Commerce Suite将失败

2.:Create the directory where you will extract the ZIP archives. This directory must meet the following conditions: It must be close to the system root directory (for example C:\hybris. You may download the files directly to the root directory, because the ZIP files already contain directory hybris). Microsoft Windows requires the directory paths to be shorter than 255 characters. Any part of a directory path exceeding this limitation is truncated. The hybris Commerce Suite modules installation creates several sub-directories, therefore use short directory paths. Do not use directory paths containing spaces (such as C:\hybris Platform). Building the hybris Commerce Suite fails if the directory path contains spaces

:我已经创建了一个目录:

:I have created a directory:

/00hybris/

3 .:将ZIP存档提取到创建的目录中.安装完成后,所选目录应包含类似于以下示例的结构:并解压缩下载文件...

3.:Extract the ZIP archives into the created directory. After the installation has been completed, the chosen directory should contain the structure similar to the example below:And unzipped the downloand file…

hybris-commerce-suite-5.6.0.2.zip插入该路径以获取...

hybris-commerce-suite-5.6.0.2.zip into that path to get...

自述文件 构建工具 杂种 hybris-Mobile-Apps-SDK 杂交体 杂种 杂种 安装程序 许可证

README build-tools hybris hybris-Mobile-Apps-SDK hybris-ems hybris-oms hybris-sbg installer licenses

在00hybris/hybris路径中

And in the 00hybris/hybris path

bin

但是塞巴斯蒂安,在解压缩下载文件后,我找不到00hybris/hybris/config路径……

But Sebastian, I cannot find the 00hybris/hybris/config path after unzipping the download file…

4 .:设置Apache Ant: 要设置Apache Ant,请执行以下步骤: 1.在Microsoft Windows(Unix系列系统中的外壳)中打开命令提示符. 2.导航到$ {HYBRIS_BIN_DIR}/platform目录,例如:C:\ hybris \ bin \ platform. 3.在Microsoft Windows系统上,通过输入setantenv.bat运行setantenv.bat文件.不要关闭命令窗口. 4.在基于Unix的系统(如Mac OS X或Linux)上,输入来运行setantenv.sh. ./setantenv.sh.不要关闭命令窗口. 5. C:\ hybris \ bin \ platform> setantenv.bat 6.将蚁巢设置为:C:\ hybris-5.0 \ hybris \ bin \ platform \ apache-ant-1.8.2 7. Apache Ant™1.8.2版本(于2013年3月26日编译)

4.:Set Up Apache Ant: To set up Apache Ant, perform the following steps: 1. Open a command prompt in Microsoft Windows (shell in Unix family systems). 2. Navigate to the ${HYBRIS_BIN_DIR}/platform directory, for example:C:\hybris\bin\platform. 3. On Microsoft Windows systems, run the setantenv.bat file by entering setantenv.bat. Do not close the command window. 4. On Unix-based systems (like Mac OS X or Linux), run setantenv.sh by entering . ./setantenv.sh. Do not close the command window. 5. C:\hybris\bin\platform>setantenv.bat 6. Setting ant home to: C:\hybris-5.0\hybris\bin\platform\apache-ant-1.8.2 7. Apache Ant(TM) version 1.8.2 compiled on March 26 2013

:有了这个. 一种.创建了一个新的shell会话 b.导航到00hybris/hybris/bin/platform ...

:With this.. a. created a new shell session b. Navigated to 00hybris/hybris/bin/platform…

mlittle-mbook1:hybris mlittle $ cd bin/平台 mlittle-mbook1:平台mlittle $ pwd. -bash:pwd .:找不到命令 mlittle-mbook1:平台mlittle $ pwd /用户/小动作/00hybris/hybris/bin/平台 C.来自/Users/mlittle/00hybris/hybris/bin/platform ,我运行了mlittle-mbook1:platform mlittle $. ./setantenv.sh 结果...

mlittle-mbook1:hybris mlittle$ cd bin/platform mlittle-mbook1:platform mlittle$ pwd. -bash: pwd.: command not found mlittle-mbook1:platform mlittle$ pwd /Users/mlittle/00hybris/hybris/bin/platform c. From /Users/mlittle/00hybris/hybris/bin/platform , I ran, mlittle-mbook1:platform mlittle$ . ./setantenv.sh with the result…

mlittle-mbook1:platform mlittle $. ./setantenv.sh mlittle-mbook1:平台mlittle $

mlittle-mbook1:platform mlittle$ . ./setantenv.sh mlittle-mbook1:platform mlittle$

它似乎在运行,但没有给出任何回应:为什么?

It appeared to run, but it gave back no response: why?

5:执行hybris Commerce Suite的构建过程

5:Perform Build Procedure for hybris Commerce Suite

转到Windows命令提示符(在Unix系列系统中为Shell),导航到$ {HYBRIS_BIN_DIR}/platform目录,然后键入ant clean all .:请参阅下面的响应…

Go to the Windows command prompt (shell in Unix family systems), navigate to the ${HYBRIS_BIN_DIR}/platform directory and type ant clean all.:See response below…

mlittle-mbook1:平台mlittle $蚂蚁清理所有 构建文件:/Users/mlittle/00hybris/hybris/bin/platform/build.xml [回声]/Users/mlittle/00hybris/hybris/bin/platform/tomcat/bin [echo]找不到/Users/mlittle/00hybris/hybris/bin/platform/ext/core/web/webroot/WEB-INF/external-dependencies.xml! [mkdir]创建的目录:/Users/mlittle/00hybris/hybris/log [mkdir]创建的目录:/Users/mlittle/00hybris/hybris/data [mkdir]创建的目录:/Users/mlittle/00hybris/hybris/temp/hybris [mkdir]创建的目录:/Users/mlittle/00hybris/hybris/roles [输入] [输入] ****没有配置文件夹**** [输入]
[输入]在/Users/mlittle/00hybris/hybris/config中找不到配置文件夹. [输入]一个新"文件夹,其中包含基本配置文件和hybris 为了方便您,将创建[input]演示许可证. [输入]请调整并查看配置文件(和许可证),并 [输入]再次调用蚂蚁".此目录将永远不会被覆盖或 [输入]再次触摸.始终使用此配置文件夹进行配置 平台的[输入],请不要在平台文件夹中进行任何更改. [输入] [输入]请选择配置模板. [输入]按[Enter]使用默认值([开发],生产)

mlittle-mbook1:platform mlittle$ ant clean all Buildfile: /Users/mlittle/00hybris/hybris/bin/platform/build.xml [echo] /Users/mlittle/00hybris/hybris/bin/platform/tomcat/bin [echo] /Users/mlittle/00hybris/hybris/bin/platform/ext/core/web/webroot/WEB-INF/external-dependencies.xml was not found! [mkdir] Created dir: /Users/mlittle/00hybris/hybris/log [mkdir] Created dir: /Users/mlittle/00hybris/hybris/data [mkdir] Created dir: /Users/mlittle/00hybris/hybris/temp/hybris [mkdir] Created dir: /Users/mlittle/00hybris/hybris/roles [input] [input] **** NO CONFIG FOLDER FOUND **** [input]
[input] No config folder was found at /Users/mlittle/00hybris/hybris/config. [input] A "fresh" folder containing basic configuration files and the hybris [input] demo licence will be created for your convenience. [input] Please adjust and review the configuration files (and license) and [input] call 'ant' again. This directory will never be overridden or [input] touched again. Always use this configuration folder for configuration [input] of platform, do not change anything within the platform folder. [input] [input] Please choose the configuration template. [input] Press [Enter] to use the default value ([develop], production)

 [copy] Copying 27 files to /Users/mlittle/00hybris/hybris/config
 [copy] Copying 1 file to /Users/mlittle/00hybris/hybris/config

建立失败 /Users/mlittle/00hybris/hybris/bin/platform/build.xml:20:执行此行时发生以下错误: /Users/mlittle/00hybris/hybris/bin/platform/resources/ant/antmacros.xml:123:java.lang.UnsupportedClassVersionError:de/hybris/ant/taskdefs/DbDriverValidator:不受支持的major.minor版本52.0 在java.lang.ClassLoader.defineClass1(本机方法) 在java.lang.ClassLoader.defineClass(ClassLoader.java:791) 在org.apache.tools.ant.AntClassLoader.defineClassFromData(AntClassLoader.java:1128) 在org.apache.tools.ant.AntClassLoader.getClassFromStream(AntClassLoader.java:1299) 在org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1354) 在org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1315) 在org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1068) 在java.lang.ClassLoader.loadClass(ClassLoader.java:356) 在java.lang.Class.forName0(本地方法) 在java.lang.Class.forName(Class.java:266) 在org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:579) 在org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:237) 在org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) 在sun.reflect.GeneratedMethodAccessor4.invoke(未知来源) 在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 在java.lang.reflect.Method.invoke(Method.java:601) 在org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) 在org.apache.tools.ant.Task.perform(Task.java:348) 在org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) 在net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217) 在sun.reflect.GeneratedMethodAccessor19.invoke(未知来源) 在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 在java.lang.reflect.Method.invoke(Method.java:601) 在org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) 在org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154) 在org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) 在sun.reflect.GeneratedMethodAccessor4.invoke(未知来源) 在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 在java.lang.reflect.Method.invoke(Method.java:601) 在org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) 在org.apache.tools.ant.Task.perform(Task.java:348) 在org.apache.tools.ant.Target.execute(Target.java:435) 在org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:168) 在org.apache.tools.ant.taskdefs.ImportTask.importResource(ImportTask.java:230) 在org.apache.tools.ant.taskdefs.ImportTask.execute(ImportTask.java:162) 在org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) 在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处 在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 在java.lang.reflect.Method.invoke(Method.java:601) 在org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) 在org.apache.tools.ant.Task.perform(Task.java:348) 在org.apache.tools.ant.Target.execute(Target.java:435) 在org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:179) 在org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:93) 在org.apache.tools.ant.Main.runBuild(Main.java:826) 在org.apache.tools.ant.Main.startAnt(Main.java:235) 在org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) 在org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

BUILD FAILED /Users/mlittle/00hybris/hybris/bin/platform/build.xml:20: The following error occurred while executing this line: /Users/mlittle/00hybris/hybris/bin/platform/resources/ant/antmacros.xml:123: java.lang.UnsupportedClassVersionError: de/hybris/ant/taskdefs/DbDriverValidator : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:791) at org.apache.tools.ant.AntClassLoader.defineClassFromData(AntClassLoader.java:1128) at org.apache.tools.ant.AntClassLoader.getClassFromStream(AntClassLoader.java:1299) at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1354) at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1315) at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1068) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:266) at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:579) at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:237) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217) at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:435) at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:168) at org.apache.tools.ant.taskdefs.ImportTask.importResource(ImportTask.java:230) at org.apache.tools.ant.taskdefs.ImportTask.execute(ImportTask.java:162) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:435) at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:179) at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:93) at org.apache.tools.ant.Main.runBuild(Main.java:826) at org.apache.tools.ant.Main.startAnt(Main.java:235) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

总时间:21秒 mlittle-mbook1:平台mlittle $

Total time: 21 seconds mlittle-mbook1:platform mlittle$

5:续 正在检查已完成的操作… 一种.它已经在00hybris/hybris下创建了一个目录结构:

5: Continued Checking what this has done… a. it has created a directory structure under 00hybris/hybris:

bin 配置 数据 日志 path.txt path2.txt 角色 温度

bin config data log path.txt path2.txt roles temp

然后打开00Hybris/hybris/config/localextensions.xml文件.

And opening the 00Hybris/hybris/config/localextensions.xml file..

    <path dir="${HYBRIS_BIN_DIR}" />



    <!-- ext-platform-optional -->


    <!-- ext-incubator -->


    <!-- ext-commerce -->


    <!-- ext-backoffice -->


    <!-- ext-accelerator -->


    <!-- ext-cockpit -->


    <!-- ext-channel -->


    <!-- ext-addon -->


    <!-- ext-supportability -->


    <!-- ext-content -->


    <!-- ext-integration -->


    <!-- ext-print -->


    <!-- ext-template -->
    <extension name="yempty" />


    <!-- ext-atddtests -->


    <!-- ext-data -->


    <!-- ext-eventtracking -->


    <!-- ext-integration/sap/adtreco -->


    <!-- ext-integration/sap/asynchronousOM -->


    <!-- ext-integration/sap/availability -->


    <!-- ext-integration/sap/pointofsale -->


    <!-- ext-integration/sap/creditCheck -->


    <!-- ext-integration/sap/masterdata -->


    <!-- ext-integration/sap/core -->


    <!-- ext-integration/sap/testsupport -->


    <!-- ext-integration/sap/synchronousPricing -->


    <!-- ext-integration/sap/sapprodreco -->


    <!-- ext-integration/sap/productconfig -->


    <!-- ext-integration/sap/synchronousOM -->


</extensions>

似乎没有用$ {HYBRIS_BIN_DIR}的值填充变量... 00hybris/hybris/bin ??

It does not seem to have populated the variable with the value for ${HYBRIS_BIN_DIR}... 00hybris/hybris/bin??

==== 2015-10-10-1726EST

==== 2015-10-10-1726EST

好...已调查.​​..

OK... investigated...

问题是因为编译的hybris版本与我的计算机上的内容不兼容...

The problem is because there is an incompatibility between the version hybris was compiled and what is on my machine...

推荐答案

我认为问题的根本原因可能是错误的Java版本:

I think the root cause of the problem might be the wrong java version:

java.lang.UnsupportedClassVersionError: de/hybris/ant/taskdefs/DbDriverValidator : Unsupported major.minor version 52.0

表示Java版本冲突.

indicates a java version conflict.

Hybris 5.6应该与Java兼容,您可以在 https://wiki.hybris上进行检查.com/display/release5/System + Requirements +-+ Release + 5.6

Hybris 5.6 should work with java, you can check at https://wiki.hybris.com/display/release5/System+Requirements+-+Release+5.6

您可能已经安装了Java 6? 您可以通过

Do you maybe have java 6 installed? You can see via

java -version

为确保您应该按照 https://wiki使用Java 8. hybris.com/display/general/第三方-兼容性+-+发行版+5.6 (顺便说一句,您还可以注册 https://experts.hybris.com/论坛以获得更多深入的hybris答案)

To be sure you should use java 8 as per https://wiki.hybris.com/display/general/Third-Party+Compatibility+-+Release+5.6 (btw, you can also signup for the https://experts.hybris.com/ forum to get more in-depth hybris answers)

这篇关于Hybris 5.6.02的安装脚本存在的困难的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆