Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-4317

JBoss Module does not add package "org.jcp.xml.dsig.internal" as system package

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 8.2.0.Final
    • Class Loading
    • None

      The package "org.jcp.xml.dsig.internal" was included in both JDK 7 and JDK 8, but it is not added as a system package in jboss-module.

      So, if we do this:

      String providerName = System.getProperty("jsr105Provider", "org.jcp.xml.dsig.internal.dom.XMLDSigRI");
      XMLSignatureFactory fac =
      XMLSignatureFactory.getInstance("DOM", (Provider) Class.forName(providerName).newInstance());

      We cannot find this "org.jcp.xml.dsig.internal.dom.XMLDSigRI" at runtime.

      The current workaround is to hack "standalone.conf" file, added "org.jcp.xml.dsig.internal" package after package "org.jboss.byteman".

      if [ "x$JBOSS_MODULES_SYSTEM_PKGS" = "x" ]; then
      JBOSS_MODULES_SYSTEM_PKGS="org.jboss.byteman,org.jcp.xml.dsig.internal"
      fi

              dlloyd@redhat.com David Lloyd
              xiexiaodong Xiaodong Xie (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: