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]