[opencms-dev] JSP cannot find CmsJspActionElement
Santosh Sreenivasan
santosh.sreenivasan at srcm.org
Mon Dec 27 10:58:02 CET 2004
Blank
I've recently got OpenCms v5.0 running with Apache / Tomcat, and am trying to write my own JSP to manage user logins but cannot get the JSP to instantiate CmsJspActionElement. When the JSP tries to load, I get the error below - looks like a classpath problem. Even tried to set classpath to the opencms lib directory under WEB-INF\lib and restarted tomcat, but still get the error
Do I need to do anything different in order for OpenCms to find its own classes?
Thanks for any help on this.
Regards,
SS
javax.servlet.ServletException: Resource loader error in file '/login.jsp'
Root cause:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 4 in the jsp file: /WEB-INF/jsp/offline/login.jsp.jsp
Generated servlet error:
[javac] Compiling 1 source file
C:\jakarta-tomcat-4.1.31\work\Standalone\localhost\_\WEB-INF\jsp\offline\login_jsp_jsp.java:9: package com.opencms.jsp does not exist
import com.opencms.jsp.*;
^
C:\jakarta-tomcat-4.1.31\work\Standalone\localhost\_\WEB-INF\jsp\offline\login_jsp_jsp.java:49: cannot resolve symbol
symbol : class CmsJspActionElement
location: class org.apache.jsp.login_jsp_jsp
CmsJspActionElement cms = new CmsJspActionElement(pageContext, request, response);
^
An error occurred at line: 4 in the jsp file: /WEB-INF/jsp/offline/login.jsp.jsp
Generated servlet error:
C:\jakarta-tomcat-4.1.31\work\Standalone\localhost\_\WEB-INF\jsp\offline\login_jsp_jsp.java:49: cannot resolve symbol
symbol : class CmsJspActionElement
location: class org.apache.jsp.login_jsp_jsp
CmsJspActionElement cms = new CmsJspActionElement(pageContext, request, response);
^
An error occurred at line: 4 in the jsp file: /WEB-INF/jsp/offline/login.jsp.jsp
Generated servlet error:
C:\jakarta-tomcat-4.1.31\work\Standalone\localhost\_\WEB-INF\jsp\offline\login_jsp_jsp.java:61: cannot resolve symbol
symbol : class CmsJspActionElement
location: class org.apache.jsp.login_jsp_jsp
cms = new CmsJspActionElement(pageContext, request, response);
^
An error occurred at line: 4 in the jsp file: /WEB-INF/jsp/offline/login.jsp.jsp
Generated servlet error:
C:\jakarta-tomcat-4.1.31\work\Standalone\localhost\_\WEB-INF\jsp\offline\login_jsp_jsp.java:68: cannot resolve symbol
symbol : class CmsJspActionElement
location: class org.apache.jsp.login_jsp_jsp
cms = new CmsJspActionElement(pageContext, request, response);
^
An error occurred at line: 4 in the jsp file: /WEB-INF/jsp/offline/login.jsp.jsp
Generated servlet error:
C:\jakarta-tomcat-4.1.31\work\Standalone\localhost\_\WEB-INF\jsp\offline\login_jsp_jsp.java:70: package org.opencms.security does not exist
catch(org.opencms.security.CmsSecurityException e)
^
6 errors
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20041227/480fcc70/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Blank Bkgrd.gif
Type: image/gif
Size: 145 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20041227/480fcc70/attachment.gif>
More information about the opencms-dev
mailing list