I checked the template demo 2 to see where i could have possibly done something wrong but seriously, i don't see any problems...<br><br>The links have the same expressions to edit an xsd schema-like :<br><a href="http://mysite.fr/opencms/opencms/mypages/theonetoedit.html#ocms_XXXXXX">http://mysite.fr/opencms/opencms/mypages/theonetoedit.html#ocms_XXXXXX</a> (X are numbers)<br>
try to rename but more errors occured... (can't find ressources too ^^)<br><br>So the name of the page is not the problem, the jsp template is not the problem and it seems that's not even an xsd problem because i can edit the file with the editor on OpenCms interface...<br>
<br>So...<br><br><div class="gmail_quote">2008/5/13 Nagy, Tibor KPI (GE Indust, ConsInd, consultant) <<a href="mailto:Tibor.Nagy2@ge.com">Tibor.Nagy2@ge.com</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">Yes, looks like the template is good, and everything is
correct.</font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">Yes, the problem comes from your site - but i dont know
exactly where it is.</font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">It doesnt find the subfile, but the template can
read it and can build the page.</font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">Hmm... I dont know why.</font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">Looks like its only want to read the data file:
accueil.html, not accueil.html.xml</font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">Try to rename it.</font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">Good luck!</font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">Tibi</font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial"></font></span> </div><br>
<div dir="ltr" align="left" lang="en-us">
<hr>
<font size="2" face="Tahoma"><div class="Ih2E3d"><b>From:</b> <a href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@opencms.org</a>
[mailto:<a href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@opencms.org</a>] <b>On Behalf Of </b>Territorio
Jordan-V.<br></div><b>Sent:</b> 2008. május 13. 16:25<div><div></div><div class="Wj3C7c"><br><b>To:</b> The OpenCms
mailing list<br><b>Subject:</b> Re: [opencms-dev]
CmsVfsResourceNotFoundException on Direct Editing<br></div></div></font><br></div><div><div></div><div class="Wj3C7c">
<div></div>The xml files are in client and infos subdirectories (sorry, but you
know that opencms interface does not display the .xml extension). So these are
the files which contains datas
:<br>/sites/default/client/accueil.html.xml<br>/sites/default/infos/*.html.xml<br><br>In
the OpenCms Web Interface I can correctly edit the files. So i can add titles,
paragraph images, etc... When I publish, all is displayed correctly.<br><br>So i
think that my templates are correct.<br><br>I think the problem comes from the
site but I don't know where exactly. I can display the page, i can see the
direct edit button when i'm logged in, but the exception comes when i click on
this button :)<br><br>please... help<br><br><br>
<div class="gmail_quote">2008/5/13 Nagy, Tibor KPI (GE Indust, ConsInd,
consultant) <<a href="mailto:Tibor.Nagy2@ge.com" target="_blank">Tibor.Nagy2@ge.com</a>>:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">Hmm...</font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">Where are
your subfile ( the xml file, what is contains the datas )
?</font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">If you
clicking to your index file in opencms, is it generated correctly and you can
edit the subfiles ( with the direct edit button )
?</font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">If this
part is ok, the failure will be in your site - you cant defined something
correctly on it ( ? ).</font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">Tib</font></span></div><br>
<div dir="ltr" align="left" lang="en-us">
<hr>
<font size="2" face="Tahoma">
<div><b>From:</b> <a href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@opencms.org</a> [mailto:<a href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@opencms.org</a>] <b>On Behalf Of
</b>Territorio Jordan-V.<br></div><b>Sent:</b> 2008. május 13. 15:43
<div><br><b>To:</b> The OpenCms mailing
list<br></div><b>Subject:</b> Re: [opencms-dev]
CmsVfsResourceNotFoundException on Direct Editing<br></font><br></div>
<div>
<div></div>
<div>
<div></div>Yes, when i use the OpenCms interface, I can edit the page through
my templates and so publish the modified page on my site. But when i'm logged
in my site, logged as administrator, the direct edit button appears but an
exception is throwed...<br><br>I suppose this is the correct directory.<br>the
code of my display template (system/modules/com.mymodule/templates)
:<br><br><%@ page session="false"%><br><%@ taglib prefix="cms"
uri="<a href="http://www.opencms.org/taglib/cms" target="_blank">http://www.opencms.org/taglib/cms</a>"%><br><%@ taglib
prefix="c" uri="<a href="http://java.sun.com/jsp/jstl/core" target="_blank">http://java.sun.com/jsp/jstl/core</a>"%><br><%@ taglib
uri="<a href="http://java.sun.com/jsp/jstl/functions" target="_blank">http://java.sun.com/jsp/jstl/functions</a>"
prefix="fn"%><br><cms:include property="template" element="head"
/><br><cms:editable /><br><div
class="main"><br><cms:contentload
collector="singleFile"<br> param="%(opencms.uri)"
editable="true"><br><br> <h2><cms:contentshow
element="Title" /></h2><br> <h3>Monsieur
<cms:user property="name" /></h3><br>
<p><cms:contentshow element="Text"
/></p><br> <p
class="sign"><cms:contentshow element="Signature"
/></p><br></cms:contentload><br></div><br><cms:include
property="template" element="foot" /><br><br>Elements "head" and "foot" are
defined in /system/modules/com.mymodule/templates/user.jsp<br><br>I need to
edit html files in "client" and "infos" subdirectories
:<br>/site/default/<br> + client/accueil.html<br> +
infos/*.html<br><br>:S<br><br><br><br><br><br>
<div class="gmail_quote">2008/5/13 Nagy, Tibor KPI (GE Indust, ConsInd,
consultant) <<a href="mailto:Tibor.Nagy2@ge.com" target="_blank">Tibor.Nagy2@ge.com</a>>:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">Hi!</font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">You
cannot got the OpenCms subfile, what you want to edit ( Virtual File System
Resource Not Found ).</font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">You
editing the correct file ( with the correct extension defined in the
template ) in the "console" ? It is in the correct directory
?</font></span></div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font size="2" color="#0000ff" face="Arial">Tib</font></span></div><br>
<div dir="ltr" align="left" lang="en-us">
<hr>
<font size="2" face="Tahoma"><b>From:</b> <a href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@opencms.org</a> [mailto:<a href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@opencms.org</a>] <b>On Behalf Of
</b>Territorio Jordan-V.<br><b>Sent:</b> 2008. május 13. 15:01<br><b>To:</b>
The OpenCms mailing list<br><b>Subject:</b> [opencms-dev]
CmsVfsResourceNotFoundException on Direct Editing<br></font><br></div>
<div>
<div></div>
<div>
<div></div>Hi all,<br><br>I'ge got a problelm with direct editing
button.<br>I've made a schema which is correctly displayed with a template
jsp. When I acces to the html file which use the schema by the OpenCms
administration "console" everything works fine : i can edit the page, modify
the properties, etc...<br>So i''ve decided to add a direct edit button. The
button has been added.<br><br>But when I click on it, it appears a
CmsVfsResourceNotFoundException on the html page...<br><br>Here is the
opencms.log file :<br><br>3 mai 2008 15:02:36,616 ERROR
[ace.editors.CmsPreEditorAction: 169] Error reading resource from path
"/client/accueil.html".<br>org.opencms.file.CmsVfsResourceNotFoundException:
Error reading resource from path
"/client/accueil.html".<br> at
org.opencms.file.CmsVfsResourceNotFoundException.createException(CmsVfsResourceNotFoundException.java:78)<br>
at
org.opencms.db.CmsDbContext.throwException(CmsDbContext.java:238)<br>
at
org.opencms.db.CmsDbContext.report(CmsDbContext.java:212)<br>
at
org.opencms.db.CmsSecurityManager.readResource(CmsSecurityManager.java:3989)<br>
at
org.opencms.file.CmsObject.readResource(CmsObject.java:3470)<br>
at
org.opencms.workplace.editors.CmsPreEditorAction.doPreAction(CmsPreEditorAction.java:159)<br>
at
org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.editors.editor_jsp._jspService(editor_jsp.java:46)<br>
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)<br>
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<br>
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)<br>
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)<br>
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)<br>
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<br>
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)<br>
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)<br>
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)<br>
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:584)<br>
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:497)<br>
at
org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:194)<br>
at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:169)<br>
at
org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:1172)<br>
at
org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:423)<br>
at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:173)<br>
at
org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:1206)<br>
at
org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:1150)<br>
at
org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:964)<br>
at
org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1494)<br>
at
org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:152)<br>
at
org.opencms.main.OpenCmsServlet.doPost(OpenCmsServlet.java:164)<br>
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)<br>
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)<br>
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)<br>
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)<br>
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)<br>
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)<br>
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)<br>
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)<br>
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)<br>
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)<br>
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)<br>
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)<br>
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)<br>
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)<br>
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)<br>
at java.lang.Thread.run(Unknown Source)<br>Caused by:
org.opencms.file.CmsVfsResourceNotFoundException: Unable to read resource
"/client/accueil.html".<br> at
org.opencms.db.generic.CmsVfsDriver.readResource(CmsVfsDriver.java:1917)<br>
at
org.opencms.db.CmsDriverManager.readResource(CmsDriverManager.java:6387)<br>
at
org.opencms.db.CmsSecurityManager.readResource(CmsSecurityManager.java:5798)<br>
at
org.opencms.db.CmsSecurityManager.readResource(CmsSecurityManager.java:3987)<br clear="all"><br><br>Has anyone already have the same problem or a solution ?
:-)<br><br>-- <br>TERRITORIO Jordan-Victor<br>Ingénieur d'Intégration
Java<br>TEAMLOG – Ingenieurs 2000<br><br>+33 6 30 66 54 69<br><a href="mailto:jot@teamlog.com" target="_blank">jot@teamlog.com</a>
</div></div></div><br><br>_______________________________________________<br>This
mail is sent to you from the opencms-dev mailing list<br>To change your list
options, or to unsubscribe from the list, please visit<br><a href="http://lists.opencms.org/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br></blockquote></div>
<br><br clear="all"><br>-- <br>TERRITORIO Jordan-Victor<br>Ingénieur d'Intégration
Java<br>TEAMLOG – Ingenieurs 2000<br><br>+33 6 30 66 54 69<br><a href="mailto:jot@teamlog.com" target="_blank">jot@teamlog.com</a>
</div></div></div><br><br>_______________________________________________<br>This
mail is sent to you from the opencms-dev mailing list<br>To change your list
options, or to unsubscribe from the list, please visit<br><a href="http://lists.opencms.org/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br></blockquote></div>
<br><br clear="all"><br>-- <br>TERRITORIO Jordan-Victor<br>Ingénieur d'Intégration
Java<br>TEAMLOG – Ingenieurs 2000<br><br>+33 6 30 66 54 69<br><a href="mailto:jot@teamlog.com" target="_blank">jot@teamlog.com</a> </div></div></div>
<br><br>
_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br></blockquote></div><br><br clear="all"><br>-- <br>TERRITORIO Jordan-Victor<br>Ingénieur d'Intégration Java<br>
TEAMLOG – Ingenieurs 2000<br><br>+33 6 30 66 54 69<br><a href="mailto:jot@teamlog.com">jot@teamlog.com</a>