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

Problems in enabling XSLT 2.0 processor via saxon TransformerFactory

    XMLWordPrintable

Details

    Description

      I have experienced the following issue, executing a JBoss EAP 7.2 or 7.3 session
      in a jdk 8 runtime environment.

      In my web application, I need to use Saxon TransformerFactory to manage XSLT 2.0 transformation, and in order to do it I have created a custom module (in attachment its module.xml file), containing the necessary saxon libraries and additional common libraries
      useful for my web application.

      Unlike what happened wih JBoss EAP 6.2 session that ended successfully, I have
      experienced that JBoss EAP 7.x sessions unexpectedly load xalan TransformerFactory library, which manages up to XSLT 1.0 transformation, and as a result I have got the following error:
      "javax.xml.transform.TransformerException: org.xml.sax.SAXException: Impossibile trovare la funzione: current-dateTime", which implies missing functions which are made available
      by saxon libraries and are not by xalan library.

      As a further attempt, I have tried forcing the "org.apache.xalan" module exclusion, writing the exclusion tag in the web application jboss-deployment-structure.xml file, but I have got the following unexpected warning message, which would seem to highlight some
      trouble regarding the handling of such module in JBossEAP 7.x
      "WFLYSRV0274: Excluded dependency org.apache.xalan via jboss-deployment-structure.xml does not exist."

      Please, may you kindly give useful hints to handle this unexpected behaviour or arrange a proper fix for the issue?

      Here attached the following files:

      1) module.xml file for my JBoos EAP 7.3 custom module
      2) My web application specific jboss-deployment-structure.xml file

      Attachments

        1. JBEAP-19374.url
          0.1 kB
        2. jboss-deployment-structure.xml
          0.5 kB
        3. module.xml
          0.9 kB

        Activity

          People

            jmesnil1@redhat.com Jeff Mesnil
            lory_lorenz Losio Lorenzo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: