[opencms-dev] ver. 6a3 -- Xml content elements not listed

Xavier Ottolini xavier.ottolini at adelis.com
Mon May 9 12:35:35 CEST 2005


Hi,

I try to create my first project with the XML content.

To create the pages, I created my articles
When I created the articles, I clicked on New + Structured Content + 
Article.
The files are called named article_0001.html and article_0002.html. The 
end publication dates are 5/25/05 and 5/19/05.
The folder has a property template-elements set to /actualites/detail.jsp.

I did not created a XSD file because I suppose that it already exist in 
the OpenCms workplace.

Then I created my detail page :

<%@ page session="false" %>
<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>
<cms:include property="template" element="head" />
<cms:include property="template" element="subhead" />

<cms:contentload collector="singleFile" param="${opencms.uri}" 
editable="true">
<h2><cms:contentshow element="Title" /></h2>
<p><cite>By <cms:contentshow element="Author" /></cite></p>
<cms:contentloop element="Teaser">
<p><cms:contentshow /></p>
</cms:contentloop>
<p><cms:contentshow element="Text" /></p>
</cms:contentload>
<cms:include property="template" element="foot" />

I created my JSP for the article list :

<%@ page session="false" %>
<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>
<cms:include property="template" element="head" />
            <ul>
<cms:contentload collector="${property.collector}" 
param="${property.dossier-actualites}{property.prefixe-article}${number}.html|25" 
editable="true">

                <li><strong><cms:contentshow element="Title" /><strong><br>
                <cms:contentshow element="Teaser" /><br>
                <a href="<cms:link><cms:contentshow 
element="${opencms.filename}" /></cms:link>">Lire</a></li>
</cms:contentload>
            </ul>
<cms:include property="template" element="subhead" />
<cms:include file="index_contenu.html" element="body" editable="true"/>
<cms:include property="template" element="foot" />

The property collector is set to "allInFolderDateReleasedDesc"
The property dossier-actualites is set to "/actualites/". 
The property prefixe-article is set to "article_"

Problem 1. When I open a article, I see an error HTTP Status 404 - 
resource not found.
When I open the log file, there are the following exception :
javax.servlet.ServletException: org.opencms.xml.CmsXmlException: 
Unmarshalling xml document failed!
        at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:492)
        at org.apache.jsp.detail_jsp._jspService(detail_jsp.java:114)
        at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 
Problem 2. When I open the article list, no article is displayed. But 
there is a link to the article list. What is wrong in my design ?
Any help would be really appreciate.

Thanks in advance

-- 
Xavier Ottolini
Développeur multimédia

Adelis
37, rue d'Engwiller
67350 La Walck
France
Téléphone : +33 (0) 3 88 72 29 10
Télécopie : +33 (0) 3 88 72 29 19
http://www.adelis.com





More information about the opencms-dev mailing list