EAP 6.2.1 patch corrupts patched modules
Hi,
I tried to install the EAP 6.2.1 patch via cli. According to CLI the patch was applied successfully and when I restart the JBoss it is coming up with 6.2.1 version. The problem is, that the original .jar files of the patched modules are corrupted now (can not be opened with a zip tool any more). An example is "modules\system\layers\base\org\apache\santuario\xmlsec\main\xmlsec-1.5.5.redhat-2.jar". This gives compile errors in JBDS when using the JBoss container. The environment is Windows 7 with JDK 1.7. Is there any solution to this problem?
Thanks,
Mario
Responses
Hi Mario
The patch tool does indeed "corrupt" the original JAR, this is by design [1]
What you'll need to do is download the source for the patch [2] and make sure JBDS checks the source for these instead of the now corrupted files.
I hope this help.
Mustafa
[1] https://github.com/jbossas/jboss-eap/blob/6.2.x/patching/src/main/java/org/jboss/as/patching/runner/PatchModuleInvalidationUtils.java#L144
[2] https://access.redhat.com/jbossnetwork/restricted/softwareDetail.html?softwareId=28083&product=appplatform&version=6.2.0&downloadType=patches
The url in [1] above seems invalid currently.
Please refer to patching/src/main/java/org/jboss/as/patching/runner/PatchModuleInvalidationUtils.java in jboss-eap-6.2.0-src.zip instead.
Or please refer to wildfly's source code instead. The current implementation is same to EAP 6.2.0 one.
Is there any explanation for why the jar files are invalidated? Or which jar files to use instead?
We use for example the org.jboss.as.cli.CommandContext class from the system\layers\base\org\jboss\as\cli\main module (jboss-as-cli-7.3.0.Final-redhat-14.jar).
The modules should not be used. It is an internal implementation detail.
The modules directory should not be used to build applications and clients should not depend on that.
If you build applications you should use the provided maven repositories.
A client should use the provided libraries from bin/client folder
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
