[opencms-dev] Reason: VFS target resource was already included earlier.

Jack Bakker jbakker at iable.ca
Wed Apr 1 22:56:00 CEST 2009


are you missing a reference to the template in the advanced properties
of the jsp ?

On 01/04/09 04:52 PM, Beejal Kamdar wrote:
> Hi All,
> 
> I have the following JSP template in one of my module.
> 
> <%@ page session="false" %>
>   <%@ taglib prefix="cms"
>    uri="http://www.opencms.org/taglib/cms" %>
> 
>    <!DOCTYPE html public "-//W3C//DTD HTML 4.01 Transitional//EN">
>    <html>
>    <head>
>    <title><cms:property name="Title" escapeHtml="true"/></title>
>    <link href="<cms:link><cms:property name="resource-path"/ 
>  >SpryAssets/SpryTooltip.css</cms:link>" rel="stylesheet" type="text/ 
> css" />
>    <cms:editable/>
>    </head>
>    <body>
>    <h1><cms:property name="Title" escapeHtml="true"/></h1>
> 
>    <cms:template element="body">
>    <cms:include element="body" editable="true"/>
>    </cms:template>
>    </body>
> 
>    </html>
> 
> 
> 
> When I try to execute this template with an include for editable, it  
> gives me the error as :
> 
> javax.servlet.jsp.JspException: javax.servlet.ServletException: VFS  
> target resource "/system/modules/com.mavericklabel.frontend.maverick/ 
> templates/testTemplate" was already included earlier.
> Reason: VFS target resource "/system/modules/ 
> com.mavericklabel.frontend.maverick/templates/testTemplate" was  
> already included earlier.
> 
> If I remove the include statement <cms:include element="body"  
> editable="true"/>, then it executes and works fine but does not show  
> up the editable section.
> 
> I went through a lot of documentation but couldn't figure out the  
> reason for this error. I want an editable section to be displayed  
> through my JSP template. Can anyone please help me to get out of this.
> 
> Thanks
> Beejal
> 
> 
> _______________________________________________
> 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

-- 

...........
Jack Bakker



More information about the opencms-dev mailing list