The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

Lama (15) [Avatar] Offline
#1
I'm using Tomcat 7
and I get an exception says

javax.servlet.ServletException: java.lang.NoSuchMethodError: uges.servlets.MyQuery: method <init>()V not found
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:911)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:840)
org.apache.jsp.catalog_jsp._jspService(catalog_jsp.java:121)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)

I have change the useBean class attribute to QueryResult .. it has a method called runQueryStar that replaces runQuery!

Any clue will be appreciated!
Thanks
ejfried (326) [Avatar] Offline
#2
Re: is Jess 7 compatible with Tomcat 7?!
The error message suggests that Tomcat expects a class named "uges.servlets.MyQuery" to have a no-argument constructor; this is not a Jess class, of course, so Jess has nothing to do with the error.

Jess, being just a Java library which includes absolutely no Tomcat-specific (or even web-specific) code, is of course 100% compatible with any version of Tomcat, past or future. Whether the servlet example from the nearly ten-year-old "Jess in Action" will still run in modern versions of Tomcat is another question altogether, and one to which I do not know the answer.