Type Exception Report
Message Servlet execution threw an exception
Description The server encountered an unexpected condition that prevented it from fulfilling the request.
Exception
javax.servlet.ServletException: Servlet execution threw an exception
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
Root Cause
java.lang.NoClassDefFoundError: com/sun/jna/Pointer
io.woo.htmltopdf.HtmlToPdf.convert(HtmlToPdf.java:246)
com.wmdc.attendance.GeneratePDF.doGet(GeneratePDF.java:64)
javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
Note The full stack trace of the root cause is available in the server logs.
I'm using Apache Tomcat 9 as a web server for my web application.
I tested the example code of yours in the README:
gives me Internal Server Error:
How do I fix this? Thank you