File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Jasper Reports and the Lib Folder of a Web Project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Jasper Reports and the Lib Folder of a Web Project" Watch "Jasper Reports and the Lib Folder of a Web Project" New topic
Author

Jasper Reports and the Lib Folder of a Web Project

Michele Smith
Ranch Hand

Joined: Oct 27, 2010
Posts: 412
Hello: I inherited a web application and am trying to build it. I recently installed JasperSoft Studio 5.5.0 final on my developer machine. I also have Eclipse Juno on my developer machine. I was advised by the previous developer to put some of his Jasper .jar files into my web app's lib folder. I did do this and now the localhost will not run, it is generating this error:

org.apache.jasper.JasperException: java.lang.NullPointerException
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:502)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:430)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)

I went out to the lib folder and saw these files:

jasperreports-5.1.2
jasperreports-applet-5.1.2
jasperreports-expressions-1.0.0
jasperreports-exprfunction-1.0.0
jasperreports-fonts-5.1.2
jasperreports-javaflow-5.1.2

The version on them would appear incorrect given my version of 5.5. I am new to Jasper Reports. I suppose I could google on the .jar files and get the ones that belong to the 5.5.0 final and put them into the directory to see if Apache Tomcat 6.0.39 likes that better. And then start the server. If it doesn't like them, I guess I could remove them and continue, but I would prefer to have the Jasper Reports up and running.

My second question about the Jasper Reports is how do you tell the IDE where the Reports are located?

Thanks,
Michele
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19653
    
  18

Although I would definitely match the Jasper versions, I don't think the NullPointerException is related to the version of Jasper Reports. Althought the stack trace mentions Jasper, that's the Tomcat JSP implementation. You have a NullPointerException occurring in your JSP, you just need to figure out where.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

Yes, to emphasize, org.apache.jasper, is the Tomcat JSP engine, it is not part of Jasper Reports. Just an unfortunate naming collision.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Consider Paul's rocket mass heater.
 
subject: Jasper Reports and the Lib Folder of a Web Project
 
Similar Threads
Help with Reporting on the Client
struts2 jasperreports showing garbage in browser
Using Jasper Reports
jasper report not display in web project
JasperReport problem