Christian Mayrhuber wrote:

I read somewhere that there has been a change in sitemap variable handling
in the current 2.1 cvs.

How do I fix PatternExceptions similiar to this one occuring in the proxy block samples from current 2.1 cvs?

org.apache.cocoon.sitemap.PatternException: Evaluation error in expression: http://{request:serverName}:{request:serverPort}{request:contextPath}


Can you apply the attached patch, to your Cocoon source, and see if it fixes it. Simple, but should work.

My Cocoon setup is broken a present as I'm working on something else.

Let me know. If it works, I'll commit it.

Upayavira


Index: 
src/java/org/apache/cocoon/components/treeprocessor/variables/PreparedVariableResolver.java
===================================================================
RCS file: 
/home/cvs/cocoon-2.1/src/java/org/apache/cocoon/components/treeprocessor/variables/PreparedVariableResolver.java,v
retrieving revision 1.7
diff -u -r1.7 PreparedVariableResolver.java
--- 
src/java/org/apache/cocoon/components/treeprocessor/variables/PreparedVariableResolver.java
 4 Apr 2004 06:38:16 -0000       1.7
+++ 
src/java/org/apache/cocoon/components/treeprocessor/variables/PreparedVariableResolver.java
 13 Apr 2004 21:28:03 -0000
@@ -140,6 +140,7 @@
                     if (lastTokenType != PREFIXED_SITEMAP_VAR &&
                         lastTokenType != ANCHOR_VAR &&
                         lastTokenType != THREADSAFE_MODULE &&
+                        lastTokenType != CLOSE &&
                         lastTokenType != STATEFUL_MODULE) {
                             continue;
                     }

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

Reply via email to