Hybris安装错误

时间:2014-09-12 05:20:34

标签: hybris

我正在尝试在我的系统中安装hybris 4.7.9版并出现以下错误。我尝试删除配置文件夹并从头开始重建。仍然没用。

日志:

   [yjavac] Arrays cannot be resolved
   [yjavac] ----------
   [yjavac] 447. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 261)
   [yjavac]     removePermissionsForPrincipals(item, Arrays.asList(principal));
   [yjavac]                                          ^^^^^^
   [yjavac] Arrays cannot be resolved
   [yjavac] ----------
   [yjavac] 448. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 270)
   [yjavac] Could not find missing types in public abstract Set#RAW entrySet()
   [yjavac]     removePermissionsForNames(item, Arrays.asList(permissionName));
   [yjavac]                                     ^^^^^^
   [yjavac] Arrays cannot be resolved
   [yjavac] ----------
   [yjavac] 449. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 432)
   [yjavac]     addGlobalPermissions(Arrays.asList(permissionAssignment));
   [yjavac]                          ^^^^^^
   [yjavac] Arrays cannot be resolved
   [yjavac] ----------
   [yjavac] 450. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 448)
   [yjavac]     removeGlobalPermissions(Arrays.asList(permissionAssignment));
   [yjavac]                             ^^^^^^
   [yjavac] Arrays cannot be resolved
   [yjavac] ----------
   [yjavac] 451. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 465)
   [yjavac]     removeGlobalPermissionsForPrincipals(Arrays.asList(principal));
   [yjavac]                                          ^^^^^^
   [yjavac] Arrays cannot be resolved
   [yjavac] ----------
   [yjavac] 452. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 474)
   [yjavac]     removeGlobalPermissionsForNames(Arrays.asList(permissionName));
   [yjavac]                                     ^^^^^^
   [yjavac] Arrays cannot be resolved
   [yjavac] ----------
   [yjavac] 453. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 724)
   [yjavac]     for (final Map.Entry<PK, Set<PK>> entry : principalPKToPermissio
nsPKMap.entrySet())
   [yjavac]                ^^^^^^^^^
   [yjavac] Map.Entry cannot be resolved to a type
   [yjavac] ----------
   [yjavac] 454. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 724)
   [yjavac]     for (final Map.Entry<PK, Set<PK>> entry : principalPKToPermissio
nsPKMap.entrySet())
   [yjavac]
        ^^^^^^^^
   [yjavac] The method entrySet() from the type Map<PK,Set<PK>> refers to the mi
ssing type Map$Entry
   [yjavac] ----------
   [yjavac] 455. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 790)
   [yjavac]     for (final Map.Entry<Principal, List<Boolean>> entry : permissio
nMap.entrySet())
   [yjavac]                ^^^^^^^^^
   [yjavac] Map.Entry cannot be resolved to a type
   [yjavac] ----------
   [yjavac] 456. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 790)
   [yjavac]     for (final Map.Entry<Principal, List<Boolean>> entry : permissio
nMap.entrySet())
   [yjavac]
     ^^^^^^^^
   [yjavac] The method entrySet() from the type Map<Principal,List<Boolean>> ref
ers to the missing type Map$Entry
   [yjavac] ----------
   [yjavac] 457. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 858)
   [yjavac]     for (final Map.Entry<PrincipalModel, List<PermissionAssignment>>
 entry : groupByPrincipalMap.entrySet())
   [yjavac]                ^^^^^^^^^
   [yjavac] Map.Entry cannot be resolved to a type
   [yjavac] ----------
   [yjavac] 458. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 858)
   [yjavac]     for (final Map.Entry<PrincipalModel, List<PermissionAssignment>>
 entry : groupByPrincipalMap.entrySet())
   [yjavac]
                             ^^^^^^^^
   [yjavac] The method entrySet() from the type Map<PrincipalModel,List<Permissi
onAssignment>> refers to the missing type Map$Entry
   [yjavac] ----------
   [yjavac] 459. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 912)
   [yjavac]     for (final Map.Entry<PrincipalModel, List<PermissionAssignment>>
 entry : groupByPrincipalMap.entrySet())
   [yjavac]                ^^^^^^^^^
   [yjavac] Map.Entry cannot be resolved to a type
   [yjavac] ----------
   [yjavac] 460. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 912)
   [yjavac]     for (final Map.Entry<PrincipalModel, List<PermissionAssignment>>
 entry : groupByPrincipalMap.entrySet())
   [yjavac]
                             ^^^^^^^^
   [yjavac] The method entrySet() from the type Map<PrincipalModel,List<Permissi
onAssignment>> refers to the missing type Map$Entry
   [yjavac] ----------
   [yjavac] 461. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 953)
   [yjavac]     for (final Map.Entry<PK, List<PermissionContainer>> entry : grou
pByPrincipalMap.entrySet())
   [yjavac]                ^^^^^^^^^
   [yjavac] Map.Entry cannot be resolved to a type
   [yjavac] ----------
   [yjavac] 462. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 953)
   [yjavac]     for (final Map.Entry<PK, List<PermissionContainer>> entry : grou
pByPrincipalMap.entrySet())
   [yjavac]
                ^^^^^^^^
   [yjavac] The method entrySet() from the type Map<PK,List<PermissionContainer>
> refers to the missing type Map$Entry
   [yjavac] ----------
   [yjavac] 463. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 1051)
   [yjavac]     for (final Map.Entry<PK, List<PK>> permissionEntry : principalTo
PermissionListMap.entrySet())
   [yjavac]                ^^^^^^^^^
   [yjavac] Map.Entry cannot be resolved to a type
   [yjavac] ----------
   [yjavac] 464. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 1051)
   [yjavac]     for (final Map.Entry<PK, List<PK>> permissionEntry : principalTo
PermissionListMap.entrySet())
   [yjavac]
                  ^^^^^^^^
   [yjavac] The method entrySet() from the type Map<PK,List<PK>> refers to the m
issing type Map$Entry
   [yjavac] ----------
   [yjavac] 465. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 1223)
   [yjavac]     for (final Map.Entry<Principal, List<Boolean>> entry : permissio
nMap.entrySet())
   [yjavac]                ^^^^^^^^^
   [yjavac] Map.Entry cannot be resolved to a type
   [yjavac] ----------
   [yjavac] 466. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 1223)
   [yjavac]     for (final Map.Entry<Principal, List<Boolean>> entry : permissio
nMap.entrySet())
   [yjavac]
     ^^^^^^^^
   [yjavac] The method entrySet() from the type Map<Principal,List<Boolean>> ref
ers to the missing type Map$Entry
   [yjavac] ----------
   [yjavac] ----------
   [yjavac] 467. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\spring\DefaultUse
rToAuthenticationConverter.java (at line 20)
   [yjavac]     import java.util.Arrays;
   [yjavac]            ^^^^^^^^^^^^^^^^
   [yjavac] The import java.util.Arrays cannot be resolved
   [yjavac] ----------
   [yjavac] 468. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\spring\DefaultUse
rToAuthenticationConverter.java (at line 53)
   [yjavac]     .getPassword(user.getUid()), Arrays.asList(authorities));
   [yjavac]                                  ^^^^^^
   [yjavac] Arrays cannot be resolved
   [yjavac] ----------
   [yjavac] ----------
   [yjavac] 469. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\spring\HybrisSess
ionFixationProtectionStrategy.java (at line 97)
   [yjavac]     for (final Map.Entry<String, Object> entry : attributesToMigrate
.entrySet())
   [yjavac]                ^^^^^^^^^
   [yjavac] Map.Entry cannot be resolved to a type
   [yjavac] ----------
   [yjavac] 470. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\spring\HybrisSess
ionFixationProtectionStrategy.java (at line 97)
   [yjavac]     for (final Map.Entry<String, Object> entry : attributesToMigrate
.entrySet())
   [yjavac]
 ^^^^^^^^
   [yjavac] The method entrySet() from the type Map<String,Object> refers to the
 missing type Map$Entry
   [yjavac] ----------
   [yjavac] ----------
   [yjavac] 471. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\spring\vote\Hybri
sNotAnonymousVoter.java (at line 1)
   [yjavac]     /*
   [yjavac]     ^
   [yjavac] The type java.lang.reflect.AnnotatedElement cannot be resolved. It i
s indirectly referenced from required .class files
   [yjavac] ----------
   [yjavac] ----------
   [yjavac] 472. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\type\impl\DefaultTypeServi
ce.java (at line 0)
   [yjavac]     /*
   [yjavac]     ^
   [yjavac] Internal compiler error: java.lang.NullPointerException at org.eclip
se.jdt.internal.compiler.problem.ProblemReporter.missingTypeInMethod(`enter code here`Unknown Sou
rce)
   [yjavac] ----------`enter code here`
   [yjavac] 473. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\type\impl\DefaultTypeServi
ce.java (at line 450)
   [yjavac]     for (final Map.Entry<String, Object> e : (Set<Map.Entry<String,
Object>>) comptype.getAllDefaultValues().entrySet())
   [yjavac]                ^^^^^^^^^
   [yjavac] Map.Entry cannot be resolved to a type
   [yjavac] ----------
   [yjavac] 474. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\type\impl\DefaultTypeServi
ce.java (at line 450)
   [yjavac]     for (final Map.Entry<String, Object> e : (Set<Map.Entry<String,
Object>>) comptype.getAllDefaultValues().entrySet())
   [yjavac]                                                   ^^^^^^^^^
   [yjavac] Map.Entry cannot be resolved to a type
   [yjavac] ----------
   [yjavac] java.lang.NullPointerException
   [yjavac]     at org.eclipse.jdt.internal.compiler.problem.ProblemReporter.mis
singTypeInMethod(Unknown Source)
   [yjavac]     at org.eclipse.jdt.internal.compiler.ast.MessageSend.resolveType
(Unknown Source)
   [yjavac]     at org.eclipse.jdt.internal.compiler.ast.CastExpression.resolveT
ype(Unknown Source)
   [yjavac]     at org.eclipse.jdt.internal.compiler.ast.ForeachStatement.resolv
e(Unknown Source)
   [yjavac]     at org.eclipse.jdt.internal.compiler.ast.Block.resolveUsing(Unkn
own Source)
   [yjavac]     at org.eclipse.jdt.internal.compiler.ast.TryStatement.resolve(Un
known Source)
   [yjavac]     at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclarati
on.resolveStatements(Unknown Source)
   [yjavac]     at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.resol
veStatements(Unknown Source)
   [yjavac]     at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclarati
on.resolve(Unknown Source)
   [yjavac]     at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve
(Unknown Source)
   [yjavac]     at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve
(Unknown Source)
   [yjavac]     at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclarat
ion.resolve(Unknown Source)
   [yjavac]     at org.eclipse.jdt.internal.compiler.Compiler.process(Unknown So
urce)
   [yjavac]     at org.eclipse.jdt.internal.compiler.ProcessTaskManager.run(Unkn
own Source)
   [yjavac]     at java.lang.Thread.run(Unknown Source)
   [yjavac]

BUILD FAILED
D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform\build.xml:25: The followi
ng error occurred while executing this line:
D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform\resources\ant\compiling.x
ml:47: The following error occurred while executing this line:
D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform\resources\ant\compiling.x
ml:66: The following error occurred while executing this line:
D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform\resources\ant\util.xml:24
: The following error occurred while executing this line:
D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform\resources\ant\compiling.x
ml:68: The following error occurred while executing this line:
D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform\resources\ant\compiling.x
ml:208: The following error occurred while executing this line:
D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform\resources\ant\compiling.x
ml:220: The following error occurred while executing this line:
D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform\resources\ant\compiling.x
ml:241: The following error occurred while executing this line:
D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform\resources\ant\util.xml:86
: Compile failed; see the compiler error output for details.

Total time: 34 seconds

D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform>hybrisserver.bat
Used config: D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform\tomcat-6/con
f/wrapper.conf
FATAL  | wrapper  | Failed to load configuration.
An error occurred in the process.
D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform>

4 个答案:

答案 0 :(得分:3)

ClassNotFound java.util.Arrays? java.util.Map?这些对Java来说非常重要。

我想说这与hybris完全无关。尝试安装Java。

答案 1 :(得分:0)

安装Jdk后可以做的另一件事是删除hybris设置并重新解压缩hybris文件夹,该文件夹有效删除默认数据库 - 您可以使用ant initialize重新创建原始数据库状态。

答案 2 :(得分:0)

这些错误来自Java版本问题。如果您使用的是早期版本的Java,请尝试安装1.6或1.7等新版本,以便再次尝试重新运行扩展。
尝试检查Java版本的ant版本。

在这里,您需要执行更多步骤:

  1. 删除Hybris提取的文件夹和
  2. 创建新文件夹和
  3. 将您的zip文件解压缩到新创建的文件夹,然后从头开始

答案 3 :(得分:0)

粘贴输出的结尾显示配置文件PATH具有&#34; /&#34; (正斜杠) - 在尝试加载配置文件时导致包装器发生FATAL异常。

  • 请使用&#34; \&#34; (斜线)代替(参见示例)。

实施例

(从最后的原帖)

 D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform>hybrisserver.bat
Used config: D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform\tomcat-6/con
f/wrapper.conf
FATAL  | wrapper  | Failed to load configuration.
An error occurred in the process.

注意: wrapper.conf 的路径有&#34; /&#34; (而不是&#34; \&#34;)导致

请使用正确的路径: d:\的hybris多声道套房-4.7.9 \的hybris \ BIN \平台** \ Tomcat的6 \ CONF \ wrapper.conf