Jasper Reports with VWP

View: New views
1 Messages — Rating Filter:   Alert me  

Jasper Reports with VWP

by gordonwj :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am using Netbeans 6.1 and the iReport 3.1.2 plugin. I can visually design a report but when I try to run it (following the suggestions in Heffelfinger's book JasperReports for java Developers) I keep getting this error:

java.lang.NoClassDefFoundError
        at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:147)
        at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:57)
        at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:402) ...

The code I am using that generates this error is as follows, where filename is a valid name
path to a .jasper file:

      ExternalContext extContext = FacesContext.getCurrentInstance().getExternalContext();
      HttpServletResponse response = (HttpServletResponse) extContext.getResponse();
      InputStream inStream = extContext.getResourceAsStream(filename);
      ServletOutputStream outStream = response.getOutputStream();
      JasperFillManager.fillReport(inStream, new HashMap(), conn);

I have used the plug-in manager to add the iReport and jasperreports nbm plugins, and have
manually added the commons-logging, commons-digester, commons-beanutils, and itext libraries.

What else do I need to load in my classpath?