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

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.2.1.CR1, 7.2.1.GA
    • 7.2.0.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>

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

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

              Created:
              Updated:
              Resolved: