You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Yury Luneff <bi...@ya.ru> on 2010/02/10 17:41:52 UTC

what is classpath of running tapestry application?

I'm  trying to have jasperreports integrated in my application and the
thing  is  that  I  must  point out the font file for jasperreports to
render cyrillic.

I do this by:
<style name="Arial_Normal" isDefault="true" fontName="Arial" fontSize="8"
isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"
pdfFontName="Arial.ttf" pdfEncoding="utf-8" isPdfEmbedded="true"/>

The main attribute is, of cource, "pdfFontName".

In  standalone  jasper  generator  iReport  everything  works  fine as
"arial.ttf"   is   placed   under   src/main/resources/arial.ttf   and
src/main/resources is manually placed in classpath.

In  working  tapestry  application  this  file  goes  from  src/..  to
WEB-INF/classes/arial.ttf   (and  I've  thought  that  is  enough  for
"arial.ttf" to be considered as being exist in classpath).

But  during  report  generation  this  file  is not found and thus all
cyrillic characters are silently stripped.

(thoughts  while  writing:  log4j  for  jasperreports internals to see
exact path list, maybe).

I  would  like some thoughts about "What is considered to be classpath
in running tapestry application?" (the one listed on exception page is
not quite right) and "how to reference a file placed in that classpath
in  files  that  are not managed by tapestry?". And all other thoughts
you may put about my problem :)


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: what is classpath of running tapestry application?

Posted by Yury Luneff <bi...@ya.ru>.
it  seemed  i  did  not  actually  overcome  font  problem  in ireport
standalone  so happy night hacking russian fonts in the world in fully
internationalized java apps ;(


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: what is classpath of running tapestry application?

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Wed, 10 Feb 2010 14:41:52 -0200, Yury Luneff <bi...@ya.ru> wrote:

> I  would  like some thoughts about "What is considered to be classpath
> in running tapestry application?"

Absolutely the same classpath for any other Java web application.

> (the one listed on exception page is
> not quite right) and "how to reference a file placed in that classpath
> in  files  that  are not managed by tapestry?".

Tapestry only manages classes in the pages, components, mixins and base  
packages, nothing beyond that.
Make sure you're including the font file correctly, regardless of using  
JasperReports in a Tapestry application or not.

-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, software architect and developer, Ars Machina Tecnologia da  
Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org