Hello, I'm having problems with the scratchpad precept samples. I can get the first page of "example1.html" to appear, but when I click on the "Next Page" button, I get a "file not found" exception. From the logs it is clear that the demo action set is not returning the proper value of the page parameter. Further examination suggests that the demoflow action corresponding to the posted name/value pair cocoon-action-next2=Next%20Page is not being executed. Hence, no {page} is available to the sitemap and the source for the xslt transformation evaluates as "example1/.xml".
I figure I must be doing some simple thing wrong, but what? I have been spinning my wheels for a couple of days now. I am using the Cocoon 2.0.2 release with precept stuff from the most recent CVS. I run Cocoon on a MacOSX box under jakarta-tomcat-4.0.1 and jre 1.3.1. Cheers, --Michael FROM SITEMAP.XMAP *************** <map:action-sets> <map:action-set name="demo"> <map:act type="demoflow"/> <map:act type="demoflow" action="prev1"> <map:parameter name="method" value="prev1"/> </map:act> <map:act type="demoflow" action="prev2"> <map:parameter name="method" value="prev2"/> </map:act> <map:act type="demoflow" action="prev3"> <map:parameter name="method" value="prev3"/> </map:act> <map:act type="demoflow" action="prev4"> <map:parameter name="method" value="prev4"/> </map:act> <map:act type="demoflow" action="next2"> <map:parameter name="method" value="next2"/> </map:act> <map:act type="demoflow" action="next3"> <map:parameter name="method" value="next3"/> </map:act> <map:act type="demoflow" action="next4"> <map:parameter name="method" value="next4"/> </map:act> <map:act type="demoflow" action="submit"> <map:parameter name="method" value="submit"/> </map:act> </map:action-set> </map:action-sets> <snip /> <map:match pattern="app/**"> <map:match pattern="**/example1.*"> <map:act set="demo"> <map:generate src="example1/{page}.xml"/> <map:transform type="instance"/> <map:transform src="example1/{page}.xsl"/> <map:serialize/> </map:act> </map:match> </map:match> SITEMAP LOG AFTER INITAL GET OF EXAMPLE1.HTML ********************************************* <snip /> DEBUG (2002-04-08) 02:31.01:306 [sitemap](/cocoon/mount/precept/app/example1.html) HttpProcessor[8080][4]/InvokeContext: Current Sitemap Parameters: PARAM: 'page' VALUE: 'view1' <--{page} IS SET PARAM: '../2' VALUE: 'html' PARAM: '../1' VALUE: 'app' PARAM: '../0' VALUE: 'app/example1.html' PARAM: '../../1' VALUE: 'example1.html' PARAM: '../../0' VALUE: 'app/example1.html' PARAM: '../../../requestQuery' VALUE: '' PARAM: '../../../context' VALUE: '/cocoon' PARAM: '../../../requestURI' VALUE: '/cocoon/mount/precept/app/example1.html' PARAM: '../../../../1' VALUE: 'app/example1' PARAM: '../../../../0' VALUE: 'app/example1.html' <snip /> SITEMAP LOG AFTER POSTING EXAMPLE1.HTML BY PRESSING "NEXT PAGE" BUTTON ********************************************************************** <snip /> DEBUG (2002-04-08) 02:33.58:902 [sitemap](/cocoon/mount/precept/app/example1.html) HttpProcessor[8080][4]/InvokeContext: Current Sitemap Parameters: PARAM: '../2' VALUE: 'html' <-- {page} IS NOT SET PARAM: '../1' VALUE: 'app' PARAM: '../0' VALUE: 'app/example1.html' PARAM: '../../1' VALUE: 'example1.html' PARAM: '../../0' VALUE: 'app/example1.html' PARAM: '../../../requestQuery' VALUE: '' PARAM: '../../../context' VALUE: '/cocoon' PARAM: '../../../requestURI' VALUE: '/cocoon/mount/precept/app/example1.html' PARAM: '../../../../1' VALUE: 'app/example1' PARAM: '../../../../0' VALUE: 'app/example1.html' <snip /> org.apache.cocoon.ProcessingException: Exception during processing of file:/Library/jakarta-tomcat-4.0.1/webapps/cocoon/mount/precept/example1/.xsl: java.io.FileNotFoundException: /Library/jakarta-tomcat-4.0.1/webapps/cocoon/mount/precept/example1/.xsl (No such file or directory) at org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStreamSource.java:211) at org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XSLTProcessorImpl.java:233) at org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XSLTProcessorImpl.java:204) at org.apache.cocoon.transformation.TraxTransformer.setup(TraxTransformer.java:295) at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:215) at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:279) at org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:142) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:320) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:153) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85) at org.apache.cocoon.components.treeprocessor.sitemap.ActSetNode.invoke(ActSetNode.java:120) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:156) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:156) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85) at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:150) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:156) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:140) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:130) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:323) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:293) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:131) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:156) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:140) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:130) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:323) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:293) at org.apache.cocoon.Cocoon.process(Cocoon.java:575) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106) at java.lang.Thread.run(Thread.java:496) <snip /> --------------------------------------------------------------------- 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]>