You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jorg Heymans <Jo...@12snap.com> on 2003/05/27 10:19:23 UTC

pipeline matching problem

I have following two entries in my sitemap, the first one works, the second
one gives stacktrace below
The default matcher in sitemap is the wildcardmatcher.. 
 
What is going on here ?
 
WORKS : (url called is http://localhost/cocoon/helloworld.xml)
 
    <map:pipeline>
   <map:match pattern="helloworld.*">
     <map:generate type="request">
        <map:parameter name="generate-attributes" value="true"/>
        <map:parameter name="filetype" value="{1}"/>
     </map:generate>
     <map:transform src="stylesheets/request-to-html.xsl"/>
     <map:serialize type="html"/>
   </map:match>
   </map:pipeline>
 
DOES NOT WORK : (url called is http://localhost/cocoon/perslogo/logo.jpg)
 
    <map:pipeline>
        <map:match pattern="perslogo/logo.*"/>
        <map:generate type="request">
                <map:parameter name="filetype" value="{1}"/>
        </map:generate>
        <map:transform src="stylesheets/personalised_logo.xsl"/>
        <map:serialize type="html"/>
    </map:pipeline>
 
stacktrace below
 
org.apache.cocoon.sitemap.PatternException: error occurred during evaluation
of expression "{1}" at position 1
Index: -1, Size: 0
        at
org.apache.cocoon.sitemap.AbstractSitemap.substitute(AbstractSitemap.java:43
0)
        at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:626)
        at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:492)
        at org.apache.cocoon.sitemap.Handler.process(Handler.java:227)
        at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)
        at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:152)
        at org.apache.cocoon.Cocoon.process(Cocoon.java:579)
        at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
 
----------------------------------------------------------------------------
--
Jorg Heymans
Application Developer
12snap Germany GmbH 
Lazarettstrasse 4
80636 Munich, Germany
Mobile +49-172-8986-051
Office +49-89-30 6666 462
Fax +49-89-5 999 99-999
 
www.12snap.com
 
The information contained in this document is confidential to the sender,
and is intended only for use of the addressee. Unauthorized use, disclosure,
and/or copying is strictly prohibited and may be unlawful. If you have
received this communication in error, please immediately notify us.
 

RE: pipeline matching problem

Posted by Reinhard Pötz <re...@gmx.net>.
From: Jorg Heymans [mailto:Jorg.Heymans@12snap.com] 

 
DOES NOT WORK : (url called is
http://localhost/cocoon/perslogo/logo.jpg)
 
    <map:pipeline>
        <map:match pattern="perslogo/logo.*"/>
                                           ^^^
                                       don't close the match element

HTH
Reinhard
                                     


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org