You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Johannes Geppert (JIRA)" <ji...@apache.org> on 2012/08/23 20:34:42 UTC

[jira] [Resolved] (WW-3864) struts2-archetype-blank compile error

     [ https://issues.apache.org/jira/browse/WW-3864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Johannes Geppert resolved WW-3864.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.3.5

The method addConfigurationProvider was marked as deprecated and replaced by  addContainerProvider. With version 2.3.x this method was removed.
                
> struts2-archetype-blank compile error
> -------------------------------------
>
>                 Key: WW-3864
>                 URL: https://issues.apache.org/jira/browse/WW-3864
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Other, Unit Tests
>    Affects Versions: 2.3.4
>            Reporter: Chris Williams
>            Assignee: Johannes Geppert
>            Priority: Minor
>             Fix For: 2.3.5
>
>
> Using maven to create a new struts2-archetype-blank project and trying to build it gives a compilation error on ConfigTest:
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile (default-testCompile) on project GetVsPostTest: Compilation failure
> [ERROR] /code/tutorial/src/test/java/tutorial/example/ConfigTest.java:[65,28] cannot find symbol
> [ERROR] symbol  : method addConfigurationProvider(com.opensymphony.xwork2.config.providers.XmlConfigurationProvider)
> [ERROR] location: class com.opensymphony.xwork2.config.ConfigurationManager
> Changing this line in ConfigTest.java:
> configurationManager.addConfigurationProvider(c);
> to this:
> configurationManager.addContainerProvider( c );
> fixes the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira