Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-16618

[GSS](7.2.z) EE deployer adding dependency on org.eclipse.yasson which exposes messages.properties to deployments

    Details

    • Type: Bug
    • Status: Verified (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.2.0.GA
    • Fix Version/s: 7.2.1.CR1, 7.2.1.GA
    • Component/s: EE
    • Labels:
      None
    • Target Release:
    • Workaround Description:
      Hide

      If you are not using org.eclipse.yasson , then you can exclude it.
      Also you can change the name of your messages.properties to something that does not conflict.

      <?xml version="1.0" encoding="UTF-8"?>
      <jboss-deployment-structure>
      <deployment>
      <exclusions>
      <module name="org.eclipse.yasson"/>
      </exclusions>
      </deployment>
      </jboss-deployment-structure>

      Show
      If you are not using org.eclipse.yasson , then you can exclude it. Also you can change the name of your messages.properties to something that does not conflict. <?xml version="1.0" encoding="UTF-8"?> <jboss-deployment-structure> <deployment> <exclusions> <module name="org.eclipse.yasson"/> </exclusions> </deployment> </jboss-deployment-structure>
    • QE Test Coverage:
      +

      Description

      An application containing messages.properties when it tries to load it from the TCCL it is seeing the messages.properties from the yasson-1.0.1.redhat-1.jar

      <%
      System.out.println("messages.properties: " + Thread.currentThread().getContextClassLoader().getResource("messages.properties"));
      %>
      
      messages.properties: jar:file:/tmp/jboss-eap-7.2/modules/system/layers/base/org/eclipse/yasson/main/yasson-1.0.1.redhat-1.jar!/messages.properties
      

      org.jboss.as.ee.managedbean.processors.JavaEEDependencyProcessor is adding a dependency on org.eclipse.yasson , which is exposing the messages.properties as well.

                  // javax.json.bind.api (JSON-B) implementation
                  ModuleIdentifier.create("org.eclipse.yasson"),
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  soul2zimate Chao Wang
                  Reporter:
                  bmaxwell Brad Maxwell
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: