[opencms-dev] FW: problem in executing module template
David García González
david.garciag at fundacionctic.org
Tue Jul 18 09:52:04 CEST 2006
Perhaps you haven't set properly the template property of the html page.
El mié, 18-07-2007 a las 12:00 +0530, vikas gupta escribió:
> Hi All,
>
>
>
> I am using Tomcat5.0 and opencms6.0
>
> I have created a module and creates a simple jsp page.
>
> The code of jsp page is:
>
> <%@ page session="false" buffer="none" %>
>
> <%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>
>
> <cms:include property="template" element="head" />
>
> <cms:editable />
>
> <h2>Testing Page</h2>
>
> <p>
>
> This is my first Jsp page in opencms
>
> </p>
>
> <p>
>
> <cms:include file="Test.html" element="body" editable="true" />
>
> </p>
>
> <cms:include property="template" element="foot" />
>
> But when I run this it will display the following error::
>
> VFS target "/system/modules/com.daffodil/templates/FirstJsp.jsp" was
> already included earlier.
>
> Detail::
>
> javax.servlet.ServletException: VFS target
> "/system/modules/com.daffodil/templates/FirstJsp.jsp" was already
> included earlier.
>
> at
> org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:276)
>
> at
> org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:174)
>
> at
> org.opencms.jsp.CmsJspTagInclude.includeActionWithCache(CmsJspTagInclude.java:373)
>
> at
> org.opencms.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:247)
>
> at
> org.opencms.jsp.CmsJspTagInclude.doEndTag(CmsJspTagInclude.java:473)
>
> at
> org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.com_daffodil.templates.FirstJsp_jsp._jspx_meth_cms_include_0(FirstJsp_jsp.java:108)
>
> at
> org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.com_daffodil.templates.FirstJsp_jsp._jspService(FirstJsp_jsp.java:63)
>
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
>
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>
> at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
>
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
>
> at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
>
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
>
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:750)
>
> at
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:636)
>
> at
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:546)
>
> at
> org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:194)
>
> at
> org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:170)
>
> at
> org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:433)
>
> at
> org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:423)
>
> at
> org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:174)
>
> at
> org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:467)
>
> at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:412)
>
> at
> org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:719)
>
> at
> org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1332)
>
> at
> org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:151)
>
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
>
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
>
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
>
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
>
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
>
> at
> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
>
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
>
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
>
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
>
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184)
>
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
>
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
>
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
>
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
>
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
>
> at
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
>
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
>
> at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
>
> at
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
>
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:833)
>
> at org.apache.coyote.http11.Http11Protocol
> $Http11ConnectionHandler.processConnection(Http11Protocol.java:732)
>
> at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)
>
> at org.apache.tomcat.util.threads.ThreadPool
> $ControlRunnable.run(ThreadPool.java:688)
>
> at java.lang.Thread.run(Thread.java:534)
>
> The html page page is wirking fine.
>
> What should I do?
>
> Any help will be highly appreciated.
>
>
>
>
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
--
***********************************************************************
David García González
Fundación CTIC
-Centro Tecnológico de la Información y la Comunicación-
E-mail: david.garciag at fundacionctic.org
Tfno: +34 984 29 12 12
-Parque Científico y Tecnológico Gijón-Asturias-Spain
www.fundacionctic.org
***********************************************************************
More information about the opencms-dev
mailing list