forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gav...." <brightoncomput...@brightontown.com.au>
Subject RE: Glossary Plugin FOR-755 - was RE: [jira] Updated: (FOR-639) define terminology for the various aspects of Dispatcher
Date Sun, 02 Apr 2006 13:45:27 GMT
Ross Wrote:-
> Gav.... wrote:
> >
> >>-----Original Message-----
> >>From: Gav.... [mailto:brightoncomputers@brightontown.com.au]
> >>Sent: Sunday, 2 April 2006 5:22 PM
> >>To: dev@forrest.apache.org
> >>Subject: RE: Glossary Plugin FOR-755 - was RE: [jira] Updated: (FOR-639)
> >>define terminology for the various aspects of Dispatcher
> >>
> >>Should I be using the .forrest. rather than .cocoon. sourcetype then?
> >>(I did change this earlier to no effect, but guess other configs were
> >>Wrong also)
> >
> >
> > Answer : Yes, to that one!
> >
> > Ok, I now have the plugin built and an 'ant test' is successful.
> (woohoo!)
> > A 'Forrest Run' also works fine and the site displays great, all pages
> work
> > fine Except the 'glossary.xml' test file which although displays,
> produces
> > no content, just the menus and tabs etc..
> 
> Cool!
> 
> > So a little bit more work to do, but getting there.
> 
> Here's some "starter" debugging tips (we really ought to document these):
> 
> 1) request the XML source of the document, this should be an XDoc. If it
> is not then it means the plugin is not intercepting and processing the
> request.

Just looks like xml to me, 

<glossary>
−
	<part id="a">
<title>A</title>
−
	<item id="ASampleGlossaryEntry">
<term>A Sample Glossary Entry</term>
−
	<definition>
This is just an example, check the source for tags to be used.
</definition>
</item>
</part>
−
	<part id="b">
<title>B</title>
−
	<item>
<term/>
<definition/>
</item>
</part>
−
	<part id="c">
<title>C</title>
−
	<item>
<term/>
<definition/>
</item>
</part>
−
	<part id="xyz">
<title>XYZ</title>
−
	<item>
<term/>
<definition/>
</item>
</part>
</glossary>


> 
> 2) do "forrest run" then look in PLUGIN_HOME/build/webapp/logs/ to see
> if there are any errors, in particular check that the
> glossary-to-document.xsl is being found, and if not, why not

Amongst other things there is in the Locationmap.log :-

ERROR   [core.modules.mapper.lm] (/glossary.xml): Ignoring locationmap config exception: Unable
to build LocationMap.

Caused by: org.apache.cocoon.ResourceNotFoundException: Resource not found.
	at <map:serialize type="xml"> - file:/D:/Apache2/forrest/main/webapp/sitemap.xmap:398:37

Caused by: java.io.FileNotFoundException: D:\Apache2\forrest\whiteboard\plugins\org.apache.forrest.plugin.input.glossary\src\documentation\content\locationmap.xml
(The system cannot find the file specified)

WARN    [core.modules.mapper.lm] (/glossary.html): Locationmap did not return a location for
hint project-skinconf.xsl

And in the error.log :-

ERROR   (2006-04-02) 21:35.46:880   [core.modules.mapper.lm] (/glossary.xml) PoolThread-4/SelectNode:
Ignoring locationmap config exception: Unable to build LocationMap

Caused by: java.io.FileNotFoundException: D:\Apache2\forrest\whiteboard\plugins\org.apache.forrest.plugin.input.glossary\src\documentation\content\locationmap.xml
(The system cannot find the file specified)


> 
> Then see what extra information the above might lead you to and post
> again.
> 
> Ross

Thanks for looking, I will take another look later.

Gav...

> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.3.4/299 - Release Date: 31/03/2006



Mime
View raw message