Conflicts detected in standalone.bat,standalone.conf.bat files while applying JBoss EAP 7.0 CP5+ /EAP 6.4 CP14

Solution Unverified - Updated -

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.0 CP5+
    • 6.4 CP14

Issue

  • When CP5 and above cumulative patches are applied to JBoss EAP 7.0 using below CLI command then error is generated and patch is not applied.
[disconnected /] patch apply /home/jbsuser/jboss-eap-7.0.5-patch.zip
Conflicts detected: bin/standalone.bat, bin/standalone.conf.bat
Use the --override-all, --override=[] or --preserve=[] arguments in order to resolve the conflict.

Resolution

  • The message means that the patch has a change to make to bin/standalone.bat, bin/standalone.conf.bat , but has noticed that the files are modified.

  • You can run below command as it mentions to apply the patch without changing the files.

patch apply /home/jbsuser/jboss-eap-7.0.5-patch.zip --preserve=[bin/standalone.bat,bin/standalone.conf.bat]
  • The --override option will override the changes made and apply the ones JBoss has, which would mean you would have to add your changes back to the standalone.bat and standalone.conf.bat.

Root Cause

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments