If you are upgrading from 1.1.3 or from 1.1.4dev (first dev release), you must make three changes to
dbforms-config.xml
.
These changes need to be made to the
<servlet-class>
element only and the
<servlet-name>
can remain as it is in your
dbforms-config.xml
file.
From:<servlet-name>config</servlet-name>
<servlet-class>org.dbforms.ConfigServlet</servlet-class>
To:<servlet-name>config</servlet-name>
<servlet-class>org.dbforms.servlets.ConfigServlet</servlet-class>
From:<servlet-name>control</servlet-name>
<servlet-class>org.dbforms.Controller</servlet-class>
To:<servlet-name>control</servlet-name>
<servlet-class>org.dbforms.servlets.Controller</servlet-class>
From:<servlet-name>file</servlet-name>
<servlet-class>org.dbforms.util.FileServlet</servlet-class>
To:<servlet-name>file</servlet-name>
<servlet-class>org.dbforms.servlets.FileServlet</servlet-class>
Not doing so will result in an error message:
java.lang.ClassCastException at org.dbforms.taglib.DbFormTag.setPageContext(DbFormTag.java:1087) at org.apache.jsp.menu_jsp._jspService(menu_jsp.java:91) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)...
Similarly, to use JapsperReports please adjust the <servlet-class>
to be:
<servlet> <servlet-name>startreport</servlet-name> <display-name>startreport</display-name> <servlet-class>org.dbforms.servlets.StartReportServlet</servlet-class> </servlet>