Conflicts detected in standalone.bat,standalone.conf.bat files while applying JBoss EAP 7.0 CP5+ /EAP 6.4 CP14
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 thestandalone.bat
andstandalone.conf.bat
.
Root Cause
- There was a bug that prevented disabling the automatic GC log flags specifically in the
standalone.sh/.bat
as described in: standalone script do not detect custom GC logs and was fixed in EAP 6.4 CP14 BZ1282973 and EAP 7.0 CP5 JBEAP-8240
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