[opencms-dev] Impossible to use jsp declarations ?

Nicolas Delsaux nicolas.delsaux at online.fr
Fri Jun 13 09:17:00 CEST 2003


Hi all
Investigating my inclusion loop issue, I've found many issues, and one 
thing that seems really annoying to me. It seems that it's impossible to 
use jsp declarations in OpenCMS. Indeed, I've the following JSP

When commenting out the method, it renders correctly. But when I try to 
uncomment the method, I get the following error stack


javax.servlet.ServletException: Resource loader error in file 
'/system/modules/com.linagora.open-j2ee/elements/recursive_lister.jsp'

Root cause:
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
    [javac] Since fork is true, ignoring compiler setting.
    [javac] Compiling 1 source file
    [javac] Since fork is true, ignoring compiler setting.
    [javac] /home/ndelsaux/jakarta-tomcat- 
4.1.24/work/Standalone/localhost/opencms/WEB- 
INF/jsp/offline/system/modules/com.linagora.open- 
j2ee/elements/recursive_lister_jsp_jsp.java:19: illegal start of expression
    [javac]   private static java.util.Vector _jspx_includes;
    [javac]   ^
    [javac] /home/ndelsaux/jakarta-tomcat- 
4.1.24/work/Standalone/localhost/opencms/WEB- 
INF/jsp/offline/system/modules/com.linagora.open- 
j2ee/elements/recursive_lister_jsp_jsp.java:21: illegal start of expression
    [javac]   public java.util.List getIncludes() {
    [javac]   ^
    [javac] /home/ndelsaux/jakarta-tomcat- 
4.1.24/work/Standalone/localhost/opencms/WEB- 
INF/jsp/offline/system/modules/com.linagora.open- 
j2ee/elements/recursive_lister_jsp_jsp.java:112: ';' expected
    [javac]     }
    [javac]      ^
    [javac] /home/ndelsaux/jakarta-tomcat- 
4.1.24/work/Standalone/localhost/opencms/WEB- 
INF/jsp/offline/system/modules/com.linagora.open- 
j2ee/elements/recursive_lister_jsp_jsp.java:11: 
org.apache.jsp.recursive_lister_jsp_jsp should be declared abstract; it 
does not define 
_jspService(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) 
 in org.apache.jasper.runtime.HttpJspBase
    [javac] public class recursive_lister_jsp_jsp extends HttpJspBase {
    [javac]        ^
    [javac] 4 errors

with a bunch of stack trace following.
Can any OpenCMS developper tell me how I can use methods in jsp for OpenCMS 
?
Thanks.

-- 
Nicolas Delsaux
Bientôt, il y aura ici une signature



More information about the opencms-dev mailing list