Patching overrides modified module.xml. How to preserve it?

Solution Unverified - Updated -

Issue

If modules from EAP are modified like following files, it will be overrided after patching.

/jboss-eap/jboss-eap-6.2/modules/system/layers/base/org/jboss/as/remoting/main/module.xml
/jboss-eap/jboss-eap-6.2/modules/system/layers/base/org/jboss/as/server/main/module.xml

Is there a way to preserve the files?

Environment

Red Hat JBoss Enterprise Application Platform
- 6.2.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content