Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.3.4
-
None
Description
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.