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

    XMLWordPrintable

Details

    • Bug
    • Status: Verified (View Workflow)
    • Major
    • Resolution: Done
    • 7.2.0.GA
    • 7.2.1.CR1, 7.2.1.GA
    • EE
    • None
    • +
    • 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>

    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"),
      

      Attachments

        Issue Links

          Activity

            People

              chaowan@redhat.com Chao Wang
              rhn-support-bmaxwell Brad Maxwell
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: