Unable to Apply JBoss EAP 6.2 Cumilitive Patch (CP) When using 'jboss-eap-6.2.0-installer.jar' install JBoss

Solution Verified - Updated

Environment

  • JBoss EAP 6.2 Cumilitive Patch
  • jboss-eap-6.2.0-installer.jar
  • Linux OS

Issue

After using the 'jboss-eap-6.2.0-installer.jar' installed the JBoss, a 'JBoss EAP 6.2 CP' can not be installed with the conflict notifications as below:

patch apply jboss-eap-6.2.1.zip
Conflicts detected: bin/jconsole.bat
Use the --override or --preserve arguments in order to resolve the conflict.

a 'JBoss EAP 6.2 CP' also can not be uninstalled with FileNotFoundException as below:

[disconnected /] patch rollback --patch-id=jboss-eap-6.2.1.CP --reset-configuration=false
java.io.FileNotFoundException: EAP-6.2.0/jboss-eap-6.2/.installation/patches/jboss-eap-6.2.1.CP/misc/bin/jconsole.bat (No such file or directory)

Resolution

  • This content is not included.Bug 1065830 have stated the issue, currently we have workaround for both patch apply and patch rollback.

  • For patch apply, using --override,--override-all will ignore confliction:

patch apply /path/jboss-eap-6.2.1.zip --override=bin/client/jboss-cli-client.jar,bin/client/jboss-client.jar,bin/jconsole.sh
patch apply /path/jboss-eap-6.2.1.zip --override-all
  • For patch rollback, using '--preserve' will ignore Exception:
patch rollback --patch-id=jboss-eap-6.2.1.CP --reset-configuration=false --preserve=bin/jconsole.bat

Root Cause

This content is not included.Bug 1065830

Diagnostic Steps

  • patch install procedure scripts
[kylin@localhost jboss-eap-6.2]$ cd bin/
[kylin@localhost bin]$ ./jboss-cli.sh 
You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
[disconnected /] patch 
--help    apply     history   info      rollback  
[disconnected /] patch apply /path/jboss-eap-6.2.1.zip
Conflicts detected: bin/jconsole.bat
Use the --override or --preserve arguments in order to resolve the conflict.
[disconnected /] patch apply /path/jboss-eap-6.2.1.zip --
--override-all      --override-modules  --override=         --preserve=         
[disconnected /] patch apply /path/jboss-eap-6.2.1.zip --override=bin/jconsole.bat
{
    "outcome" : "success",
    "result" : {}
}

  • patch roll back procedure scripts
[kylin@localhost bin]$ ./jboss-cli.sh 
You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
[disconnected /] patch info
{
    "outcome" : "success",
    "result" : {
        "cumulative-patch-id" : "base",
        "patches" : []
    }
}
[disconnected /] patch apply /path/jboss-eap-6.2.1.zip --override-all
{
    "outcome" : "success",
    "result" : {}
}
[disconnected /] patch info
{
    "outcome" : "success",
    "result" : {
        "cumulative-patch-id" : "jboss-eap-6.2.1.CP",
        "patches" : []
    }
}
[disconnected /] patch rollback --patch-id=jboss-eap-6.2.1.CP --reset-configuration=false
java.io.FileNotFoundException: /path/EAP-6.2.0/jboss-eap-6.2/.installation/patches/jboss-eap-6.2.1.CP/misc/bin/jconsole.bat (No such file or directory)
[disconnected /] patch rollback --patch-id=jboss-eap-6.2.1.CP --reset-configuration=false --preserve=bin/jconsole.bat
{
    "outcome" : "success",
    "result" : {}
}
[disconnected /] patch info
{
    "outcome" : "success",
    "result" : {
        "cumulative-patch-id" : "base",
        "patches" : []
    }
}
Components

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.