struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Sánchez (JIRA) <j...@apache.org>
Subject [jira] [Created] (WW-4218) Example struts2-archetype-starter is broken if created from catalog
Date Thu, 10 Oct 2013 15:25:42 GMT
Antonio Sánchez created WW-4218:
-----------------------------------

             Summary: Example struts2-archetype-starter is broken if created from catalog
                 Key: WW-4218
                 URL: https://issues.apache.org/jira/browse/WW-4218
             Project: Struts 2
          Issue Type: Bug
          Components: Example Applications
            Reporter: Antonio Sánchez


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. 



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message