Search code examples
javajsptomcatjasper-reportsclassnotfoundexception

Jasperreports-6.3.0 Webapp sample compile throws exception


I'm trying to test the webapp sample of the JasperReport Library. I load the war into eclipse, Tomcat v8.0 Server. Also, I can run it, and view index page. But to test this app, the first step is to compile the JRXML.

But, I can't because throws some exceptions:

  • JSP Example:

scriptlets.WebappScriptlet cannot be resolved to a type

  • Servlet Example:

javax.servlet.ServletException: Error instantiating servlet class servlets.CompileServlet java.lang.ClassNotFoundException: servlets.CompileServlet

You can see these classes into src folder:

Project structure


Solution

  • Maybe a bug in 6.3.0 version.

    Resolved in 6.3.1 version. You can download from here.