I am having problems using action-sets. In an example I created, I have defined the 
following in my SiteMap:

<!-- ======== Action sets ========== -->
<map:action name="session-vo-test-post" src="some.class"/>

<!-- ======== Action sets ========== -->
<map:action-set name="pre-processing">
   <map:act type="session-vo-test-pre" action="init"/>
</map:action-set>

<!-- ======== Pipelines ============ -->
<map:match pattern="entry">
   <map:act set="pre-processing">
      <map:generate src="cocoon:/test"/>
   </map:act>
   <map:serialize/>
</map:match>

When I try accessing the entry pipeline (with  or withour a parameter 
cocoon-action=init) I get the following exception:


======================================================
description:
org.apache.cocoon.ProcessingException: Language Exception: 
org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: 
Line 0, column 0: could not parse error message: Note: sun.tools.javac.Main has been 
deprecated. 
C:\JavaSoft\JBoss\JBoss-2.4.3_Tomcat-4.0\catalina\work\localhost\cocoon\org\apache\cocoon\www\file_\arbejde\test\cocoon\sub\sitemap_xmap.java:1930:
 Undefined variable: action_set_pre map = action_set_pre - ^ Line 1931, column 23: 
Method processing(org.apache.cocoon.sitemap.SitemapRedirector, java.lang.String, 
java.util.List, org.apache.cocoon.environment.Environment, java.util.Map, 
java.lang.String, org.apache.avalon.framework.parameters.Parameters) not found in 
class org.apache.cocoon.www.file_.arbejde.test.cocoon.sub.sitemap_xmap. 

extra info 
org.apache.cocoon.ProcessingException: Language Exception: 
org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap:
Line 0, column 0: could not parse error message: Note: sun.tools.javac.Main has been 
deprecated.
C:\JavaSoft\JBoss\JBoss-2.4.3_Tomcat-4.0\catalina\work\localhost\cocoon\org\apache\cocoon\www\file_\arbejde\test\cocoon\sub\sitemap_xmap.java:1930:
 Undefined variable: action_set_pre
      map = action_set_pre -
            ^

Line 1931, column 23:  Method processing(org.apache.cocoon.sitemap.SitemapRedirector, 
java.lang.String, java.util.List, org.apache.cocoon.environment.Environment, 
java.util.Map, java.lang.String, org.apache.avalon.framework.parameters.Parameters) 
not found in class org.apache.cocoon.www.file_.arbejde.test.cocoon.sub.sitemap_xmap.
====================================================== 

If on the other hand I change the pipeline to using
   <map:act type="session-vo-test-pre">
instead of
   <map:act set="pre-processing">
then the pipeline works perfectly fine.


Any light as to why this exception is thrown and how to solve the problem would be 
much appreciated.

Regards
KP

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to