Re: Locationmap does not work with dispatcher
Pablo Barrera wrote: On 11/09/2008, at 8:13:07, Thorsten Scherler wrote: On Thu, 2008-09-11 at 09:58 +1000, David Crossley wrote: Pablo Barrera wrote: I have a problem with dispatcher and I am still stuck with it. The Dispatcher is in development and issues with its use should be discussed on the "dev" mailing list. Most developers will have read your message here so you can just refer to it. IMO it is not a dispatcher problem at all. However besides the wiki the other plugins used are in the whiteboard so definitely a dev topic. Thanks. I think your are right. Using yours tips I have been looking around a little bit more to the communication between the wiki server and the forrest instance. It seems the problem is there. With a new local installation of moinmoin in my computer everything is working smooth. My guess is I am being banned from the moinmoin wiki server and it refuses to provide the correct page. I have spend hours trying to figure out this, because the server always answer correctly to my while I was connecting to it directly. I will look on this further. This highlights a useful process in debugging that us devs take for granted (I don't think we have ever actually documented it - we'd welcome a patch to the debugging section in our FAQ). When you find an unexpected problem, the first thing to do is to request http://foo.org/bar.xml This should return the internal XML format and allows one to narrow down the problem to either the input or output stages, i.e. if it doesn't return the XDoc document then it's a problem in the input stage, if it does then the problem is in the output stage. We'll give other hints out as people ask for them ;-) Ross
Re: Locationmap does not work with dispatcher
On 11/09/2008, at 8:13:07, Thorsten Scherler wrote: On Thu, 2008-09-11 at 09:58 +1000, David Crossley wrote: Pablo Barrera wrote: I have a problem with dispatcher and I am still stuck with it. The Dispatcher is in development and issues with its use should be discussed on the "dev" mailing list. Most developers will have read your message here so you can just refer to it. IMO it is not a dispatcher problem at all. However besides the wiki the other plugins used are in the whiteboard so definitely a dev topic. Thanks. I think your are right. Using yours tips I have been looking around a little bit more to the communication between the wiki server and the forrest instance. It seems the problem is there. With a new local installation of moinmoin in my computer everything is working smooth. My guess is I am being banned from the moinmoin wiki server and it refuses to provide the correct page. I have spend hours trying to figure out this, because the server always answer correctly to my while I was connecting to it directly. I will look on this further. I will move any other comment about dispatcher to the dev list. Thank you again, Pablo -- Pablo Barrera http://gsyc.es/~barrera/
Re: Locationmap does not work with dispatcher
On Thu, 2008-09-11 at 09:58 +1000, David Crossley wrote: > Pablo Barrera wrote: > > > > I have a problem with dispatcher and I am still stuck with it. > > The Dispatcher is in development and issues with its > use should be discussed on the "dev" mailing list. > Most developers will have read your message here > so you can just refer to it. IMO it is not a dispatcher problem at all. However besides the wiki the other plugins used are in the whiteboard so definitely a dev topic. salu2 -- Thorsten Scherler thorsten.at.apache.org Open Source Java consulting, training and solutions
Re: Locationmap does not work with dispatcher
Pablo Barrera wrote: > > I have a problem with dispatcher and I am still stuck with it. The Dispatcher is in development and issues with its use should be discussed on the "dev" mailing list. Most developers will have read your message here so you can just refer to it. -David
Re: Locationmap does not work with dispatcher
On Wed, 2008-09-10 at 16:30 +0100, Pablo Barrera wrote: > Hello, > > I have a problem with dispatcher and I am still stuck with it. I am > trying to use forrest to convert documents from moinmoin format to TEI > format. I use locationmap.xml to search the pages in the remote wiki > server. The system is working correctly, producing TEI and HTML outputs. > > However I would like to improve a little bit the result. I want to > introduce a new component in the final document which html or tei? > that includes all the > links within the text. Some sort of "Reference" section. To do so I've > started to use dispatcher but with no luck. Let us see what the problem may be. > > When I activate the plugins for dispatcher in forrest.properties the > system does not work with locationmap. I am able to produce a TEI or a > HTML document from a moinmoin document, but only if it is located in > the content dir. But when I use try to use the remove server I obtain > different errors: > > Message: null > Description: No details available. > Sender: org.apache.cocoon.servlet.CocoonServlet > Source: Cocoon Servlet > Request URI > wiki/CommunityTools.html > > cause > dispatcherError: 500 - Internal server error > The contract "siteinfo-meta-navigation" has thrown thrown an exception > by resolving raw data from "cocoon://wiki/ > CommunityTools.navigation.xml". > dispatcherErrorStack: > org.apache.excalibur.source.SourceNotFoundException: Exception > during processing of cocoon://wiki/CommunityTools.navigation.xml > This error tells me that wiki/CommunityTools.navigation.xml cannot be resolved. Ross mentioned forrestbar, if you request above page and press "dispatcher-dev -> Intermediate format" what do you get? Further what does wiki/CommunityTools.xml returns? > or > > Message: Resource Not Found > Description: The requested resource "/wiki/CommunityTools.tei" could > not be found > Sender: org.apache.cocoon.servlet.CocoonServlet > Source: Cocoon Servlet > That does not seems to be the dispatcher but a general message from the tei plugin. > I have looking to the documentation but I haven't found anything about > this particular issue. Any idea? seems to me the cause is a 404 file not found error now we need to track down where and why it happens. salu2 -- Thorsten Scherler thorsten.at.apache.org Open Source Java consulting, training and solutions
Re: Locationmap does not work with dispatcher
On 10/09/2008, at 16:48:10, Ross Gardler wrote: Pablo Barrera wrote: When I activate the plugins for dispatcher in forrest.properties the system does not work with locationmap. I am able to produce a TEI or a HTML document from a moinmoin document, but only if it is located in the content dir. But when I use try to use the remove server I obtain different errors: Message: null Description: No details available. Sender: org.apache.cocoon.servlet.CocoonServlet Source: Cocoon Servlet Request URI wiki/CommunityTools.html cause dispatcherError: 500 - Internal server error The contract "siteinfo-meta-navigation" has thrown thrown an exception by resolving raw data from "cocoon://wiki/ CommunityTools.navigation.xml". dispatcherErrorStack: org.apache.excalibur.source.SourceNotFoundException: Exception during processing of cocoon://wiki/CommunityTools.navigation.xml or Message: Resource Not Found Description: The requested resource "/wiki/CommunityTools.tei" could not be found Sender: org.apache.cocoon.servlet.CocoonServlet Source: Cocoon Servlet When you say you get different errors, is it predictable which error you get? It depends on the page I asking for and the document format. The error I sent are for the same file with different formats. I still trying to figure out if there is a fixed pattern. You might want to install the forrestbar [1] (assuming you use Firefox) this has a set of options that are really useful in debugging the dispatcher. It helps understand what parts of a request are working and which are failing. I have one already installed but I was unable to get hints of it. Someone else might be able to help you with more targetted info. Ross Thanks you, Pablo -- Pablo Barrera http://gsyc.es/~barrera/
Re: Locationmap does not work with dispatcher
Pablo Barrera wrote: When I activate the plugins for dispatcher in forrest.properties the system does not work with locationmap. I am able to produce a TEI or a HTML document from a moinmoin document, but only if it is located in the content dir. But when I use try to use the remove server I obtain different errors: Message: null Description: No details available. Sender: org.apache.cocoon.servlet.CocoonServlet Source: Cocoon Servlet Request URI wiki/CommunityTools.html cause dispatcherError: 500 - Internal server error The contract "siteinfo-meta-navigation" has thrown thrown an exception by resolving raw data from "cocoon://wiki/CommunityTools.navigation.xml". dispatcherErrorStack: org.apache.excalibur.source.SourceNotFoundException: Exception during processing of cocoon://wiki/CommunityTools.navigation.xml or Message: Resource Not Found Description: The requested resource "/wiki/CommunityTools.tei" could not be found Sender: org.apache.cocoon.servlet.CocoonServlet Source: Cocoon Servlet When you say you get different errors, is it predictable which error you get? You might want to install the forrestbar [1] (assuming you use Firefox) this has a set of options that are really useful in debugging the dispatcher. It helps understand what parts of a request are working and which are failing. Someone else might be able to help you with more targetted info. Ross [1] http://forrest.apache.org/tools/forrestbar.html