struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (WW-4218) Example struts2-archetype-starter is broken if created from catalog
Date Fri, 11 Oct 2013 05:21:44 GMT

     [ https://issues.apache.org/jira/browse/WW-4218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Lukasz Lenart updated WW-4218:
------------------------------

    Description: 
Create from catalog: 
{noformat}
mvn archetype:generate -DarchetypeCatalog=http://struts.apache.org/ 
{noformat}
Trying to run, browser displays:
{noformat}
Unable to instantiate Action, ${package}.IndexAction, defined for 'index' in namespace '/'${package}.IndexAction

Root cause:
java.lang.ClassNotFoundException: ${package}.IndexAction
{noformat}
in struts.xml:
{code:xml}
        <action name="index" class="${package}.IndexAction">
            <result>/jsp/index.jsp</result>
        </action> 
{code}
package is not substituted. 

I didn't try creating directly:
{noformat}
mvn archetype:generate -B -DgroupId...
{noformat}
i recommend testing too. 

  was:
Create from catalog: 
{noformat}
mvn archetype:generate -DarchetypeCatalog=http://struts.apache.org/ 
{noformat}
Trying to run, browser displays:

Unable to instantiate Action, ${package}.IndexAction, defined for 'index' in namespace '/'${package}.IndexAction

Root cause:
{noformat}
java.lang.ClassNotFoundException: ${package}.IndexAction
{noformat}
in struts.xml:
{code:xml}
        <action name="index" class="${package}.IndexAction">
            <result>/jsp/index.jsp</result>
        </action> 
{code}
package is not substituted. 

I didn't try creating directly:
{noformat}
mvn archetype:generate -B -DgroupId...
{noformat}
i recommend testing too. 


> 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
>             Fix For: 2.3.16
>
>
> Create from catalog: 
> {noformat}
> mvn archetype:generate -DarchetypeCatalog=http://struts.apache.org/ 
> {noformat}
> Trying to run, browser displays:
> {noformat}
> Unable to instantiate Action, ${package}.IndexAction, defined for 'index' in namespace
'/'${package}.IndexAction
> Root cause:
> java.lang.ClassNotFoundException: ${package}.IndexAction
> {noformat}
> in struts.xml:
> {code:xml}
>         <action name="index" class="${package}.IndexAction">
>             <result>/jsp/index.jsp</result>
>         </action> 
> {code}
> package is not substituted. 
> I didn't try creating directly:
> {noformat}
> mvn archetype:generate -B -DgroupId...
> {noformat}
> i recommend testing too. 



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

Mime
View raw message