fonts file in version 1.1.0

Hi,

I use a specific font file (ARIALUNI.TTF) for the PDF. In version 1.0.1 i put the file in WEB-INF/lib and it works fine.

In version 1.1.0, it doesn't work. Where I have to put the font file ? See the Exception :

Code:
<br />
org.springframework.webflow.ActionExecutionException: Exception thrown executing [AnnotatedAction@171a1a4 targetAction = com.jaspersoft.jasperserver.war.action.ReportPdfExporter@12b3893, attributes = map['method' -> [MethodSignature@11e34c7 methodName = 'export', parameters = [Parameters@92e158 parameters = list[[empty]]]]]] in state 'pdfExport' of flow 'viewReportFlow'; nested exception is com.jaspersoft.jasperserver.api.JSExceptionWrapper: net.sf.jasperreports.engine.JRException: Could not load the following font : pdfFontName : ARIALUNI.TTF pdfEncoding : Identity-H isPdfEmbedded : true<br />
<br />
org.springframework.webflow.ActionExecutionException: Exception thrown executing [AnnotatedAction@171a1a4 targetAction = com.jaspersoft.jasperserver.war.action.ReportPdfExporter@12b3893, attributes = map['method' -> [MethodSignature@11e34c7 methodName = 'export', parameters = [Parameters@92e158 parameters = list[[empty]]]]]] in state 'pdfExport' of flow 'viewReportFlow'; nested exception is com.jaspersoft.jasperserver.api.JSExceptionWrapper: net.sf.jasperreports.engine.JRException: Could not load the following font : <br />
pdfFontName   : ARIALUNI.TTF<br />
pdfEncoding   : Identity-H<br />
isPdfEmbedded : true<br />
com.jaspersoft.jasperserver.api.JSExceptionWrapper: net.sf.jasperreports.engine.JRException: Could not load the following font : <br />
pdfFontName   : ARIALUNI.TTF<br />
pdfEncoding   : Identity-H<br />
isPdfEmbedded : true<br />
	at net.sf.jasperreports.engine.export.JRPdfExporter.getChunk(JRPdfExporter.java:1389)<br />
	at net.sf.jasperreports.engine.export.JRPdfExporter.getPhrase(JRPdfExporter.java:1311)<br />
	at net.sf.jasperreports.engine.export.JRPdfExporter.exportText(JRPdfExporter.java:1631)<br />
	at net.sf.jasperreports.engine.export.JRPdfExporter.exportElements(JRPdfExporter.java:559)<br />
	at net.sf.jasperreports.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:523)<br />
	at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:488)<br />
	at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:271)<br />
	at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl.exportToPdf(EngineServiceImpl.java:255)<br />
	at com.jaspersoft.jasperserver.war.action.ReportPdfExporter.export(ReportPdfExporter.java:42)<br />
	at com.jaspersoft.jasperserver.war.action.AbstractReportExporter.exportBuffered(AbstractReportExporter.java:123)<br />
	at com.jaspersoft.jasperserver.war.action.AbstractReportExporter.export(AbstractReportExporter.java:72)<br />
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)<br />
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)<br />
	at java.lang.reflect.Method.invoke(Unknown Source)<br />
	at org.springframework.webflow.util.DispatchMethodInvoker.invoke(DispatchMethodInvoker.java:231)<br />
	at org.springframework.webflow.action.MultiAction.doExecute(MultiAction.java:141)<br />
	at org.springframework.webflow.action.AbstractAction.execute(AbstractAction.java:67)<br />
	at org.springframework.webflow.AnnotatedAction.execute(AnnotatedAction.java:208)<br />
	at org.springframework.webflow.ActionExecutor.execute(ActionExecutor.java:54)<br />
	at org.springframework.webflow.ActionList.execute(ActionList.java:162)<br />
	at org.springframework.webflow.State.enter(State.java:200)<br />
	at org.springframework.webflow.Transition.execute(Transition.java:224)<br />
	at org.springframework.webflow.TransitionableState.onEvent(TransitionableState.java:105)<br />
	at org.springframework.webflow.Flow.onEvent(Flow.java:545)<br />
	at org.springframework.webflow.execution.impl.FlowExecutionControlContextImpl.signalEvent(FlowExecutionControlContextImpl.java:199)<br />
	at org.springframework.webflow.execution.impl.FlowExecutionImpl.signalEvent(FlowExecutionImpl.java:239)<br />
	at org.springframework.webflow.executor.FlowExecutorImpl.signalEvent(FlowExecutorImpl.java:177)<br />
	at org.springframework.webflow.executor.support.FlowRequestHandler.handleFlowRequest(FlowRequestHandler.java:100)<br />
	at org.springframework.webflow.executor.mvc.FlowController.handleRequestInternal(FlowController.java:198)<br />
	at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)<br />
	at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:45)<br />
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:792)<br />
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:726)<br />
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:396)<br />
	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:360)<br />
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)<br />
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)<br />
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)<br />
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br />
	at com.jaspersoft.jasperserver.war.common.UploadMultipartFilter.doFilter(UploadMultipartFilter.java:83)<br />
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)<br />
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br />
	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)<br />
	at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)<br />
	at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)<br />
	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)<br />
	at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)<br />
	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)<br />
	at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)<br />
	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)<br />
	at com.jaspersoft.jasperserver.api.metadata.user.service.impl.MetadataAuthenticationProcessingFilter.doFilter(MetadataAuthenticationProcessingFilter.java:134)<br />
	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)<br />
	at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:181)<br />
	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)<br />
	at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:217)<br />
	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)<br />
	at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:191)<br />
	at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)<br />
	at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)<br />
	at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:90)<br />
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)<br />
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br />
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)<br />
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)<br />
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)<br />
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)<br />
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)<br />
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)<br />
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)<br />
	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)<br />
	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)<br />
	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)<br />
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)<br />
	at java.lang.Thread.run(Unknown Source)<br />
<br />
        <br />
</td></tr></tbody></table><br>Post edited by: babarincairo, at: 2006/11/06 07:41
babarincairo's picture
Joined: Sep 10 2006 - 11:59pm
Last seen: 17 years 2 weeks ago

1 Answer:

OK, I found the rigth directory. You have to put your font files in /WEB-INF/classes
Post edited by: babarincairo, at: 2006/11/06 14:15
babarincairo's picture
Joined: Sep 10 2006 - 11:59pm
Last seen: 17 years 2 weeks ago
Feedback
randomness