cancel
Showing results for 
Search instead for 
Did you mean: 

Getting error building 5.4 using "ant clean all" - new installation

Former Member
0 Kudos

Hello,

I am new to Hybris, just installed 5.4 for the first time and trying to build using "ant clean all". I have executed "setantenv.bat" before this command. Build fails with following errors:

[ysetplatformproperties] Error while evaluating file 'C:\hybris\bin\platform\hyb ris\config\localextensions.xml'. Extension 'admincockpit' doesn't specify a path and no scanned extension was matching the name. Please check file C:\hybris\bin \platform\hybris\config\localextensions.xml.

[ysetplatformproperties] java.lang.RuntimeException: Error while evaluating file 'C:\hybris\bin\platform\hybris\config\localextensions.xml'. Extension 'admincoc kpit' doesn't specify a path and no scanned extension was matching the name. Ple ase check file C:\hybris\bin\platform\hybris\config\localextensions.xml.

[ysetplatformproperties] at de.hybris.bootstrap.config.PlatformConfig.rea dConfiguredExtensionsFromXMLFile(PlatformConfig.java:1222) [ysetplatformproperties] at de.hybris.bootstrap.config.PlatformConfig.col lectConfiguredExtensionsFromXMLConfig(PlatformConfig.java:1044) [ysetplatformproperties] at de.hybris.bootstrap.config.PlatformConfig.col lectConfiguredExtensions(PlatformConfig.java:956) [ysetplatformproperties] at de.hybris.bootstrap.config.PlatformConfig.(PlatformConfig.java:142) [ysetplatformproperties] at de.hybris.bootstrap.config.PlatformConfig.get Instance(PlatformConfig.java:131) [ysetplatformproperties] at de.hybris.ant.taskdefs.PlatformConfigAntUtils .loadPlatformConfig(PlatformConfigAntUtils.java:63) [ysetplatformproperties] at de.hybris.ant.taskdefs.PlatformConfigAntUtils .getOrLoadPlatformConfig(PlatformConfigAntUtils.java:39) [ysetplatformproperties] at de.hybris.ant.taskdefs.SetPlatformProperties. setAllProperties(SetPlatformProperties.java:174) [ysetplatformproperties] at de.hybris.ant.taskdefs.SetPlatformProperties. execute(SetPlatformProperties.java:118) [ysetplatformproperties] at org.apache.tools.ant.UnknownElement.execute(U nknownElement.java:292) [ysetplatformproperties] at sun.reflect.GeneratedMethodAccessor4.invoke(U nknown Source) [ysetplatformproperties] at sun.reflect.DelegatingMethodAccessorImpl.invo ke(DelegatingMethodAccessorImpl.java:43) [ysetplatformproperties] at java.lang.reflect.Method.invoke(Method.java:4 83) [ysetplatformproperties] at org.apache.tools.ant.dispatch.DispatchUtils.e xecute(DispatchUtils.java:106) [ysetplatformproperties] at org.apache.tools.ant.Task.perform(Task.java:3 48) [ysetplatformproperties] at org.apache.tools.ant.Target.execute(Target.ja va:435) [ysetplatformproperties] at org.apache.tools.ant.helper.ProjectHelper2.pa rse(ProjectHelper2.java:168) [ysetplatformproperties] at org.apache.tools.ant.taskdefs.ImportTask.impo rtResource(ImportTask.java:230) [ysetplatformproperties] at org.apache.tools.ant.taskdefs.ImportTask.exec ute(ImportTask.java:162) [ysetplatformproperties] at org.apache.tools.ant.UnknownElement.execute(U nknownElement.java:292) [ysetplatformproperties] at sun.reflect.NativeMethodAccessorImpl.invoke0( Native Method) [ysetplatformproperties] at sun.reflect.NativeMethodAccessorImpl.invoke(N ativeMethodAccessorImpl.java:62) [ysetplatformproperties] at sun.reflect.DelegatingMethodAccessorImpl.invo ke(DelegatingMethodAccessorImpl.java:43) [ysetplatformproperties] at java.lang.reflect.Method.invoke(Method.java:4 83) [ysetplatformproperties] at org.apache.tools.ant.dispatch.DispatchUtils.e xecute(DispatchUtils.java:106) [ysetplatformproperties] at org.apache.tools.ant.Task.perform(Task.java:3 48) [ysetplatformproperties] at org.apache.tools.ant.Target.execute(Target.ja va:435) [ysetplatformproperties] at org.apache.tools.ant.helper.ProjectHelper2.pa rse(ProjectHelper2.java:179) [ysetplatformproperties] at org.apache.tools.ant.ProjectHelper.configureP roject(ProjectHelper.java:93) [ysetplatformproperties] at org.apache.tools.ant.Main.runBuild(Main.java: 826) [ysetplatformproperties] at org.apache.tools.ant.Main.startAnt(Main.java: 235) [ysetplatformproperties] at org.apache.tools.ant.launch.Launcher.run(Laun cher.java:280) [ysetplatformproperties] at org.apache.tools.ant.launch.Launcher.main(Lau ncher.java:109) [ysetplatformproperties] Caused by: de.hybris.bootstrap.config.BootstrapConfigEx ception: Extension 'admincockpit' doesn't specify a path and no scanned extensio n was matching the name. Please check file C:\hybris\bin\platform\hybris\config\ localextensions.xml. [ysetplatformproperties] at de.hybris.bootstrap.config.PlatformConfig.cre ateExtensionInfoFromXML(PlatformConfig.java:1397) [ysetplatformproperties] at de.hybris.bootstrap.config.PlatformConfig.rea dConfiguredExtensionsFromXMLFile(PlatformConfig.java:1215) [ysetplatformproperties] ... 32 more

BUILD FAILED C:\hybris\bin\platform\build.xml:20: The following error occurred while executin g this line: C:\hybris\bin\platform\resources\ant\antmacros.xml:113: java.lang.RuntimeExcepti on: Error while evaluating file 'C:\hybris\bin\platform\hybris\config\localexten sions.xml'. Extension 'admincockpit' doesn't specify a path and no scanned exten sion was matching the name. Please check file C:\hybris\bin\platform\hybris\conf ig\localextensions.xml. at de.hybris.bootstrap.config.PlatformConfig.readConfiguredExtensionsFro mXMLFile(PlatformConfig.java:1222) at de.hybris.bootstrap.config.PlatformConfig.collectConfiguredExtensions FromXMLConfig(PlatformConfig.java:1044) at de.hybris.bootstrap.config.PlatformConfig.collectConfiguredExtensions (PlatformConfig.java:956) at de.hybris.bootstrap.config.PlatformConfig.(PlatformConfig.java: 142) at de.hybris.bootstrap.config.PlatformConfig.getInstance(PlatformConfig. java:131) at de.hybris.ant.taskdefs.PlatformConfigAntUtils.loadPlatformConfig(Plat formConfigAntUtils.java:63) at de.hybris.ant.taskdefs.PlatformConfigAntUtils.getOrLoadPlatformConfig (PlatformConfigAntUtils.java:39) at de.hybris.ant.taskdefs.SetPlatformProperties.setAllProperties(SetPlat formProperties.java:174) at de.hybris.ant.taskdefs.SetPlatformProperties.execute(SetPlatformPrope rties.java:118) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav a: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.ja va: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:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav a: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.jav a: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) Caused by: de.hybris.bootstrap.config.BootstrapConfigException: Extension 'admin cockpit' doesn't specify a path and no scanned extension was matching the name. Please check file C:\hybris\bin\platform\hybris\config\localextensions.xml. at de.hybris.bootstrap.config.PlatformConfig.createExtensionInfoFromXML( PlatformConfig.java:1397) at de.hybris.bootstrap.config.PlatformConfig.readConfiguredExtensionsFro mXMLFile(PlatformConfig.java:1215) ... 32 more

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Thanks Gaurav, build worked this time! Those additional system variables were indeed the rootcause of this mess...

Cheers, Rishi

Former Member
0 Kudos

Moi Marko, Gaurav,

You both seem to be right. There's something wrong with the file path. Have tried a clean installation again, having permanently deleted old extracted folders & files... Still, the script seems to generate these sub-directories when I run "ant"... any ideas which script it is doing this and could it be based on any system variables?

I did set four system variables on my laptop as follows: HYBRIS_BIN_DIR hybris\bin HYBRIS_DATA_DIR hybris\data HYBRIS_LOG_DIR hybris\log HYBRIS_TEMP_DIR hybris\temp

*C:\hybris\bin\platform>ant clean all Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128M; support was removed in 8.0

Buildfile: C:\hybris\bin\platform\build.xml

 [echo] C:\hybris\bin\platform/tomcat/bin
 [mkdir] Created dir: C:\hybris\bin\platform\hybris\log
 [mkdir] Created dir: C:\hybris\bin\platform\hybris\data
 [mkdir] Created dir: C:\hybris\bin\platform\hybris\bin
 [mkdir] Created dir: C:\hybris\temp\hybris
 [input]
 [input]  **** NO CONFIG FOLDER FOUND ****
 [input]
 [input]  No config folder was found at 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 26 files to C:\hybris\bin\platform\hybris\config
  [copy] Copying 1 file to C:\hybris\bin\platform\hybris\config*

Apologies for wasting your time, but appreciate your help!

Former Member
0 Kudos

Hello Rishi,

Your system variable seems to be creating the issue and and thus creating wrong directory paths in the wrong location. I dont think you need to create any separate system variables as such.

Try deleting the system variables and right after extraction set the ant version and perform a build.

Cheers, Gourav

Former Member
0 Kudos

Hello Rishi,

The problem could be extraction of the zip file. Did you encounter any warning message like "The system could not find the path specified" during extraction? Because during extraction if all the sub-directory hierarchy are not extracted properly some file gets corrupt and you may get some error like this causing build failure.

Cheers, Gourav

Former Member
0 Kudos

You seem to have a very strange directory structure :) I see this "C:\hybris\bin\platform\hybris\config\localextensions.xml" config directory should be in hybris dir, like this : C:\hybris\config\localextensions.xml

Former Member
0 Kudos

Hi Raghavendra,

Thanks for your suggestion. I checked and there's no issues with folder structure or spellings. Attaching both "localextensions.xml" and folder structure JPG for reference.

I even tried editing "extensioninfo.xml" under "C:\hybris\bin\ext-cockpit\admincockpit" to add the "path dir" but didn't help.

Much appreciate any further suggestions!!

Thanks, Rishi

[1]: /storage/temp/2056-localextensions.zip

raghavendra_desu
Contributor
0 Kudos

Hi Rishi,

As per the error stacktrace, Hybris can't find admincockpit extension. The admincockpit extension should be located at Hybris/bin/ext-cockpit path. Check the extension is available in that location. If its available please check the spelling changes with localextensions.xml which should work.

Regards,

Raghavendra.