You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Vaskin Kissoyan <vk...@lokion.com> on 2002/09/14 19:15:11 UTC

HEAD build gives internal error on sitemap that works in 2.0.3

Hi all,

I'm getting the following when upgrading an app from 2.0.3 where it this 
sitemap is working fine, to the HEAD, (latest build sometime last week), 
its been like this for a while, I can build war with all the extra libs 
and stuff just fine, but I run into this error everytime on one of my 
subsitemaps:

Cocoon 2 - Internal server error

type fatal

message Cannot get component selector for 'match' at 
file:/D:/tomcat/webapps/cocoon/recipes/sitemap.xmap:30:29

description 
org.apache.avalon.framework.configuration.ConfigurationException: Cannot 
get component selector for 'match' at 
file:/D:/tomcat/webapps/cocoon/widgets/sitemap.xmap:30:29

--
ANY help would be appreciated! Thanks!

---- Here is the mount pipeline --------
   <map:pipeline>

   <!-- match the widgets homepage -->
   <map:match pattern="widgets">
     <map:mount uri-prefix="widgets" check-reload="yes"
       reload-method="synchron" src="widgets/"/>
   </map:match>

   <!-- match all other widgets pages -->
   <map:match pattern="widgets/**">
     <map:mount uri-prefix="widgets" check-reload="yes"
       reload-method="synchron" src="widgets/"/>
   </map:match>
   </map:pipeline>





----------------------------
Here is the sitemap
---<cut below>---
<?xml version="1.0"?>

<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">

   <map:components>

     <map:generators default="file"/>

     <map:transformers default="xslt">
       <map:transformer name="xslt"
         src="org.apache.cocoon.transformation.TraxTransformer"/>
     </map:transformers>

     <map:readers default="resource"/>

     <map:serializers default="html">
       <map:serializer name="html" mime-type="text/html"
         src="org.apache.cocoon.serialization.HTMLSerializer"/>
     </map:serializers>

     <map:matchers default="wildcard">
       <map:matcher name="wildcard"
         src="org.apache.cocoon.matching.WildcardURIMatcherFactory"/>
     </map:matchers>

   </map:components>

   <map:pipelines>
     <map:pipeline>

       <!-- homepage -->
       <map:match pattern="">
         <map:redirect-to session="false" uri="widgets/home/home.section"/>
       </map:match>

       <map:match pattern="**widget_images/*.jpg">
        <map:read src="widget_images/{2}.jpg" mime-type="image/jpeg"/>
       </map:match>

       <map:match pattern="**widget_images/*.gif">
        <map:read src="widget_images/{2}.gif" mime-type="image/gif"/>
       </map:match>

       <!-- pages -->
       <map:match pattern="*/*.*">
         <map:generate src="documents/{1}/{2}.xml"/>
         <map:transform src="stylesheets/{3}.xsl">
           <map:parameter name="section" value="{1}"/>
           <map:parameter name="toc-file" value="../documents/toc.xml"/>
           <map:parameter name="base-url" value="/cocoon/widgets"/>
         </map:transform>
         <map:transform src="stylesheets/menupage.xsl">
           <map:parameter name="section" value="{1}"/>
           <map:parameter name="request-url" value="{2}.{3}"/>
           <map:parameter name="toc-file" value="../documents/toc.xml"/>
           <map:parameter name="css-stylesheet" value="default.css"/>
           <map:parameter name="base-url" value="/cocoon/widgets"/>
         </map:transform>
         <map:serialize/>
       </map:match>

       <!-- css stylesheets -->
       <map:match pattern="*.css">
         <map:read src="css/{1}.css" mime-type="text/css"/>
       </map:match>


     </map:pipeline>

     <map:pipeline>
      <map:match pattern="logic/*">
       <map:generate src="logic/{1}.xsp" type="serverpages"/>
       <map:transform src="stylesheets/dynamic-page2html.xsl">
         <map:parameter name="view-source" 
value="docs/samples/xsp/{1}.xsp"/>
       </map:transform>
       <map:serialize/>
      </map:match>
     </map:pipeline>


   </map:pipelines>

</map:sitemap>


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


Re: HEAD build gives internal error on sitemap that works in 2.0.3

Posted by Sylvain Wallez <sy...@anyware-tech.com>.
Vaskin Kissoyan wrote:

> Hi all,
>
> I'm getting the following when upgrading an app from 2.0.3 where it 
> this sitemap is working fine, to the HEAD, (latest build sometime last 
> week), its been like this for a while, I can build war with all the 
> extra libs and stuff just fine, but I run into this error everytime on 
> one of my subsitemaps:
>
> Cocoon 2 - Internal server error
>
> type fatal
>
> message Cannot get component selector for 'match' at 
> file:/D:/tomcat/webapps/cocoon/recipes/sitemap.xmap:30:29
>
> description 
> org.apache.avalon.framework.configuration.ConfigurationException: 
> Cannot get component selector for 'match' at 
> file:/D:/tomcat/webapps/cocoon/widgets/sitemap.xmap:30:29
>
> -- 
> ANY help would be appreciated! Thanks!


You should replace 
"org.apache.cocoon.matching.WildcardURIMatcherFactory" by 
"org.apache.cocoon.matching.WildcardURIMatcher".

MatcherFactories have been deprecated months ago and have been removed 
in  Cocoon 2.1

Sylvain

-- 
Sylvain Wallez
 Anyware Technologies                  Apache Cocoon
 http://www.anyware-tech.com           mailto:sylvain@apache.org




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