Troubleshooting: Massload error during feature enablement

While attempting to enable a feature, you receive an error message that states enablement has failed due to a massLoad error related to the element type keys not being declared.

Problem

The feature enablement log shows an error similar to the following:
loadBootstrapData:
Massloading C:\IBM\WCDE_E~1\components\foundation\xml\wcs.bootstrap_foundation.xml
-dbname BEAERO -dbuser db2admin -dbpwd ****** -infile C:\IBM\WCDE_E~1\components\foundation\xml\wcs.bootstrap_foundation.xml -method sqlimport -commitcount 1000 -maxerror 1 -customizer -schemaname DB2ADMIN
Error in MassLoading, please check logs for details.

BUILD FAILED

C:\IBM\WCDE_E~1\components\common\xml\enableFeatureForToolkit.xml:52: The following error occurred while executing this line:
C:\IBM\WCDE_E~1\components\common\xml\enableFeatureForToolkit.xml:122: The following error occurred while executing this line:
C:\IBM\WCDE_E~1\components\common\xml\databaseTasks.xml:22: The following error occurred while executing this line:
C:\IBM\WCDE_E~1\components\common\xml\databaseTasks.xml:105: Error in massloading
When you look in the file WCDE_installdir/components/foundation/xml/wcs.bootstrap_foundation.error.xml, you see an error message similar to the following:
<?xml version="1.0" encoding="UTF-8"?>
<import>
<error id="SAXException" locus="com.ibm.wca.MassLoader.Parser.DefaultParser">
<message>Element type "keys" must be declared. </message>
</error>
</import>
You can find a similar message in the file WCDE_installdir/logs/messages.txt:
> 2011-00-00 00:00:00.000, <Thread-6>, com.ibm.wca.MassLoader.Parser.ParserHandler::error, S1
Error Element type "keys" must be declared. : 19 : 162

Solution

This problem occurs when the file WCDE_installdir/components/foundation/xml/wcs.dtd is corrupted, which causes the XML schema validation to fail. You can confirm that the wcs.dtd file is corrupted by examining its size. When corrupted, the size of the file is about 1 KB, while normally it is about 268 KB.

After you confirm that the file is corrupted, you can solve the problem by replacing the wcs.dtd file with a copy of the file from a working environment on the same WebSphere Commerce Version 7 feature pack level, or from this technoteFeature enablement fails due to MassLoad error 'Element type "keys" must be declared'. After the file is replaced, try again to enable the feature.