[opencms-dev] CmsVfsResourceNotFoundException on Direct Editing

Territorio Jordan-V. jordan.territorio at gmail.com
Wed May 14 14:09:26 CEST 2008


I've got the solution...

It was a rights problem... I logged with a user account which seems did have
enough right. But the problem is that this user, was an adminstrator. So
what are the difference between a new created user, which is part of group
administrators and project manager, and the Basic admin (admin/admin) of
OpenCMS.

Because i can use the direct button if 'im logged on my site with Admin but
not if 'im logged in with MySiteAdmin...

someone has an idea about it ?

2008/5/14 Territorio Jordan-V. <jordan.territorio at gmail.com>:

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



-- 
TERRITORIO Jordan-Victor
Ingénieur d'Intégration Java
TEAMLOG – Ingenieurs 2000

+33 6 30 66 54 69
jot at teamlog.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20080514/c8ed9c0e/attachment.htm>


More information about the opencms-dev mailing list