You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Rick Tessner <ri...@dingle.myra.com> on 2000/11/16 00:22:08 UTC
C2 : probs. Help!
Hello All!
I seem to be having a bit of a problem with the sitemap.xmap in
Cocoon2 while using the "regexp" stuff in the <map:match>.
Here's what I have in the sitemap:
<map:pipelines>
<map:pipeline>
<map:match type="regexp" pattern="^~([^/]*)/(.*).pdf">
<map:generate src="/home/{1}/public_xml/{2}.xml"/>
<map:transform src="/usr/local/xsl/myra/docbook-fo.xsl"/>
<map:serialize type="fo2pdf"/>
</map:match>
<map:handle-errors>
<map:transform src="stylesheets/system/error2html.xsl"/>
<map:serialize status-code="500"/>
</map:handle-errors>
</map:pipeline>
</map:pipelines>
And, what I get back from Cocoon2 (very latest build, as of 5 minutes ago)
Error creating the resource
error occurred during evaluation of expression "/home/{1}/public_xml/{2}.xml"
at position 7 Index: 0, Size: 0
details
from
source org.apache.cocoon.sitemap.PatternException
description org.apache.cocoon.sitemap.PatternException: error occurred
during evaluation of expression "/home/{1}/public_xml/{2}.xml"
at position 7 Index: 0, Size: 0
extra info
org.apache.cocoon.sitemap.PatternException: error occurred
during evaluation of expression "/home/{1}/public_xml/{2}.xml"
at position 7
Index: 0, Size: 0
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at org.apache.cocoon.sitemap.PatternException.<init>
(PatternException.java:25)
at org.apache.cocoon.sitemap.AbstractSitemap.substitute(Compiled Code)
at _dsk01._jakarta_tomcat_4_0_m3._webapps._cocoon._sitemap_xmap.process(
_sitemap_xmap.java:608)
Anyone have any ideas on this one? Is there something obvious I'm
overlooking here?
--
Rick Tessner rick@myra.com
MYRA Systems Corp. Fone: (250) 381 1335 x125 Phax: (250) 381 1304
Cell: (250) 885 9452
"Hmmm. They have the Internet on computers now!"
Re: C2 : probs. Help!
Posted by Paul Russell <pa...@luminas.co.uk>.
On Thu, Nov 16, 2000 at 12:09:38AM +0000, Paul Russell wrote:
> On Wed, Nov 15, 2000 at 11:51:35PM +0000, Paul Russell wrote:
> > On Wed, Nov 15, 2000 at 03:22:08PM -0800, Rick Tessner wrote:
> > > I seem to be having a bit of a problem with the sitemap.xmap in
> > > Cocoon2 while using the "regexp" stuff in the <map:match>.
> > As it happens, I've just been looking through the regexp code
> > (writing a new dead simple matcher). Someone seems to have
> > disabled the parameters for the time being. I'm just gonna see
> > if I can find out why...
> Berin, seems to have been you, way back at revision 1.1.2.12.
> Before I lob a patch out, is there a particular reason why?
I've just posted a patch, which I would imagine will get applied
this evening (UTC) sometime. (I'm not a committer). Keep an eye
on the commit logs...
Paul
--
Paul Russell <pa...@luminas.co.uk>
Technical Director, http://www.luminas.co.uk
Luminas Ltd.
Re: C2 : probs. Help!
Posted by Paul Russell <pa...@luminas.co.uk>.
On Wed, Nov 15, 2000 at 11:51:35PM +0000, Paul Russell wrote:
> On Wed, Nov 15, 2000 at 03:22:08PM -0800, Rick Tessner wrote:
> > I seem to be having a bit of a problem with the sitemap.xmap in
> > Cocoon2 while using the "regexp" stuff in the <map:match>.
> As it happens, I've just been looking through the regexp code
> (writing a new dead simple matcher). Someone seems to have
> disabled the parameters for the time being. I'm just gonna see
> if I can find out why...
Berin, seems to have been you, way back at revision 1.1.2.12.
Before I lob a patch out, is there a particular reason why?
Paul
--
Paul Russell <pa...@luminas.co.uk>
Technical Director, http://www.luminas.co.uk
Luminas Ltd.
Re: C2 : probs. Help!
Posted by Paul Russell <pa...@luminas.co.uk>.
On Wed, Nov 15, 2000 at 03:22:08PM -0800, Rick Tessner wrote:
> Hello All!
>
> I seem to be having a bit of a problem with the sitemap.xmap in
> Cocoon2 while using the "regexp" stuff in the <map:match>.
As it happens, I've just been looking through the regexp code
(writing a new dead simple matcher). Someone seems to have
disabled the parameters for the time being. I'm just gonna see
if I can find out why...
Paul
--
Paul Russell <pa...@luminas.co.uk>
Technical Director, http://www.luminas.co.uk
Luminas Ltd.