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/09/18 08:56:53 UTC

[jira] [Updated] (WW-3787) struts.xml not loading other xml files when in a jar

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

Lukasz Lenart updated WW-3787:
------------------------------

    Fix Version/s:     (was: 2.3.16)
                   2.3.17
    
> struts.xml not loading other xml files when in a jar
> ----------------------------------------------------
>
>                 Key: WW-3787
>                 URL: https://issues.apache.org/jira/browse/WW-3787
>             Project: Struts 2
>          Issue Type: Bug
>          Components: XML Configuration
>    Affects Versions: 2.1.8, 2.3.1.2
>            Reporter: Juan Alvarez G
>             Fix For: 2.3.17
>
>
> My struts.xml has something like this:
> <include file="struts/*.xml" />
> which works fine when the war is exploded and the files are under WEB-INF\classes
> but I build the application (war) with maven2 and I do package classes in a jar file. 
> When Tomcat starts (tried with Tomcat 5 and Tomcat 7) only the main struts.xml (which is inside the jar) is loaded but not the ones inside struts/*.xml
> Am I doing something wrong? I looked for other options like <include file="classpath:..." /> but doesnt work
> Documentation says you can split the file and put into other jars but only with the name struts.xml. I do need multple files in a jar.
> Please advise.

--
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