Chapter 1. JBoss EAP XP for the latest MicroProfile capabilities
1.1. About JBoss EAP XP Copy linkLink copied to clipboard!
The Eclipse MicroProfile Expansion Pack (JBoss EAP XP) is available as a patch stream, which is provided using JBoss EAP XP manager.
JBoss EAP XP is subject to a separate support and life cycle policy. For more details, see the JBoss Enterprise Application Platform expansion pack Support and Life Cycle Policies page.
The JBoss EAP XP patch provides the following Eclipse MicroProfile 3.3 components:
- Eclipse MicroProfile Config
- Eclipse MicroProfile Fault Tolerance
- Eclipse MicroProfile Health
- Eclipse MicroProfile JWT
- Eclipse MicroProfile Metrics
- Eclipse MicroProfile OpenAPI
- Eclipse MicroProfile OpenTracing
- Eclipse MicroProfile REST Client
1.2. JBoss EAP XP installation Copy linkLink copied to clipboard!
When you install JBoss EAP XP, make sure that the JBoss EAP XP patch is compatible with your version of JBoss EAP. The latest JBoss EAP XP 2.0.x patch is compatible with the latest JBoss EAP 7.3 patch.
Additional Resources
1.3. JBoss EAP XP manager for managing JBoss EAP XP patch streams Copy linkLink copied to clipboard!
JBoss EAP XP manager is an executable jar file that you can download from the Product Downloads page. Use JBoss EAP XP manager to apply the JBoss EAP XP patches from the JBoss EAP XP patch stream. The patches contain the MicroProfile 3.3 implementations and the bug fixes for these MicroProfile 3.3 implementations.
You can not manage the JBoss EAP XP patches using the management console.
If you run JBoss EAP XP manager without any arguments, or with the help command, you get a list of all the available commands with a description of what they do.
Run the manager with the help command to get more information about the arguments available.
Most of the JBoss EAP XP manager commands take a --jboss-home argument to point to the JBoss EAP XP server to manage the JBoss EAP XP patch stream. Specify the the path to the server in the JBOSS_HOME environment variable if you want to omit this. --jboss-home takes precedence over the environment variable.
1.4. JBoss EAP XP manager 2.0 commands Copy linkLink copied to clipboard!
JBoss EAP XP manager 2.0 provides different commands for managing JBoss EAP XP patch streams.
The following commands are provided:
patch-applyUse this command to apply patches to your JBoss EAP installation.
The
patch-applycommand is similar to thepatch applymanagement CLI command. Thepatch-applycommand accepts only those arguments that are required for applying patches using the tool. It uses the default values for otherpatch applymanagement CLI command arguments.You can use the
patch-applycommand to apply patches to any patch stream that is enabled on the server. You can also use the command to apply both the base server patches as well as the XP patches.Example of using the
patch-applycommand:java -jar jboss-eap-xp-manager.jar patch-apply --jboss-home=/PATH/TO/EAP --patch=/PATH/TO/PATCH/jboss-eap-7.3.4-patch.zip
$ java -jar jboss-eap-xp-manager.jar patch-apply --jboss-home=/PATH/TO/EAP --patch=/PATH/TO/PATCH/jboss-eap-7.3.4-patch.zipCopy to Clipboard Copied! Toggle word wrap Toggle overflow When you apply an XP patch, JBoss EAP XP manager 2.0 performs validation to prevent patch and patch stream mismatch. The following example illustrates incorrect combinations:
Trying to install JBoss EAP XP 1.0 patch on a server with XP 2.0 patch stream set up causes the following error:
java.lang.IllegalStateException: The JBoss EAP XP patch stream in the patch 'jboss-eap-xp-1.0' does not match the currently enabled JBoss EAP XP patch stream [jboss-eap-xp-2.0] at org.jboss.eap.util.xp.patch.stream.manager.ManagerPatchApplyAction.doExecute(ManagerPatchApplyAction.java:33) at org.jboss.eap.util.xp.patch.stream.manager.ManagerAction.execute(ManagerAction.java:40) at org.jboss.eap.util.xp.patch.stream.manager.ManagerMain.main(ManagerMain.java:50)
java.lang.IllegalStateException: The JBoss EAP XP patch stream in the patch 'jboss-eap-xp-1.0' does not match the currently enabled JBoss EAP XP patch stream [jboss-eap-xp-2.0] at org.jboss.eap.util.xp.patch.stream.manager.ManagerPatchApplyAction.doExecute(ManagerPatchApplyAction.java:33) at org.jboss.eap.util.xp.patch.stream.manager.ManagerAction.execute(ManagerAction.java:40) at org.jboss.eap.util.xp.patch.stream.manager.ManagerMain.main(ManagerMain.java:50)Copy to Clipboard Copied! Toggle word wrap Toggle overflow Trying to install JBoss EAP XP 2.0 patch on a server that is not set up for JBoss EAP XP 2.0 patch stream causes the following error:
java.lang.IllegalStateException: You are attempting to install a patch for the 'jboss-eap-xp-2.0' JBoss EAP XP Patch Stream. However this patch stream is not yet set up in the JBoss EAP server. Run the 'setup' command to enable the patch stream. at org.jboss.eap.util.xp.patch.stream.manager.ManagerPatchApplyAction.doExecute(ManagerPatchApplyAction.java:29) at org.jboss.eap.util.xp.patch.stream.manager.ManagerAction.execute(ManagerAction.java:40) at org.jboss.eap.util.xp.patch.stream.manager.ManagerMain.main(ManagerMain.java:50)
java.lang.IllegalStateException: You are attempting to install a patch for the 'jboss-eap-xp-2.0' JBoss EAP XP Patch Stream. However this patch stream is not yet set up in the JBoss EAP server. Run the 'setup' command to enable the patch stream. at org.jboss.eap.util.xp.patch.stream.manager.ManagerPatchApplyAction.doExecute(ManagerPatchApplyAction.java:29) at org.jboss.eap.util.xp.patch.stream.manager.ManagerAction.execute(ManagerAction.java:40) at org.jboss.eap.util.xp.patch.stream.manager.ManagerMain.main(ManagerMain.java:50)Copy to Clipboard Copied! Toggle word wrap Toggle overflow In both the cases, no changes are made to the server.
removeUse this command to remove the JBoss EAP XP patch stream setup from the JBoss EAP server.
Example of using the
removecommandjava -jar jboss-eap-xp-manager.jar remove --jboss-home=/PATH/TO/EAP
$ java -jar jboss-eap-xp-manager.jar remove --jboss-home=/PATH/TO/EAPCopy to Clipboard Copied! Toggle word wrap Toggle overflow setupUse this command to set up a clean JBoss EAP server for the JBoss EAP XP patch stream.
When you use the
setupcommand, JBoss EAP XP manager performs the following actions:- Enables the JBoss EAP XP 2.0 patch stream.
-
Applies patches specified using
--base-patchand--xp-patchattributes. Copies the
standalone-microprofile.xmlandstandalone-microprofile-ha.xmlconfiguration files into the server configuration directory.If older configuration files are already installed, the new files are saved as timestamped copies in the target configuration directory, such as
standalone-microprofile-yyyyMMdd-HHmmss.xml.You can set the target directory using the
--jboss-config-directoryargument.
Example of using the
setupcommandjava -jar jboss-eap-xp-manager.jar setup --jboss-home=/PATH/TO/EAP
$ java -jar jboss-eap-xp-manager.jar setup --jboss-home=/PATH/TO/EAPCopy to Clipboard Copied! Toggle word wrap Toggle overflow statusUse this command to find the current status of your JBoss EAP XP server. The status command returns the following information:
- The status of the JBoss EAP XP stream.
- Any support policy changes due to being in the current state.
- The major version of JBoss EAP XP.
- Enabled patch streams and their cumulative patch IDs.
- The available JBoss EAP XP manager commands to change the state.
Example of using the
statuscommandjava -jar jboss-eap-xp-manager.jar status --jboss-home=/PATH/TO/EAP
$ java -jar jboss-eap-xp-manager.jar status --jboss-home=/PATH/TO/EAPCopy to Clipboard Copied! Toggle word wrap Toggle overflow upgradeUse this command to upgrade an old JBoss EAP XP patch stream to the latest patch stream in the JBoss EAP server.
When you use the
upgradecommand, JBoss EAP XP manager performs the following actions:- Creates a backup of the files enabling the old patch stream in the server.
- Enables the JBoss EAP XP 2.0 patch stream.
-
Applies patches specified using
--base-patchand--xp-patchattributes. -
Copies the
standalone-microprofile.xmlandstandalone-microprofile-ha.xmlconfiguration files into the server configuration directory. If older configuration files are already installed, the new files are saved as timestamped copies in the target configuration directory, such asstandalone-microprofile-yyyyMMdd-HHmmss.xml. If something goes wrong, JBoss EAP XP manager attempts to restore the previous patch stream from the backup it created.
You can set the target directory using the
--jboss-config-directoryargument
Example of using the
upgradecommand:java -jar jboss-eap-xp-manager.jar upgrade --jboss-home=/PATH/TO/EAP
$ java -jar jboss-eap-xp-manager.jar upgrade --jboss-home=/PATH/TO/EAPCopy to Clipboard Copied! Toggle word wrap Toggle overflow
1.5. Installing JBoss EAP XP 2.0.0 on JBoss EAP 7.3.x Copy linkLink copied to clipboard!
Install JBoss EAP XP 2.0.0 on the JBoss EAP 7.3.x base server.
Use JBoss EAP XP 2.0.0 to manage JBoss EAP XP 2.0.0 patch streams.
JBoss EAP XP 2.0.0 is certified with JBoss EAP 7.3.4.
Prerequisites
You have downloaded the following files from the Product Downloads page:
-
The
jboss-eap-xp-2.0.0-manager.jarfile (JBoss EAP XP manager 2.0) - JBoss EAP 7.3.4 GA patch
- JBoss EAP XP 2.0.0 patch
-
The
Procedure
If you have not applied the JBoss EAP 7.3.4 GA patch patch to your JBoss EAP server, apply the JBoss EAP 7.3.4 GA patch using the JBoss EAP XP manager 2.0.0
patch-applycommand:java -jar jboss-eap-xp-manager.jar patch-apply --jboss-home=/PATH/TO/EAP --patch=/PATH/TO/PATCH/jboss-eap-7.3.4-patch.zip
$ java -jar jboss-eap-xp-manager.jar patch-apply --jboss-home=/PATH/TO/EAP --patch=/PATH/TO/PATCH/jboss-eap-7.3.4-patch.zipCopy to Clipboard Copied! Toggle word wrap Toggle overflow The
patch-applycommand is similar to thepatch applymanagement CLI command. You can use thepatch applymanagement CLI command to apply the patch as well.Set up JBoss EAP XP manager 2.0.0 to manage the EAP XP 2.0 patch stream using the following command:
java -jar jboss-eap-xp-manager.jar setup --jboss-home=/PATH/TO/EAP
$ java -jar jboss-eap-xp-manager.jar setup --jboss-home=/PATH/TO/EAPCopy to Clipboard Copied! Toggle word wrap Toggle overflow NoteYou can apply the JBoss EAP XP 2.0.0 patch at the same time. Include the path to the JBoss EAP XP 2.0.0 patch using the
--xp-patchargument.Example:
java -jar jboss-eap-xp-manager.jar setup --jboss-home=/PATH/TO/EAP --xp-patch /PATH/TO/PATCH/jboss-eap-xp-2.0.0-patch.zip
$ java -jar jboss-eap-xp-manager.jar setup --jboss-home=/PATH/TO/EAP --xp-patch /PATH/TO/PATCH/jboss-eap-xp-2.0.0-patch.zipCopy to Clipboard Copied! Toggle word wrap Toggle overflow The server is now ready to manage the JBoss EAP XP 2.0 patch stream.
Optional: If you did not use the the
--xp-patchargument with thesetupcommand, apply the JBoss EAP XP 2.0.0 patch using the JBoss EAP XP manager 2.0.0patch-applycommand:java -jar jboss-eap-xp-manager.jar patch-apply --jboss-home=/PATH/TO/EAP --patch=/PATH/TO/PATCH/jboss-eap-xp-2.0.0-patch.zip
$ java -jar jboss-eap-xp-manager.jar patch-apply --jboss-home=/PATH/TO/EAP --patch=/PATH/TO/PATCH/jboss-eap-xp-2.0.0-patch.zipCopy to Clipboard Copied! Toggle word wrap Toggle overflow
The server is now ready to manage the JBoss EAP XP 2.0 patch stream and is patched with the JBoss EAP XP 2.0.0 patch.
1.6. Upgrading JBoss EAP XP 1.0.x to 2.0.0 Copy linkLink copied to clipboard!
Upgrade JBoss EAP XP 1.0.x to 2.0.0 using the upgrade command that is provided in JBoss EAP XP manager.
JBoss EAP XP 2.0.0 is certified with JBoss EAP 7.3.4 and 7.3.z versions.
Prerequisites
- The base JBoss EAP server is updated to patch 7.3.4 or a later patch.
- You have downloaded the JBoss EAP XP 2.0.0 patch from the Product download page.
Procedure
Verify that your server is on the correct patch and has JBoss EAP XP 1.0.x installed:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow This output indicates that your server is ready for upgrade to JBoss EAP XP 2.0.0.
If you see other output, refer to the troubleshooting recommendations.
Use the
upgradecommand to upgrade JBoss EAP XP 1.0.x to 2.0.0 and apply the JBoss EAP XP 2.0.0 patch.java -jar jboss-eap-xp-manager.jar upgrade --jboss-home=__<path_to_eap>__ --xp-patch=__<path_to_patch>__/jboss-eap-xp-2.0.0-patch.zip
$ java -jar jboss-eap-xp-manager.jar upgrade --jboss-home=__<path_to_eap>__ --xp-patch=__<path_to_patch>__/jboss-eap-xp-2.0.0-patch.zipCopy to Clipboard Copied! Toggle word wrap Toggle overflow Accept the support policy prompt by entering
yes.Your server is ready to manage the JBoss EAP XP 2.0.0 patch stream and is updated with the JBoss EAP XP 2.0.0 patch.
1.7. Uninstalling JBoss EAP XP Copy linkLink copied to clipboard!
Uninstalling JBoss EAP XP removes all the files related to enabling the JBoss EAP XP 2.0.0 patch stream and the Eclipse MicroProfile 3.3 functionality. The uninstallation process does not affect anything in the base server patch stream or functionality.
The uninstallation process does not remove any configuration files, including the ones you added to the JBoss EAP XP patches when you enabled the JBoss EAP XP patch stream.
Procedure
Uninstall JBoss EAP XP 2.0.0 by issuing the following command:
java -jar jboss-eap-xp-manager.jar remove --jboss-home=/PATH/TO/EAP
$ java -jar jboss-eap-xp-manager.jar remove --jboss-home=/PATH/TO/EAPCopy to Clipboard Copied! Toggle word wrap Toggle overflow
To install Eclipse MicroProfile 3.3 functionality again, run the setup command again to enable the patch stream, and then apply JBoss EAP XP patches to add the Eclipse MicroProfile 3.3. modules.
1.8. Viewing the status of JBoss EAP XP Copy linkLink copied to clipboard!
You can view the following information with the status command:
- The status of the JBoss EAP XP stream.
- Any support policy changes due to being in the current state.
- The major version of JBoss EAP XP.
- Enabled patch streams and their cumulative patch ids.
- The available JBoss EAP XP manager commands to change the state.
JBoss EAP XP can be in one of the following states:
Not set up- JBoss EAP is clean and does not have JBoss EAP XP set up.
Set up- JBoss EAP has JBoss EAP XP set up. The version of the XP patch stream is not displays as the user can use CLI to determine it.
Inconsistent-
The files relating to the JBoss EAP XP are in an inconsistent state. This is an error condition and should not happen normally. If you encounter this error, remove the JBoss EAP XP manager as described in the Uninstalling JBoss EAP XP topic and install JBoss EAP XP again using the
setupcommand.
Procedure
View the status of JBoss EAP XP by issuing the following command:
java -jar jboss-eap-xp-manager.jar status --jboss-home=/PATH/TO/EAP
$ java -jar jboss-eap-xp-manager.jar status --jboss-home=/PATH/TO/EAPCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Additional Resources