You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Toulson, Simon" <si...@csfb.com> on 2002/06/24 13:08:18 UTC

Loading FOP userconfig file from EAR

I am using fop 0.20.3 as part of a web server application, distributed as an EAR file,  running under weblogic 6.1.  Unfortunately we are not able to distribute the application to our production servers in any other form.  We have our own userconfig.xml file which specifies the fonts used by Fop.  Unfortunately the loading of this file always fails.  
The userconfig.xml file is passed to the Options.loadUserconfiguration() static method as a string. Having a quick look at the Fop source code, a File object is created, which I think results in weblogic being unable to load the file. Are there any plans to overload the Options.loadUserconfiguration() method to pass in an InputStream, or any other alternatives that would allow the userconfig.xml file to be loaded from an EAR file ?   
regards,


Simon
--
Simon Toulson
CREDIT | FIRST			
SUISSE | BOSTON			
Equity Capital Markets IT, London	Direct:	+44-207-888-5268


This message is for the named person's use only. It may contain sensitive and private proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you are not the intended recipient, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. CREDIT SUISSE GROUP and each legal entity in the CREDIT SUISSE FIRST BOSTON or CREDIT SUISSE ASSET MANAGEMENT business units of CREDIT SUISSE FIRST BOSTON reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity.
Unless otherwise stated, any pricing information given in this message is indicative only, is subject to change and does not constitute an offer to deal at any price quoted. Any reference to the terms of executed transactions should be treated as  preliminary only and subject to our formal written confirmation.



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: Loading FOP userconfig file from EAR

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Toulson, Simon wrote:
> We have our own userconfig.xml file which specifies the fonts used by Fop.
 > Unfortunately the loading of this file always fails.

That's easy to see, the userconfig has to be a real file.

You can essentially try to copy what is in
  Options.loadUserconfiguration(File userConfigFile),
substitute
  new InputSource(<your classloader>.getRessourceAsStream(...))
or something for
  InputHandler.getFileInputSource(...)

> This message is for the named person's use .....
Oh no!

HTH
J.Pietschmann



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org