[opencms-dev] error vfs target"/system/modules/org.opencms.frontend.templateone/pages/search.html"was already included earlier ?
Marc Fiévet
marc at fievet.be
Mon Jul 25 10:59:00 CEST 2005
Do you declare the template property for this page?
MARC
-----Message d'origine-----
De : opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] De la part de bub habub
Envoyé : lundi 25 juillet 2005 10:51
À : open cms
Objet : [opencms-dev] error vfs
target"/system/modules/org.opencms.frontend.templateone/pages/search.htm
l"was already included earlier ?
hi all,
i do get this error msg. wanted to setup the search
engine. and created two forms.
got the code from the book and thought that i only
have to connect it to the search.html page.
is that correct? or do i have to write the seach
myself.
so all in all i got this error msg that i don't
understand what it means.
error vfs target
"/system/modules/org.opencms.frontend.templateone/pages/search.html"
was already included earlier ?
javax.servlet.ServletException: VFS target
"/system/modules/org.opencms.frontend.templateone/pages/search.html"
was already included earlier.
at
org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFl
exRequestDispatcher.java:272)
at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatch
er.java:175)
at
org.opencms.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:
215)
at
org.opencms.jsp.CmsJspActionElement.include(CmsJspActionElement.java:384
)
at
org.opencms.jsp.CmsJspActionElement.include(CmsJspActionElement.java:408
)
at
org.opencms.jsp.CmsJspActionElement.include(CmsJspActionElement.java:312
)
at
org.opencms.frontend.templateone.CmsTemplateSearch.includeWithPageUri(Cm
sTemplateSearch.java:410)
at
org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_fronte
nd_templateone.pages.search_html_jsp._jspService(org.apache.jsp.WEB_002d
INF.jsp.offline.system.modules.org_opencms_frontend_templateone.pages.se
arch_html_jsp:49)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:322)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:672)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDisp
atcher.java:574)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispat
cher.java:499)
at
org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequest
Dispatcher.java:193)
at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatch
er.java:171)
at
org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:402)
at
org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFl
exRequestDispatcher.java:417)
at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatch
er.java:175)
at
org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:434)
at
org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:381)
at
org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.ja
va:711)
at
org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1302)
at
org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:136)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:85
6)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:744)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:684)
at java.lang.Thread.run(Thread.java:534)
what does it mean?
here my code: searchresults.jsp
<%@ page session="false" %>
<%@ taglib prefix="cms"
uri="http://www.opencms.org/taglib/cms" %>
<div style="display:table; padding: 5px;">
<cms:include
file="/system/modules/org.opencms.frontend.templateone/pages/search.html
"/>
</div>
search-form.jsp
<%@ page session="false" %>
<%
// If a param q is found, it is placed in the text
box.
String qval = request.getParameter("q");
if(qval == null) qval = "";
%>
<form method="GET" name="searchform"
action="searchresults.jsp">
Search:<input type="text" name="q" value="<%= qval
%>"/>
<input type="submit" value="Go"/>
</form>
search.html
<%@ page session="false" buffer="none"
import="java.util.*,org.opencms.search.*,org.opencms.frontend.templateon
e.*"
%><%--
This is the search code page.
--%><%
// initialise the template bean
CmsTemplateSearch cms = new
CmsTemplateSearch(pageContext, request, response);
// include the template head
cms.includeWithPageUri("head");
%><%--
--%><jsp:useBean id="search" scope="request"
class="org.opencms.search.CmsSearch"><%--
--%><jsp:setProperty name="search" property="*"/><%
search.init(cms.getCmsObject());
search.setMatchesPerPage(10);
search.setQueryLength(3);
search.setDisplayPages(11); %><%--
--%></jsp:useBean><%--
--%><div class="element">
<h2><%= cms.buildSearchHeadline() %></h2>
<p style="vertical-align: middle;">
<form style="margin: 0;" name="searchform"
method="post" action="<%=
cms.link("/system/modules/org.opencms.frontend.templateone/pages/search.
html")
%>" onsubmit="return
parseSearchQuery(document.forms['searchform'], '<%=
cms.key("search.error.wordlength") %>');">
<input type="hidden" name="action" value="search" />
<input type="hidden" name="query" value="" />
<input type="hidden" name="index" value="<%=
cms.getSearchIndexName() %>" />
<input type="hidden" name="page" value="1" />
<input type="hidden" name="<%=
CmsTemplateBean.PARAM_URI %>" value="<%=
cms.getRequestContext().getUri() %>" />
<input type="hidden" name="__locale" value="<%=
cms.getRequestContext().getLocale() %>" />
<span style="vertical-align: middle; padding-left:
4px;"><input type="text" name="query2" class="search"
style="width: 350px" value="<%= search.getQuery() %>"
/></span>
<span style="vertical-align: middle;"><input
type="submit" value="<%= cms.key("link.search") %>"
class="formbutton" /></span><br />
<span style="line-height: 3px; font-size:
1px;"> </span><%
if (cms.isSearchAllDisplayed()) {
%><br />
<span style="vertical-align: middle;"><input
type="checkbox" name="<%=
CmsTemplateSearch.PARAM_SEARCHALL %>" value="true"<%=
cms.getSearchAllChecked() %>></span>
<span style="vertical-align: middle;"><%=
cms.key("search.text.all") %></span><%
}
%><br />
</form>
</p>
<%
// get the search results for the page
List result = cms.getSearchResults(search);
out.print(cms.buildSearchErrorMessages(search,
result));
if (result != null && result.size() > 0) {
// show the result list
out.print(cms.buildSearchResultList(result));
// show the links to other result pages
out.print(cms.buildSearchLinks(search));
}
%>
</div>
<%
// include the template head
cms.includeWithPageUri("foot");
%>
search.html is a standard inlcuded file from opencms.
anyone has an ideas what that could be?
thanks for help
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please
visit
http://mail.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list