Réf. : [xep-support] xsl:include - javax.xml.transform.TransformerException: Had IO Exception with stylesheet file: ergoDesjardins.xsl

From: frederic.ouellet@desjardins.com
Date: Wed Oct 20 2004 - 07:03:03 PDT

  • Next message: Alexander Peshkov: "[xep-support] Re: Réf. : [xep-support] xsl:include - javax.xml.transform.TransformerException: Had IO Exception with stylesheet file: ergoDesjardins.xsl"

    Restart my need...

    Does the support can help me?

    Here it is:

    Causé par: org.xml.sax.SAXException: Exception d?E/S avec le fichier de feuille de style : /res/gabarit/pres/xsl/ergoDesjardins.xsl
          à org.apache.xalan.processor.StylesheetHandler.error(StylesheetHandler.java:891)
          à org.apache.xalan.processor.StylesheetHandler.error(StylesheetHandler.java:919)
          à org.apache.xalan.processor.ProcessorInclude.parse(ProcessorInclude.java:316)
          à org.apache.xalan.processor.ProcessorInclude.startElement(ProcessorInclude.java:189)
          à org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetHandler.java:656)
          à weblogic.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:459)
          à weblogic.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:221)
          à weblogic.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBinder.java:874)
          à weblogic.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.java:591)
          à weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:747)
          à weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
          à weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
          à weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
          à weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
          à weblogic.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
          à weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
          à weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135)
          à weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:138)
          à org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:934)
          à org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:750)
          à weblogic.xml.jaxp.WebLogicTransformerFactory.newTransformer(WebLogicTransformerFactory.java:195)
          à weblogic.xml.jaxp.RegistryTransformerFactory.newTransformer(RegistryTransformerFactory.java:209)
          à com.renderx.xep.FOTransformer.createTransformer(Unknown Source)
          à com.renderx.xep.FOTransformer.<init>(Unknown Source)
          à fcdq.tiinap.infra.commun.generationpdf.GenerateurPDF.generePDF(GenerateurPDF.java:107)
          à fcdq.tiinap.infra.presdesj.gabarit.GestGabaritPDF.construirePDF(GestGabaritPDF.java:97)
          à fcdq.tiinap.infra.presdesj.servlet.GenerateurReponsePDF.produireReponseNormale(GenerateurReponsePDF.java:254)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.construireReponse(ServletAiguilleur.java:230)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.produireReponseErreur(ServletAiguilleur.java:2077)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.produireReponse(ServletAiguilleur.java:1812)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.traiterRequeteHttp(ServletAiguilleur.java:2182)
          à fcdq.tiinap.infra.presdesj.servlet.ServletAiguilleur.doGet(ServletAiguilleur.java:317)
          à javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
          à javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          à weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
          à weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
          à weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
          à weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
          à fcdq.tiinap.infra.commun.servletfilter.ServletFilterBase.doFilter(ServletFilterBase.java:267)
          à weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
          à weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6356)
          à weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
          à weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
          à weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
          à weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
          à weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
          à weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

    In the ear of the application, the classpath for ressources is res... so, I have tried a lot of path to include this in my xsl:

          <xsl:include href="ergoDesjardins.xsl"/>
          <xsl:template match="ERREUR_PDF">

    I have tried to pass the props BASE with my classpath for resources, but I have received a malformed url exception.

    This FoTransformer will be deploy on 4 cluster in staging and none-staging mode. So, I cannot put all the path like this: mydomain/webapp/andsoon.

    It is really annoying to pass 8 hours to include a file that don't want to be include... I hope XEP will give good support for this concern and I suggest to put this
    case in a well documented area. On the internet, google give 10 pages for this kind of error... and generally, the answer is to put the complete url. I cannot do
    this. I want to put a relative path.

    Please, take time to answer those concerns.

    Frédéric Ouellet

                                                                                                                                                                              
                 frederic.ouellet@desjardins.com
                 Envoyé par : owner-xep-support@renderx.com
                                                                                                                                                                         Pour
                                                                                 xep-support@renderx.com
                 2004-10-19 15:11 cc
                                                                                                                                                                              
                                                                                                                                                                        Objet
                                   Veuillez répondre à [xep-support] xsl:include - javax.xml.transform.TransformerException: Had IO Exception with
                                 xep-support@renderx.com stylesheet file: ergoDesjardins.xsl
                                                                                                                                                                              
                                                                                                                                                                              
                                                                                                                                                                              
                                                                                                                                                                              
                                                                                                                                                                              
                                                                                                                                                                              

    Hello everybody,

    I have some problems with the include of a xsl to do attribute-set. When I generated my PDF with XMLSpy (xml and xsl), everthing is good and smooth. When I do the same
    with my pdf generator services (in java), this exception is throw:

    javax.xml.transform.TransformerException: Had IO Exception with stylesheet file: ergoDesjardins.xsl

    I have change the location of the include file:

    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
          <xsl:include href="./general/ergoDesjardins.xsl"/>
          <xsl:template match="ERREUR_PDF">

    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
          <xsl:include href="general/ergoDesjardins.xsl"/>
          <xsl:template match="ERREUR_PDF">

    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
          <xsl:include href="ergoDesjardins.xsl"/>
          <xsl:template match="ERREUR_PDF">

    There are all good in XmlSpy and all wrong with my FoTransformer.

    I have search the doc and google, but I didn't find evidence of the trouble.

    I hope you know what I have missed. Please, help me to find out!

    Best regards,

    Frédéric Ouellet

    -------------------
    (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    in the body of the message to majordomo@renderx.com from the address
    you are subscribed from.
    (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html

    -------------------
    (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    in the body of the message to majordomo@renderx.com from the address
    you are subscribed from.
    (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



    This archive was generated by hypermail 2.1.5 : Wed Oct 20 2004 - 07:23:02 PDT