struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <>
Subject [jira] [Commented] (WW-3981) Struts.xml not found
Date Sat, 16 Feb 2013 19:09:12 GMT


Lukasz Lenart commented on WW-3981:

It's served that way because you configured it in that way (you said nothing about your environment
and as I can see you use Eclipse). In normally packaged application there be no {{src/main/webapp}}
and {{src/main/java}} inside the war archive.

Do an experiment for me, run {{mvn package}}, check the {{target}} folder if there is a *.war
file. Extract it as it is a simple zip archive and check what you have in {{WEB-INF/classes}}.

What you pointed as bug it is not - there is a billions of applications which work perfectly
fine with the pointed code.
> Struts.xml not found
> --------------------
>                 Key: WW-3981
>                 URL:
>             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:

View raw message