Is anyone aware of this as a bug, or am I doing something improperly?
Whenever I have an instance in my sitemap where I use both an input
module and a sitemap parameter, cocoon breaks if I subsequently modify
the sitemap.  For example, I have the following in my sitemap:

<map:match pattern="*.gif">
   <map:read src="sites/{URI:}/images/{1}.gif" mime-type="image/gif" />
</map:match>

If I modify and save the sitemap, cocoon will throw:

java.lang.ClassCastException: java.lang.String
        at
org.apache.cocoon.components.treeprocessor.variables.PreparedVariableRes
olver.dispose(PreparedVariableResolver.java:284)
        at
org.apache.cocoon.components.treeprocessor.TreeProcessor.disposeTree(Tre
eProcessor.java:434)
        at
org.apache.cocoon.components.treeprocessor.TreeProcessor.setupRootNode(T
reeProcessor.java:384)
        at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro
cessor.java:320)
        at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro
cessor.java:308)
        at org.apache.cocoon.Cocoon.process(Cocoon.java:595)


Note this happens only if BOTH an input module and sitemap parameter are
being used.  For example, the following do NOT cause problems:

<map:match pattern="*.gif">
   <map:read src="sites/test.com/images/{1}.gif" mime-type="image/gif"
/>
</map:match>

<map:match pattern="*.gif">
   <map:read src="sites/{URI:}/images/img1.gif" mime-type="image/gif" />
</map:match>




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

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

Reply via email to