[opencms-dev] Newbie problem with OpenCMS - New Content Disapears
Dr. John A. Kassebaum PhD, PE
jak at kassebaumengineering.com
Tue Feb 16 00:21:51 CET 2016
Just for fun, I tried creating my own resource type to my module using the Workspace Admin “Add Resource Type” wizard. It created a number of files that have initial template info in them.
If I add this new resource type to page while editing. It does not disappear (yay) but I get a Java exception:
15 Feb 2016 18:11:02,213 ERROR [ org.opencms.main.OpenCmsCore:2144] javax.servlet.jsp.JspException: org.opencms.main.CmsException: Error while reading element bean from request rendering URL http://10.0.1.4:8080/opencms/opencms/system/modules/com.k2ee.wpcp_framework/formatters/KPIgraph-formatter.jsp <http://10.0.1.4:8080/opencms/opencms/system/modules/com.k2ee.wpcp_framework/formatters/KPIgraph-formatter.jsp>
javax.servlet.ServletException: javax.servlet.jsp.JspException: org.opencms.main.CmsException: Error while reading element bean from request
Anyway …. not sure I’m making progress.
Thanks for any help or clues!
-John
> On Feb 15, 2016, at 4:28 PM, Dr. John A. Kassebaum PhD, PE <jak at kassebaumengineering.com> wrote:
>
> When I add the text field (in this case I added the “About: Open Source” instance) I get a java exception in the opencms.log:
> org.opencms.file.CmsVfsResourceNotFoundException: Error reading resource from path "/sites/default/grid-demo/.content/texts/t_00019.xml”.
>
> I do see the text in my edit window/page:
> Open Source:
>
> Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
>
> But, when I refresh the page - the content is missing and it emits the same error message into the opencms.log:
> org.opencms.file.CmsVfsResourceNotFoundException: Error reading resource from path "/sites/default/grid-demo/.content/texts/t_00019.xml"
>
> Any thoughts on what is going on here? Does this indicate some kind of mis-configuration of OpenCMS?
>
> -John
>
>> On Feb 15, 2016, at 3:57 PM, Dr. John A. Kassebaum PhD, PE <jak at kassebaumengineering.com <mailto:jak at kassebaumengineering.com>> wrote:
>>
>> Hi Lorenz,
>>
>> I found the opencms.log file - very helpful. Not seeing many errors yet - but I just reloaded the whole thing (9.5.3) to be sure I see everything.
>>
>> The guts of the page are very simple - basically just copied the grid-demo-page.jsp. Maybe that’s the problem?
>>
>> <body>
>> <div class="page-wrap wrapper">
>> <c:if test="${cms.isEditMode}">
>> <!--=== Placeholder for OpenCms toolbar in edit mode ===-->
>> <div style="background: lightgray; height: 35px"> </div>
>> </c:if>
>> <div style="background: blue; height: 35px">
>> <img align="right" height="100" src="<cms:link>%(link.weak:/system/modules/com.k2ee.wpcp_framework/resources/img/FortWayneLogo.jpg)</cms:link>" />
>> </div>
>> <cms:container name="page-complete" type="page" width="1200" maxElements="15" editableby="ROLE.DEVELOPER">
>> <cms:bundle basename="com.alkacon.bootstrap.formatters.messages">
>> <div class="servive-block rounded-3x servive-block-red">
>> <p><fmt:message key="bootstrap.page.text.emptycontainer"/></p>
>> </div>
>> </cms:bundle>
>> </cms:container>
>> </div><!--/page-wrap-->
>> </body>
>>
>> This gives me a “Please drop your Layout Rows here” where I can drop a grid-demo template row. I’m about to try this again while watching the opencms.log and see if I learn anything. I think I do understand the basic idea of content types and formatters … but I can’t get the basic editing functions to work on my own page which makes me think I have missed something critical.
>>
>> Thanks for your help!!
>> -John
--
John A. Kassebaum, PhD PE AC9JX
Kassebaum Engineering LLC
Main: (317) 225-4126 x2
Cell: (317) 250-7932
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20160215/d55adbc9/attachment.htm>
More information about the opencms-dev
mailing list