Jump to content

new font not available in the webserver glassfish


magsam

Recommended Posts

I have configure new font family  in JasperSoft Studio 6.4.0 .. It works all fine when I generate the report  in Jasper Studio. I saved the jar in the classpath variables of my webproject - I use eclipse oxygen. When I start the report in my webapplication I get the bug:         context net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression for source text: $F{Adressen}    .   The report has no path to the new font. How can I make the path to the new font available.?

Thanks for the help

 

Regards 

Peter

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Thank you for yout advice. I have done exactly like it‘s written in chapter 9. It works fine in jasper standalone. In combination with my webapplication i get now this message



Information: context net.sf.jasperreports.engine.util.JRFontNotFoundException: Font "Arial Unicode MS" is not available to the JVM. See the Javadoc for more details. It is in the JVM of Jasper but not im the webapp

[/code]

Some more details.



 The maven dependency



<dependency>



<groupId>net.sf.jasperreports</groupId>



<artifactId>jasperreports</artifactId>



<version>6.4.1</version>



</dependency>



<dependency>



<groupId>net.sf.jasperreports</groupId>



<artifactId>jasperreports-fonts</artifactId>



<version>6.0.0</version>



</dependency>



I call jasper with



final JasperPrint jasperPrint = JasperFillManager



.fillReport(dateinameA, hm, gCon);



// Export to PDF.



JasperExportManager.exportReportToPdfFile(jasperPrint,



outFileName);



Jasper calls   C:UserspeterJaspersoftWorkspaceMyReports



No connection to the font.



The „Arial Unicode MS.jar“ is stored in the Java Build Path of my project.



Here you can see jasper combined with primefaces in my web app.



Call http://osretail.de/osRetail/ choose Sprache (language) english, login ,choose in the menue reports, click on report and in this dialog click on the button beside the dropdownlist (dont change the dropdownlist).



Now you will understand my problem. Maybe you have a tipp.



regards from Bavaria



 



Peter


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...