Can I use single fix (one-off) patches on a JBoss RPM installation?
Environment
- JBoss Enterprise Application Platform (EAP) 6.0.x, 6.1.x
- Installed via RPMs
Issue
You have installed JBoss EAP using the RPMs from RHN, and want to install a patch which is provided from the "patches" tab in the customer portal. Is that supported?
Resolution
One-off patches should only be installed when needed to resolve the exact problem that they are designed to fix. If you have any doubt as to whether you need to install one, please raise a support case to ask a Red Hat support engineer.
One-off patches from the customer portal have been verified by our Quality Engineering team against the zip distribution only. They have not been verified against a RPM-based installation, unless explicitly specified.
NOTE: The following is untested and unsupported. So this may not work correctly, may cause issues, and may affect future RPM updates of EAP.
To determine whether the patch can be used as-is, please look at the replacement module.xml file(s) in the patch. If a module.xml file lists only one <resource-root>, then it can be used as-is. If there is more than one jar listed as a <resource-root> then a modification needs to be made to the patch.
For each jar listed as a resource root, check whether it is shipped as part of the patch.
* If it is, leave the entry unmodified in the replacement module.xml
* If it is not, alter the file name to match that of the jar file from your existing installation.
For example, the org.hibernate module has three jar files listed. If the patch only modifies the hibernate-core jar on EAP 6.1.0, then change:
<resources>
<resource-root path="hibernate-core-4.2.0.Final-redhat-1-bz1234567.jar"/>
<resource-root path="hibernate-entitymanager-4.2.0.Final-redhat-1.jar"/>
<resource-root path="hibernate-infinispan-4.2.0.Final-redhat-1.jar"/>
<!-- Insert resources here -->
</resources>
to
<resources>
<resource-root path="hibernate-core-4.2.0.Final-redhat-1-bz1234567.jar"/>
<resource-root path="hibernate-entitymanager.jar"/>
<resource-root path="hibernate-infinispan.jar"/>
<!-- Insert resources here -->
</resources>
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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
