This is a 2.1 to 2.2 migration issue. I created a simple c2 block using: mvn archetype:create \ -DarchetypeGroupId=org.apache.cocoon \ -DarchetypeArtifactId=cocoon-22-archetype-block \ -DarchetypeVersion=1.0.0-RC3-SNAPSHOT \ \ -DartifactId=AAQuotes Then I modified it to do an example I have working in cocoon 2.1: a simple application that displays a randomly selected quotation and image. The quotations work as expected, but the path to the images in the result.jx template (shown below) requires the name of my block in the path: I ported this example from a working cocoon 2.1.X version and the image tag was simply: Why is the block name required in the path to fetch the image when using cocoon 2.2? I would expect the location of the sitemap to be the root for finding files. If I omit the block name, I get an error of the form: javax.servlet.ServletException: No block for /148.gif I have quite a bit of work to move from cocoon 2.1 to 2.2, it would be nice if this behaviour could be configured to go away... Thanks for any insights... -Hugh Sparks, ******************************************************* An outline of the block: Block directory AAQuotes\src\main\resources\COB-INF: images/ 1.gif ... 127.gif quotes.xml sitemap.xmap result.jx Sitemap.xmap: ... ... flowscript.js: function startup() { var q = Math.floor( Math.random() * numberOfQuotations + 1).toString() ; var m = Math.floor( Math.random() * numberOfImages + 1).toString() ; cocoon.sendPage("result.jx", {quoteNumber: q, imageNumber: m}) ; } result.jx: Quotations


******************************************************* --------------------------------------------------------------------- To unsubscribe, e-mail: For additional commands, e-mail: