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

Example struts2-archetype-starter is broken if created from catalog

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.16
    • Component/s: Example Applications
    • Labels:
      None

      Description

      Create from catalog:

      mvn archetype:generate -DarchetypeCatalog=http://struts.apache.org/ 
      

      Trying to run, browser displays:

      Unable to instantiate Action, ${package}.IndexAction, defined for 'index' in namespace '/'${package}.IndexAction
      
      Root cause:
      java.lang.ClassNotFoundException: ${package}.IndexAction
      

      in struts.xml:

              <action name="index" class="${package}.IndexAction">
                  <result>/jsp/index.jsp</result>
              </action> 
      

      package is not substituted.

      I didn't try creating directly:

      mvn archetype:generate -B -DgroupId...
      

      i recommend testing too.

        Attachments

          Activity

            People

            • Assignee:
              lukaszlenart Lukasz Lenart
              Reporter:
              antonioares Antonio Sánchez
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: