[opencms-dev] JSP cannot find CmsJspActionElement

bart vandendriessche bart at nascom.be
Mon Dec 27 14:36:53 CET 2004


This may be too obvious, but did you import  the CmsJspActionElement 
class into your JSP like this:

<%@ page import="com.opencms.flex.jsp.CmsJspActionElement"%>

- bart


Santosh Sreenivasan wrote:

>  
> 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
>  
>  
>
>------------------------------------------------------------------------
>
>
>
>_______________________________________________
>This mail is send to you from the opencms-dev mailing list
>To change your list options, or to unsubscribe from the list, please visit
>http://mail.opencms.org/mailman/listinfo/opencms-dev
>




More information about the opencms-dev mailing list