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.

        Activity

        Hide
        hudson Hudson added a comment -

        SUCCESS: Integrated in Struts2-JDK6 #807 (See https://builds.apache.org/job/Struts2-JDK6/807/)
        WW-4218 Adds proper filtering of $

        {package}

        attribute (lukaszlenart: rev 1531208)

        • /struts/struts2/trunk/archetypes/struts2-archetype-starter/src/main/resources/META-INF/maven/archetype-metadata.xml
        Show
        hudson Hudson added a comment - SUCCESS: Integrated in Struts2-JDK6 #807 (See https://builds.apache.org/job/Struts2-JDK6/807/ ) WW-4218 Adds proper filtering of $ {package} attribute (lukaszlenart: rev 1531208) /struts/struts2/trunk/archetypes/struts2-archetype-starter/src/main/resources/META-INF/maven/archetype-metadata.xml
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 1531208 from Lukasz Lenart in branch 'struts2/trunk'
        [ https://svn.apache.org/r1531208 ]

        WW-4218 Adds proper filtering of $

        {package}

        attribute

        Show
        jira-bot ASF subversion and git services added a comment - Commit 1531208 from Lukasz Lenart in branch 'struts2/trunk' [ https://svn.apache.org/r1531208 ] WW-4218 Adds proper filtering of $ {package} attribute
        Hide
        lukaszlenart Lukasz Lenart added a comment -

        Solved, thanks for reporting!

        Show
        lukaszlenart Lukasz Lenart added a comment - Solved, thanks for reporting!

          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:

              Development