Imran, The path to the file is definitely incorrect. You¹ve got a concatenation of paths that is not a valid URL. It seems to think the path file:\E:\JodhpurVidushi\RulesDict\xml_pdf_covertor\bin\convertor.jar!\com\xm ltopdf\convertor\honeywell.xsl is relative to E:\JodhpurVidushi\RulesDict\testxml Can you post the code where you specify the xsl URL maybe someone else can shed some light on this.
Eddie On 05/12/2006 10:46, "Imran Khan" <[EMAIL PROTECTED]> wrote: > Hi Eddie, > > Thanks for your reply. But it did not work > I am getting the following exception: > org.apache.fop.apps.FOPException: > javax.xml.transform.TransformerConfigurationException: > javax.xml.transform.TransformerException : java.io.FileNotFoundException: > E:\JodhpurVidushi\RulesDict\testxml\file:\E:\JodhpurVidushi\RulesDict\xml_pdf_ > covertor\bin\convertor.jar!\com\xmltopdf\convertor\honeywell.xsl (The > filename, directory name, or volume label syntax is incorrect) > > the jar file is at > \E:\JodhpurVidushi\RulesDict\xml_pdf_covertor\bin\convertor.jar > the application in which i imported jar fle is > E:\JodhpurVidushi\RulesDict\testxml\ > > the xsl file is under \com\xmltopdf\convertor\honeywell.xsl in jar. > > > > > On 12/5/06, Eddie Mc Greal <[EMAIL PROTECTED]> wrote: >> Hi Imran, >> >> I had a similar problem and it turned out to be spaces in the path name where >> the war file was deployed. >> That may be the issue in any case you can rename your jar file to zip and >> then browse it to make sure the file is included. >> >> Eddie >> >> >> >> >> >> On 05/12/2006 10:19, "Imran Khan" <[EMAIL PROTECTED]> wrote: >> >>> >>> >>> ---------- Forwarded message ---------- >>> From: Imran Khan <[EMAIL PROTECTED]> >>> Date: Dec 5, 2006 2:15 PM >>> Subject: Help >>> To: [EMAIL PROTECTED] >>> >>> Hi, >>> >>> I am using FOP jar for transforming a XML file to a PDF file. In the >>> Application i am using an XSL file for the transformation purpose. >>> The xsl file is used as a resouce within the application. >>> The application is bulit and run sucessfully. Note: XSL file is under the >>> same package as class which converts xml to pdf and the class is using the >>> xsl file internally using getClass.getResource(XSLT_FILE_NAME).getPath(). >>> >>> >>> >>> Now i make the jar of the above application and import the jar to a new >>> application and call the class for transforming a xml at a given location to >>> the pdf . But this time it could not find the xsl file within the jar. >>> What could be the possible solution to the above problem. It throws >>> FileNotFoundException for xslt. >>> >>> Thanks >>> Imran Khan >>> >>> >> >> >> Best regards >> Eddie Mc Greal >> Imilia Interactive Mobile Applications GmbH. >> Garystrasse 94, >> 14195 Berlin >> Germany >> >> Phone: int+ 49 (0)30 84591573 >> Mobile: int + 49 (0) 170 5547619 >> [EMAIL PROTECTED] >> > > Best regards Eddie Mc Greal Imilia Interactive Mobile Applications GmbH. Garystrasse 94, 14195 Berlin Germany Phone: int+ 49 (0)30 84591573 Mobile: int + 49 (0) 170 5547619 [EMAIL PROTECTED]