[opencms-dev] what is this ERROR??

Michael Emmerich emmerich at german-navy.de
Wed Aug 24 20:07:32 CEST 2005


Aleksandra,

just a guess as I do not have an OpenCms running here.

Are you trying to export your JSP? The error looks as if your JSP is 
running outside OpenCms.

Please check if the export settings for your JSP are set to false.

Regards,
Michael Emmerich



> Ok it is me again
> so i made the jsp for sending emails and offline it works
> fine but,inline i have this error when i pĀ“ress the submit
> button from the html page.
> 
> The server encountered an unexpected condition which
> prevented it from fulfilling the request.
> 
> org.apache.jasper.JasperException:
> "org.opencms.jsp.CmsJspBean" is usable only on a OpenCms
> controlled JSP page.
> 
> org.apache.jasper.JasperException:
> "org.opencms.jsp.CmsJspBean" is usable only on a OpenCms
> controlled JSP page
> at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370)
> 	at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
> 	at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
> 	at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> 	at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> 	at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> 	at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> 	at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> 	at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> 	at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> 	at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> 	at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
> 	at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> 	at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> 	at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> 	at java.lang.Thread.run(Unknown Source)
> 
> do u know what does it mean??
> 
> p.s just to have a look on my jsp
> 
> <%@ page import="org.opencms.mail.CmsSimpleMail" %>
> <%@ page import="org.opencms.jsp.CmsJspBean" %>
> <%@ page import="org.opencms.jsp.*" %>
> <%@ page import="org.opencms.file.*" %>
> <%@ page import="javax.mail.*" %>
> <%@ page pageEncoding="UTF-8" %><%@ page session="false" %>
> <%@ taglib prefix="cms"
> uri="http://www.opencms.org/taglib/cms" %>
> ....
> <%
> 	CmsSimpleMail sm = new CmsSimpleMail();
> 	CmsJspActionElement cmsjsp  = new
> CmsJspActionElement(pageContext, request, response);
> 	CmsObject cmso =cmsjsp.getCmsObject();
> try{
> 	String to = "aleksandra at eteg.com.br";
> 	String email = request.getParameter("email");
> 	String nome = request.getParameter("nome");
> 	String assunto = request.getParameter("assunto");
> 	String mensagem = request.getParameter("mensagem");
> 	sm.setMsg("email :" + email +"\n" + "nome :"+nome+"\n" +
> "mensagem :"+mensagem);
> 	sm.addTo(to);
> 	sm.setFrom("webmaster at eteg.com.br");
> 	sm.setSubject(assunto);
>         out.println(request.getParameter("email"));
> 	if (request.getParameter("email")!=null &
>  request.getParameter("mensagem")!=null){
> 	sm.send();
> 	out.println("<td class=\"content_title\"
> valign=\"top\">Sua mensagem foi enviada!</td>");
> 	}
> 	else 	out.println("<td class=\"content_title\"
> valign=\"top\">Email nao pode ser enviado!</td>");
> }
> catch (MessagingException e) {
> 	out.println("<td class=\"content_title\"
> valign=\"top\">Email nao pode ser enviado!</td>");
> }
> 
> %>
> 
> 
> Thanks
> =========================================================
> Zastedi 70% na razgovorite so stranstvo.
> 15 denari minuta za bilo koja zemja vo svetot.
> http://www.ozone.net.mk
> info telefon (02)3100.800 24h na den
> =========================================================
> 
> 
> _______________________________________________
> 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
> 


-- 
Home   : emmerich at german-navy.de
Work   : m.emmerich at alkacon.com
ICQ    : 18897063
WWW    : German Naval History http://www.german-navy.de



More information about the opencms-dev mailing list