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

Jonathan Woods jonathan.woods at scintillance.com
Wed Feb 1 09:54:36 CET 2006


Maybe this is obvious, but... it sounds like some kind of recursion.

Jon 

-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of mwpowell at adelphia.net
Sent: 01 February 2006 04:08
To: The OpenCms mailing list
Subject: Re: [opencms-dev] VFS target "/path/filename.jsp" was
alreadyincluded earlier

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


_______________________________________________
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





More information about the opencms-dev mailing list