Duplicate component name Error after making duplicate jar file from patch

  • 3560425
  • 06-Feb-2008
  • 27-Apr-2012

Environment

Novell ZENworks 10 Configuration Management

Situation

Can't login to the ZCC or can't load the ZCC after manually copying new jar files from patches into ZENWORKS_HOME on server (example per KB 5007725).
Duplicate jar files.
ERROR (from loader-messages.log):
com.novell.zenworks.datamodel.exceptions.DataModelConfigurationException:

Duplicate component name: system-update (jar:file:/C:/Program Files/Novell/ZENworks/lib/java/system-update-datamodel.jar!/META-INF/novell-zenworks-datamodel.properties and jar:file:/C:/Program Files/Novell/ZENworks/lib/java/Copy of system-update-datamodel.jar!/META-INF/novell-zenworks-datamodel.properties)

Resolution

When copying jar files from a patch update, back up the existing jar bymovingit to another directory so it won't be loaded at zenloader startup. Don't make a file "copy of original.jar" in the same location, renaming it is not sufficient to stop it being loaded.