George,

Thank you for finding and solving this bug - I have committed a fix  
into the 1.5 branch. I also place a default news-xmlui.xml file for  
those doing a fresh install so that they will have an example copy to  
modify. Here's the default that I supplied:

<?xml version="1.0" encoding="UTF-8" ?>
<document xmlns="http://di.tamu.edu/DRI/1.0/"; 
xmlns:i18n="http://apache.org/cocoon/i18n/2.1 
" version="1.1">
<body>
<div id="file.news.div.news" n="news" rend="primary">
<head>DSpace/Manakin Repository</head>
<p>Welcome to the new Manakin interface to the DSpace digital  
repository.  DSpace is a digital service that collects, preserves, and  
distributes digital material. Repositories are important tools for  
preserving an organization&apos;s legacy; they facilitate digital  
preservation and scholarly communication.</p>
</div>
</body>
<options/>
<meta>
<userMeta/>
<pageMeta/>
<repositoryMeta/>
</meta>
</document>




On Mar 17, 2008, at 1:00 PM, George Hamilton wrote:

> I ended up debugging this and found I was able to get it working by
> prefixing "file:/" to the news.xml path string in Include.setup(). eg:
>
> public void setup(SourceResolver resolver, Map objectModel, String  
> src,
> Parameters parameters) throws ProcessingException, SAXException,
> IOException
> {
> this.src = src;
> this.source = resolver.resolveURI("file:/" + src);
> }
>
> I don't know why this works for others and not me.
>
> A org.apache.cocoon.ResourceNotFoundException was being thrown from  
> this
> class but I was not picking up the message from the call
> getLogger().warn("blah blah"). Indeed, all the log files in
> [dspace]/webapps/dspace-xmlui/WEB-INF/logs/ are empty. How do I switch
> on cocoon(?!) logging?
>
> Regards
>
> George
>
>
> George Hamilton wrote:
>> Unfortunately this did not work.
>>
>> There are no errors in the logs. Any other thoughts?
>>
>> Dorothea Salo wrote:
>>
>>> On Mon, Mar 17, 2008 at 8:37 AM, George Hamilton
>>> <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>>> Hello
>>>>
>>>> I've recently installed 1.5 beta2 and am also having trouble  
>>>> displaying
>>>> the news page with Manikin. I have the following file in
>>>> {dspace.dir}/config/news.xml :
>>>>
>>>>
>>> As I read the DRI Schema reference, the <meta> and <options>  
>>> elements
>>> aren't optional. Try adding empty ones and see if it helps? (Looks
>>> like the subelements of <meta> aren't optional either.)
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <document version="1.0" xmlns="http://di.tamu.edu/DRI/1.0/";>
>>> <body>
>>> <meta>
>>> <userMeta/><pageMeta/><objectMeta/><repositoryMeta/>
>>> </meta>
>>> <div id="file.news.div.news" n="news" rend="primary">
>>> <head>DSpace Manakin is Live</head>
>>> <p> Welcome to our new Manakin interface to the DSpace digital
>>> repository of My University.</p>
>>> <p> More exciting news to appear here. </p>
>>> </div>
>>> </body>
>>> <options/>
>>> </document>
>>>
>>> Dorothea
>>>
>>>
>>>
>>
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>> _______________________________________________
>> DSpace-tech mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>>
>>
>>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to