You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (Jira)" <ji...@apache.org> on 2023/03/29 08:22:00 UTC

[jira] [Commented] (WW-5301) Impossible to select alternate default VelocityManager bean

    [ https://issues.apache.org/jira/browse/WW-5301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17706273#comment-17706273 ] 

Lukasz Lenart commented on WW-5301:
-----------------------------------

That's wrong, {{struts.xml}} must be loaded first in other way all the dependencies are gone. The case here is that the _extension point_ is right now defined in the Velocity plugin, so you must load the struts-plugin.xml to get the extension point and then you can define your own {{VelocityManager}}

> Impossible to select alternate default VelocityManager bean
> -----------------------------------------------------------
>
>                 Key: WW-5301
>                 URL: https://issues.apache.org/jira/browse/WW-5301
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core, Plugin - Velocity
>    Affects Versions: 6.1.1
>            Reporter: Kusal Kithul-Godage
>            Priority: Major
>
> I'm possibly missing something here but as far as I can tell struts-plugin.xml is always loaded before struts.xml.
> Changing the load order here probably isn't a good solution either.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)