You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by "David Crossley (JIRA)" <ji...@apache.org> on 2006/09/20 03:41:22 UTC

[jira] Created: (FOR-932) forrest war error: Cannot get variable 'dispatcher.theme-ext'

forrest war error: Cannot get variable 'dispatcher.theme-ext'
-------------------------------------------------------------

                 Key: FOR-932
                 URL: http://issues.apache.org/jira/browse/FOR-932
             Project: Forrest
          Issue Type: Bug
          Components: Dispatcher (aka views), Launch servlet WAR
    Affects Versions: 0.8-dev
            Reporter: David Crossley


A dispatcher-enabled site does work okay with 'forrest run'. However, not with 'forrest war' deploying to a servlet container. It seems that Dispatcher is missing the setup of properties. Yes i do have forrest.properties.xml settings.

The Forrest error.log has this ...

ERROR   (2006-09-20) 10:53.57:909   [core.modules.mapper.lm] (/varietee/index.html) http-8080-Processor5/MountNode: Failure processing LocationMap.
org.apache.cocoon.sitemap.PatternException: Cannot get variable 'dispatcher.theme-ext' in expression '{properties:resources}/structurer/url/{1}{properties:dispatcher.theme-ext}'
        at org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.processModule(PreparedVariableResolver.java:250)
        at org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.resolve(PreparedVariableResolver.java:197)
        at org.apache.forrest.locationmap.lm.LocationNode.locate(LocationNode.java:65)
        at org.apache.forrest.locationmap.lm.SelectNode.locate(SelectNode.java:110)
        at org.apache.forrest.locationmap.lm.MatchNode.locate(MatchNode.java:131)
...
... [snip] ... see attachment error.log


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (FOR-932) forrest war error: Cannot get variable 'dispatcher.theme-ext'

Posted by "Ross Gardler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FOR-932?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ross Gardler updated FOR-932:
-----------------------------

    Fix Version/s: 0.9

a mail thread relating to this?

http://marc.info/?l=forrest-dev&m=117456083506523&w=2

> forrest war error: Cannot get variable 'dispatcher.theme-ext'
> -------------------------------------------------------------
>
>                 Key: FOR-932
>                 URL: https://issues.apache.org/jira/browse/FOR-932
>             Project: Forrest
>          Issue Type: Bug
>          Components: Launch servlet WAR, Locationmap
>    Affects Versions: 0.8-dev
>            Reporter: David Crossley
>             Fix For: 0.9
>
>         Attachments: error.log, provoke.error.diff
>
>
> A dispatcher-enabled site does work okay with 'forrest run'. However, not with 'forrest war' deploying to a servlet container. It seems that Dispatcher is missing the setup of properties. Yes i do have forrest.properties.xml settings.
> The Forrest error.log has this ...
> ERROR   (2006-09-20) 10:53.57:909   [core.modules.mapper.lm] (/varietee/index.html) http-8080-Processor5/MountNode: Failure processing LocationMap.
> org.apache.cocoon.sitemap.PatternException: Cannot get variable 'dispatcher.theme-ext' in expression '{properties:resources}/structurer/url/{1}{properties:dispatcher.theme-ext}'
>         at org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.processModule(PreparedVariableResolver.java:250)
>         at org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.resolve(PreparedVariableResolver.java:197)
>         at org.apache.forrest.locationmap.lm.LocationNode.locate(LocationNode.java:65)
>         at org.apache.forrest.locationmap.lm.SelectNode.locate(SelectNode.java:110)
>         at org.apache.forrest.locationmap.lm.MatchNode.locate(MatchNode.java:131)
> ...
> ... [snip] ... see attachment error.log

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (FOR-932) forrest war error: Cannot get variable 'dispatcher.theme-ext'

Posted by "David Crossley (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/FOR-932?page=all ]

David Crossley updated FOR-932:
-------------------------------

    Attachment: error.log

> forrest war error: Cannot get variable 'dispatcher.theme-ext'
> -------------------------------------------------------------
>
>                 Key: FOR-932
>                 URL: http://issues.apache.org/jira/browse/FOR-932
>             Project: Forrest
>          Issue Type: Bug
>          Components: Dispatcher (aka views), Launch servlet WAR
>    Affects Versions: 0.8-dev
>            Reporter: David Crossley
>         Attachments: error.log
>
>
> A dispatcher-enabled site does work okay with 'forrest run'. However, not with 'forrest war' deploying to a servlet container. It seems that Dispatcher is missing the setup of properties. Yes i do have forrest.properties.xml settings.
> The Forrest error.log has this ...
> ERROR   (2006-09-20) 10:53.57:909   [core.modules.mapper.lm] (/varietee/index.html) http-8080-Processor5/MountNode: Failure processing LocationMap.
> org.apache.cocoon.sitemap.PatternException: Cannot get variable 'dispatcher.theme-ext' in expression '{properties:resources}/structurer/url/{1}{properties:dispatcher.theme-ext}'
>         at org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.processModule(PreparedVariableResolver.java:250)
>         at org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.resolve(PreparedVariableResolver.java:197)
>         at org.apache.forrest.locationmap.lm.LocationNode.locate(LocationNode.java:65)
>         at org.apache.forrest.locationmap.lm.SelectNode.locate(SelectNode.java:110)
>         at org.apache.forrest.locationmap.lm.MatchNode.locate(MatchNode.java:131)
> ...
> ... [snip] ... see attachment error.log

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (FOR-932) forrest war error: Cannot get variable 'dispatcher.theme-ext'

Posted by "Thorsten Scherler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FOR-932?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thorsten Scherler closed FOR-932.
---------------------------------

    Resolution: Fixed

The problem was that we loaded the forrest.properties too late. 

Resulting that 
// Load plugin default properties
String strPluginList = filteringProperties.getProperty("project.required.plugins");

always have been null.

> forrest war error: Cannot get variable 'dispatcher.theme-ext'
> -------------------------------------------------------------
>
>                 Key: FOR-932
>                 URL: https://issues.apache.org/jira/browse/FOR-932
>             Project: Forrest
>          Issue Type: Bug
>          Components: Launch servlet WAR, Locationmap
>    Affects Versions: 0.8-dev
>            Reporter: David Crossley
>             Fix For: 0.9
>
>         Attachments: error.log, provoke.error.diff
>
>
> A dispatcher-enabled site does work okay with 'forrest run'. However, not with 'forrest war' deploying to a servlet container. It seems that Dispatcher is missing the setup of properties. Yes i do have forrest.properties.xml settings.
> The Forrest error.log has this ...
> ERROR   (2006-09-20) 10:53.57:909   [core.modules.mapper.lm] (/varietee/index.html) http-8080-Processor5/MountNode: Failure processing LocationMap.
> org.apache.cocoon.sitemap.PatternException: Cannot get variable 'dispatcher.theme-ext' in expression '{properties:resources}/structurer/url/{1}{properties:dispatcher.theme-ext}'
>         at org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.processModule(PreparedVariableResolver.java:250)
>         at org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.resolve(PreparedVariableResolver.java:197)
>         at org.apache.forrest.locationmap.lm.LocationNode.locate(LocationNode.java:65)
>         at org.apache.forrest.locationmap.lm.SelectNode.locate(SelectNode.java:110)
>         at org.apache.forrest.locationmap.lm.MatchNode.locate(MatchNode.java:131)
> ...
> ... [snip] ... see attachment error.log

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FOR-932) forrest war error: Cannot get variable 'dispatcher.theme-ext'

Posted by "Thorsten Scherler (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/FOR-932?page=comments#action_12436181 ] 
            
Thorsten Scherler commented on FOR-932:
---------------------------------------

I started my tomcat (5.x) in debugging mode (sh bin/catalina.sh jpda start) and set a breakpoint in the ForrestConfModule.java#getAttribute(...) and t seems that the lookup for above variable never happens (neither for project:resources).

It seems that it is not directly related to the dispatcher but more to the lm.

> forrest war error: Cannot get variable 'dispatcher.theme-ext'
> -------------------------------------------------------------
>
>                 Key: FOR-932
>                 URL: http://issues.apache.org/jira/browse/FOR-932
>             Project: Forrest
>          Issue Type: Bug
>          Components: Launch servlet WAR, Dispatcher (aka views)
>    Affects Versions: 0.8-dev
>            Reporter: David Crossley
>         Attachments: error.log
>
>
> A dispatcher-enabled site does work okay with 'forrest run'. However, not with 'forrest war' deploying to a servlet container. It seems that Dispatcher is missing the setup of properties. Yes i do have forrest.properties.xml settings.
> The Forrest error.log has this ...
> ERROR   (2006-09-20) 10:53.57:909   [core.modules.mapper.lm] (/varietee/index.html) http-8080-Processor5/MountNode: Failure processing LocationMap.
> org.apache.cocoon.sitemap.PatternException: Cannot get variable 'dispatcher.theme-ext' in expression '{properties:resources}/structurer/url/{1}{properties:dispatcher.theme-ext}'
>         at org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.processModule(PreparedVariableResolver.java:250)
>         at org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.resolve(PreparedVariableResolver.java:197)
>         at org.apache.forrest.locationmap.lm.LocationNode.locate(LocationNode.java:65)
>         at org.apache.forrest.locationmap.lm.SelectNode.locate(SelectNode.java:110)
>         at org.apache.forrest.locationmap.lm.MatchNode.locate(MatchNode.java:131)
> ...
> ... [snip] ... see attachment error.log

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (FOR-932) forrest war error: Cannot get variable 'dispatcher.theme-ext'

Posted by "Thorsten Scherler (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/FOR-932?page=all ]

Thorsten Scherler updated FOR-932:
----------------------------------

    Attachment: provoke.error.diff

I am on my way out, but if somebody could apply attached diff to the fresh-site and request http://127.0.0.1:8080/issue-932 you will get as well an error. I try to see whether the problem is in the forrest.properties.xml or whether it is really related to only plugins. 

> forrest war error: Cannot get variable 'dispatcher.theme-ext'
> -------------------------------------------------------------
>
>                 Key: FOR-932
>                 URL: http://issues.apache.org/jira/browse/FOR-932
>             Project: Forrest
>          Issue Type: Bug
>          Components: Launch servlet WAR, Dispatcher (aka views)
>    Affects Versions: 0.8-dev
>            Reporter: David Crossley
>         Attachments: error.log, provoke.error.diff
>
>
> A dispatcher-enabled site does work okay with 'forrest run'. However, not with 'forrest war' deploying to a servlet container. It seems that Dispatcher is missing the setup of properties. Yes i do have forrest.properties.xml settings.
> The Forrest error.log has this ...
> ERROR   (2006-09-20) 10:53.57:909   [core.modules.mapper.lm] (/varietee/index.html) http-8080-Processor5/MountNode: Failure processing LocationMap.
> org.apache.cocoon.sitemap.PatternException: Cannot get variable 'dispatcher.theme-ext' in expression '{properties:resources}/structurer/url/{1}{properties:dispatcher.theme-ext}'
>         at org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.processModule(PreparedVariableResolver.java:250)
>         at org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.resolve(PreparedVariableResolver.java:197)
>         at org.apache.forrest.locationmap.lm.LocationNode.locate(LocationNode.java:65)
>         at org.apache.forrest.locationmap.lm.SelectNode.locate(SelectNode.java:110)
>         at org.apache.forrest.locationmap.lm.MatchNode.locate(MatchNode.java:131)
> ...
> ... [snip] ... see attachment error.log

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (FOR-932) forrest war error: Cannot get variable 'dispatcher.theme-ext'

Posted by "Thorsten Scherler (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/FOR-932?page=all ]

Thorsten Scherler updated FOR-932:
----------------------------------

    Component/s: Locationmap
                     (was: Dispatcher (aka views))

http://127.0.0.1:8888/issue-932 is working fine for me.

Meaning it is not dispatcher related but locationmap.

> forrest war error: Cannot get variable 'dispatcher.theme-ext'
> -------------------------------------------------------------
>
>                 Key: FOR-932
>                 URL: http://issues.apache.org/jira/browse/FOR-932
>             Project: Forrest
>          Issue Type: Bug
>          Components: Launch servlet WAR, Locationmap
>    Affects Versions: 0.8-dev
>            Reporter: David Crossley
>         Attachments: error.log, provoke.error.diff
>
>
> A dispatcher-enabled site does work okay with 'forrest run'. However, not with 'forrest war' deploying to a servlet container. It seems that Dispatcher is missing the setup of properties. Yes i do have forrest.properties.xml settings.
> The Forrest error.log has this ...
> ERROR   (2006-09-20) 10:53.57:909   [core.modules.mapper.lm] (/varietee/index.html) http-8080-Processor5/MountNode: Failure processing LocationMap.
> org.apache.cocoon.sitemap.PatternException: Cannot get variable 'dispatcher.theme-ext' in expression '{properties:resources}/structurer/url/{1}{properties:dispatcher.theme-ext}'
>         at org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.processModule(PreparedVariableResolver.java:250)
>         at org.apache.cocoon.components.treeprocessor.variables.PreparedVariableResolver.resolve(PreparedVariableResolver.java:197)
>         at org.apache.forrest.locationmap.lm.LocationNode.locate(LocationNode.java:65)
>         at org.apache.forrest.locationmap.lm.SelectNode.locate(SelectNode.java:110)
>         at org.apache.forrest.locationmap.lm.MatchNode.locate(MatchNode.java:131)
> ...
> ... [snip] ... see attachment error.log

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira