tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Mixon (qwest)" <rnmi...@qwest.net>
Subject RE: Error FOP/BATIK ... PDFXMLHandler:253 - svg graphic could not be built"
Date Thu, 03 Feb 2005 16:48:24 GMT
Bingo! That was it. I changed it from "file://" to "file:///" and all
works now. You earlier mentioned that might be it - but I was so focused
on the fact that it worked on Java 1.4.1 that I figured I had it
correctly.

That is weird though that moving past Java 1.4.1 breaks this.

Thank you once again, very much - Richard


Thomas DeWeese wrote:
> Hi Richard,
>
>     What is 'imageURLProtocol'  I'm guessing it's "file://"
> I think it should be either "file:///" or "file:/".
>
> Richard Mixon (qwest) wrote:
>
>> Thomas DeWeese wrote:
>>
>>> Richard Mixon (qwest) wrote:
>>>
>>>
>>>> I checked my SVG markup and am not sure how I would change this as
>>>> I'm using an xlink:href. Here is an example:
>>>>
>>>>       xlink:href="images/allTimeBest/<c:out
>>>> value="${cmSummary.allTimeBestIcon}"/>"
>>>
>>>    This means that it is using the base URL for the document
>>> to resolve the image reference.  The base URL for the
>>> document would be provided when you parse the document.
>>
>>
>> I have set the base directory as follows:
>>
>>   String httpBaseDir = ".";
>>   imageURLProtocol = getInitParameter("imageURLProtocol");
>>   String baseDir = this.getServletContext().getRealPath(httpBaseDir);
>>   userAgent = new FOUserAgent();
>>   userAgent.setBaseURL(imageURLProtocol+baseDir);
>>   log.info("init - setting httpBaseDir='"+httpBaseDir+"',
>> baseDir='"+baseDir+"'");
>>
>> Here is the output from the last "log" statement:
>>
>>   09:20:23,646  INFO [main] SVG2PDFServlet:112 - init - setting
>> httpBaseDir='.', baseDir='c:\jakarta-tomcat-5.5.7\webapps\stars\.'
>>
>> I think I am setting this base directory correctly. Maybe not?
>
>> 09:20:56,146 ERROR [TP-Processor2] PDFXMLHandler:253 - svg graphic
>> could not be built: file://c:/jakarta-tomcat-5.5.7/webapps/stars/.:-1
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message