Hi Martijn,
In order to try and diagnose your problem better, could you please put
the following line in your catch statement when you catch the exception
could you and send the output to the mailing list.
e.printStackTrace();
The new <directory /> element should indeed make it easier to configure
your fonts with FOP. There is currently a new FOP 0.94 release being
prepared, so I would recommend you wait a day or so and download that
one. This would save you the time/effort involved with building your
own FOP from source. If you have extended FopServlet (rather than
modifying it directly) then I think you should be fine.
Adrian.
Martijn Laarman wrote:
Hi adrian,
Thanks for the help.
A more Java proficient colleage, who's not in the country this
week, told me i had to try/catch exceptions in Java. That seems to have
stopped eclipse telling me there is an Unhandled Exception. It still
however doesn't seem to pick up "Trebuchet MS". So were still stuck sadly,
Looking at the trunk version:
http://xmlgraphics.apache.org/fop/trunk/fonts.html
it seems that either the new <directory /> or (perhaps better)
the <auto-detect /> elements inside <fonts> could be really benificient
to us?
Is it just a matter of updating the libraries and FopServlet.class and
recompile or are there any changes in the FopServlet class that makes
our servlet code for 0.93 obsolete ?
http://xmlgraphics.apache.org/fop/trunk/upgrading.html seems to be the
same as the upgrading page for 0.93.
Thanks in advance.
On 8/23/07, *Adrian Cumiskey* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Hi Martijn,
Martijn Laarman wrote:
> Adrien Cumiskey , what exactly do you mean with "a trunk version
of FOP"
> ?
This just means you are using the 'latest and greatest' FOP code built
from the Apache source repository (rather than a recognised official
version).
It sounds like you might be running with 0.93, is this correct? It
might be worth you (just for sanities sake) testing your temp File
variable references something valid too..
File temp = new File("E:/FOPCONF/testconfig.xml");
if (temp.isFile () && temp.canRead()) {
System.out.println(temp + " is ok");
}
It would also be helpful for everyone if you could provide a full
exception stack trace for the SAXException you are experiencing when
invoking this.fopFactory.setUserConfig(temp).
Adrian.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]