[opencms-dev] VFS target "/path/filename.jsp" was already included earlier

Panos Kavalagios Panagiotis.Kavalagios at eurodyn.com
Wed Feb 1 10:11:41 CET 2006


Mike,

    Did you change all the "include" methods and nothing happened? Note 
that you have to change your "foot" template include as well.

    Check all the "include" methods or tags that your code is using not 
only on the target file, but also on the templates your are using. A 
quick solution would be to put them in comment and restore them 
gradually. Of course this might yield another kind or error message, but 
it will still help you to identify where the problem is located.

Regards,
Panos

mwpowell at adelphia.net wrote:
> Panos,
>
> Thank you for your suggestion, however, it seems that this results in the same error message. It doesn't seem to be a problem retrieving the template string value. Rather, it is some sort of issue with the template setting on this file. I noticed that the template is being called twice in the java exception error message. Further, I cannot view the template itself as it results in the same error message. 
>
> Is there some type of 'global' setting or opencms level setting that I am missing?
>
> I should note that the template seems to be used fine on other html pages, but the jsp page results in the error.
>
> Mike
>
>
> ---- Panos Kavalagios <Panagiotis.Kavalagios at eurodyn.com> wrote: 
>   
>> Hi Mike,
>>
>>     This message is exactly what it is saying. You are trying to 
>> re-include a template due to a wrong template property configuration. 
>> Are you sure that template property points to the correct file? Try to 
>> print cms.property("template") value to check and you may use instead:
>>
>> String mytemplate="/my/temlpate";
>> cms.include(mytemplate, "head");
>>
>> to include the correct template. Note that included templates have 
>> access to the properties of the file which have been included and not to 
>> their own properties.
>>
>> Regards,
>> Panos
>>
>> mwpowell at adelphia.net wrote:
>>     
>>> I am receiving an error message when I attempt to view a jsp page and include a template using the following code...
>>>
>>> <%
>>> org.opencms.jsp.CmsJspActionElement cms = new org.opencms.jsp.CmsJspActionElement(pageContext, request, response); 
>>>
>>> cms.include(cms.property("template"), "head");
>>>
>>> Some html text here.
>>> %>
>>>
>>> The error I am receiving is "VFS target "/path/filename.jsp" was already included earlier". Does anyone have any ideas on the root cause of this message? I have a duplicate environment where this code works flawlessly. I'm not certain what the differences are between the environments, but the code is identical.
>>>
>>> Thanks in advance.
>>>
>>> Mike
>>>
>>>
>>> _______________________________________________
>>> 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
>>>   
>>>       
>> -- 
>> Panagiotis Th. Kavalagios
>> Electrical & Computer Engineer
>> European Dynamics S.A.
>> Athens, Hellas
>> Tel: +30-210-8094500
>>
>>
>> _______________________________________________
>> 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
>>     
>
>   

-- 
Panagiotis Th. Kavalagios
Electrical & Computer Engineer
European Dynamics S.A.
Athens, Hellas
Tel: +30-210-8094500

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


More information about the opencms-dev mailing list