ao executar as linhas abaixo me dá erro na linha byte[]
em anexo ao projeto somente tem o jar --> jasperreports-3.0.0.jar para o jasper …
Está faltando algo ???
se alguém puder meau ajudar ???
abs
File reportFile = new File("C:\\desenvolvimento\\Workspaces\\Relatorio\\reports\\Grupo001.jasper");
Map parameters = new HashMap();
parameters.put("tipo_grupo", Long.valueOf(request.getParameter("tipo_grupo")));
byte[] bytes = JasperRunManager.runReportToPdf("C:\\desenvolvimento\\Workspaces\\Relatorio\\reports\\Grupo001.jasper",parameters,con);
response.setContentType("application/pdf");
response.setContentLength(bytes.length);
erro:
12:42:26,312 INFO SessionFactoryImpl:769 - closing
09/02/2009 12:42:26 org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet action threw exception
java.lang.NoClassDefFoundError: com/lowagie/text/pdf/FontMapper
at net.sf.jasperreports.engine.JasperExportManager.exportReportToPdf(JasperExportManager.java:183)
at net.sf.jasperreports.engine.JasperRunManager.runReportToPdf(JasperRunManager.java:205)
at br.com.certisign.relatorio.action.R01Action.execute(R01Action.java:49)
at br.com.certisign.relatorio.servlet.ServletAction.service(ServletAction.java:28)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)