Hi Eddie,

Thanks for your reply. But it did not work
I am getting the following exception:
javax.xml.transform.TransformerException: java.io.FileNotFoundException:
(The filename, directory name, or volume label syntax is incorrect)

the jar file is at
the application in which i imported jar fle is

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.


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


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.

Imran Khan

Best regards
Eddie Mc Greal
Imilia – Interactive Mobile Applications GmbH.
Garystrasse 94,
14195 Berlin

Phone: int+ 49 (0)30 84591573
Mobile: int + 49 (0) 170 5547619

Reply via email to