[opencms-dev] FW: problem in executing module template

vikas gupta vikas.gupta at daffodildb.com
Tue Jul 18 08:26:59 CEST 2006


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(CmsFlexRe
questDispatcher.java:276)

        at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.j
ava:174)

        at
org.opencms.jsp.CmsJspTagInclude.includeActionWithCache(CmsJspTagInclude.jav
a: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:3
11)

        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(Application
FilterChain.java:284)

        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:204)

        at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:750)

        at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch
er.java:636)

        at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher
.java:546)

        at
org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDisp
atcher.java:194)

        at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.j
ava:170)

        at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:433)

        at
org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRe
questDispatcher.java:423)

        at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.j
ava: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:7
19)

        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(Application
FilterChain.java:284)

        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:204)

        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:257)

        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:151)

        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)

        at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
Valve.java:245)

        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:199)

        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.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(StandardValveContex
t.java:151)

        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164
)

        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.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(StandardValveContex
t.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.processConne
ction(Http11Protocol.java:732)

        at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:619)

        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a: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.

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060718/06b23d79/attachment.htm>


More information about the opencms-dev mailing list