Chris Williams created WW-3864:
----------------------------------

             Summary: 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


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

        

Reply via email to