You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by Pablo Barrera <ba...@gsyc.es> on 2008/09/10 17:30:27 UTC

Locationmap does not work with dispatcher

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 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.

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

I have looking to the documentation but I haven't found anything about  
this particular issue. Any idea?

I configured forrest as follows:
forrest.properties:
project.required.plugins=org.apache.forrest.plugin.output.pdf,org.apache.forrest.plugin.input.simplifiedDocbook,org.apache.forrest.plugin.input.wiki,org.apache.forrest.plugin.output.tei,org.apache.forrest.plugin.internal.dispatcher,org.apache.forrest.themes.core,org.apache.forrest.plugin.output.inputModule


locationmap.xml:
<locationmap xmlns="http://apache.org/forrest/locationmap/1.0">
   <components>
     <matchers default="lm">
       <matcher
         name="lm"
          
src="org.apache.forrest.locationmap.WildcardLocationMapHintMatcher"/>
     </matchers>
   </components>
   <locator>

     <match pattern="project.wiki/**.moinwiki">
         <location src="http://wiki.MYSERVER/{1}?action=raw" />
     </match>

     <match pattern="project.wiki/**.xml">
	    <location src="http://wiki.MYSERVER/{1}? 
action=format&amp;mimetype=xml/docbook" />
     </match>
   </locator>
</locationmap>


Regards,

Pablo

--
Pablo Barrera
http://gsyc.es/~barrera/


Re: Locationmap does not work with dispatcher

Posted by Thorsten Scherler <th...@apache.org>.
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

Posted by Pablo Barrera <ba...@gsyc.es>.
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

Posted by Ross Gardler <rg...@apache.org>.
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


XSP and jdtcore

Posted by "Dr. Bhatia Praveen" <pr...@sumpurn.com>.
Hi,
  I am trying to get XSP working on my forrest webpages.
  I use 0.8 version and am referring to the XSP link
http://forrest.apache.org/docs_0_80/faq.html#xsp
The download jdtcore-* link on this when clicked points to non-existent
location.
Also, if one goes to svn.apache.org the paths mentioned in forrest faq list
could not be found and I could not locate the jdtcore-*

  I searched for jdtcore's on google and downloaded jdtcore-2.1.0 (also
tried 3.0.2 version of jdtcore) but keep getting following error when
dynamic.xml link for xsp is clicked on the forrest webapp.

NoSuchMethodError
org.eclipse.jdt.internal.compiler.env.NameEnvironmentAnswer<init>
.... AccessRestriction V
Searches over the net suggest this error is due to the different signatures
in the .jar file of what is expected and what is got. However, I cant figure
out how to resolve or get the correct jdtcore-*


  Please advice on where is the correct jdtcore-* available for download for
forrest 0.8 version and how to overcome this problem.

Best wishes
Praveen



Re: Locationmap does not work with dispatcher

Posted by Ross Gardler <rg...@apache.org>.
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

Posted by Pablo Barrera <ba...@gsyc.es>.
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

Posted by Thorsten Scherler <th...@juntadeandalucia.es>.
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

Posted by David Crossley <cr...@apache.org>.
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