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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.3.16
    • Example Applications
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: