Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3864

struts2-archetype-blank compile error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3.4
    • 2.3.7
    • Other, Unit Tests
    • 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.

      Attachments

        Activity

          People

            jogep Johannes Geppert
            cwilliams Chris Williams
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: