Could not initialize class net.sf.jasperreports.engine.util.JRLoader

carlosma
carlosma used Ask the Experts™
on
I'm getting this message and couldn't find where is the error?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2016

Commented:

Author

Commented:
avax.servlet.ServletException: javax.servlet.ServletException: Servlet execution threw an exception
      br.gov.senado.sigraf.diversos.HibernateSessionFilter.doFilter(HibernateSessionFilter.java:39)

root cause

javax.servlet.ServletException: Servlet execution threw an exception
      br.gov.senado.sigraf.diversos.HibernateSessionFilter.doFilter(HibernateSessionFilter.java:31)

root cause

java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRLoader
      br.gov.senado.sigraf.data.CriaRelatorio.RelatorioOS(CriaRelatorio.java:34)
      br.gov.senado.sigraf.servlet.Relacao_do_Relatorio.doGet(Relacao_do_Relatorio.java:51)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      br.gov.senado.sigraf.diversos.HibernateSessionFilter.doFilter(HibernateSessionFilter.java:31)
Top Expert 2016
Commented:
Make sure you include the jasper reports jar and its dependencies in WEB-INF/lib of your web app
Top Expert 2016

Commented:
:)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial