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] [Commented] (WW-3981) Struts.xml not found
Date Sat, 16 Feb 2013 18:51:12 GMT

    [ https://issues.apache.org/jira/browse/WW-3981?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13579871#comment-13579871
] 

Lukasz Lenart commented on WW-3981:
-----------------------------------

Yes, but that the Maven folder structure, it has nothing to do with Struts2. When you use
{{mvn package}} in the target folder you must have a war archive. And during processing {{src/main/resources}}
all the resources will be transferred into {{WEB-INF/classes}} in the war package.

If you have struts.xml in {{src/main/resources}} but it is missing from {{WEB-INF/classes}}
it means you have some filtering in pom.xml, check this out [1], the last example.

[1] http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html
                
> Struts.xml not found
> --------------------
>
>                 Key: WW-3981
>                 URL: https://issues.apache.org/jira/browse/WW-3981
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.3.8
>         Environment: Struts 2.3.8
> Eclipse + wtp + m2ewtp
> Tomcat
>            Reporter: lefebvre
>         Attachments: URL1.bmp, URL2.bmp
>
>
> On tomcat startup, if serve without publishing is checked
> If struts.xml is into src/main/webapp/web-inf/classes tomcat start correctly
> If struts.xml is into src/main/ressources an exception is throwed : struts.xml not found
> Any idea ?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message