You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (JIRA)" <ji...@apache.org> on 2013/02/16 18:57:13 UTC

[jira] [Comment Edited] (WW-3981) Struts.xml not found

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

Lukasz Lenart edited comment on WW-3981 at 2/16/13 5:56 PM:
------------------------------------------------------------

You can re-open the issue as you want, but ...

as I see you're using Maven and by default all the resource files ({{*.properties, *.xml}}) should be in {{src/main/ressources}} and during building an application all are copied to WEB-INF/classes. If that doesn't happen it means you have some filtering/excluding defined in pom.xml.

Check your project configuration as this has nothing to do with Struts 2.
                
      was (Author: lukaszlenart):
    You can re-open the issue as you want, but ...

as I see you're using Maven and by default all the resource files (*.properties, *.xml) should be in *src/main/ressources* and during building an application all are copied to WEB-INF/classes. If that doesn't happen it means you have some filtering/excluding defined in pom.xml.

Check your project configuration as this has nothing to do with Struts 2.
                  
> 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