Rf. : [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: Rf. : [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.

    Frdric 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 rpondre [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,

    Frdric 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