cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niclas Hedhman <nic...@localbar.com>
Subject SiteMap URIs problems/bugs??
Date Mon, 27 Mar 2000 10:43:44 GMT

Now, when I have the steam up, I am exploring the Cocoon2 domains rather
quickly, basically to put my existing XML material on-line under Cocoon
2 instead of 1.7.

I have a question though...

      <process uri="xdocs/**" source="/bali.io/xdocs/**">

will correctly find

/main1/bali.io/htdocs/docs/2000/march/tech-paper.xml

but
      <process uri="/xdocs/**" source="/bali.io/xdocs/**">

will not. Why??
Maybe it is only my paranoia, but "/docs/" looks more correct to me...

Secondly,
The DirectoryGenerator should, IMHO, have exclusion parameters in the
SiteMap, so that hidden files and other special files/diretories are not
listed.

Thirdly,
I have a
    <process uri="xdocs/**/" source="/bali.io/xdocs/**/">
        <generator name="directory"/>
        :
    </process>

and if I give the URI

/xdocs/2000/

it will correctly find and generate the content in the directory
"/bali.io/xdocs/2000/".

However, if I give the URI

/xdocs/

I get a weird Stack Trace (see below)...
Not only doesn't the SiteMap manage to match the URI to the Directory
generator, but the FileGenerator manage to open some nonexistent file,
and the error occur on line 2... ????


Niclas

P.S  Sorry for report problems instead of fixing them, but I am not that
familiar with the source yet.

---------------------------
Class: org.xml.sax.SAXException
Message: Fatal error parsing file:/bali.io/xdocs/ (line 2 col. 2): The
markup in the document following the root element must be well-formed.

org.xml.sax.SAXParseException: The markup in the document following the
root element must be well-formed.
at
org.apache.cocoon.components.parser.XercesParser.fatalError(XercesParser.java:88)

at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1347)
at
org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:616)

at
org.apache.xerces.framework.XMLDocumentScanner.abortMarkup(XMLDocumentScanner.java:670)

at
org.apache.xerces.framework.XMLDocumentScanner$TrailingMiscDispatcher.dispatch(XMLDocumentScanner.java:1487)

at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)

at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1208)
at
org.apache.cocoon.components.parser.XercesParser.parse(XercesParser.java:40)

at
org.apache.cocoon.generators.FileGenerator.generate(FileGenerator.java:33)

at
org.apache.cocoon.sitemap.GenericProcessor.process(GenericProcessor.java:161)

at
org.apache.cocoon.sitemap.SitemapPartition.process(SitemapPartition.java:102)

at org.apache.cocoon.sitemap.Sitemap.process(Sitemap.java:95)
at org.apache.cocoon.Cocoon.process(Cocoon.java:171)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:122)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
at
org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)

at org.apache.jserv.JServConnection.run(JServConnection.java:188)
at java.lang.Thread.run(Thread.java:475)



Mime
View raw message