You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2005/06/22 19:55:34 UTC
DO NOT REPLY [Bug 28051] -
[PATCH] Read "META-INF/struts-config.xml" resources in any JAR included in the application
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28051>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=28051
filippo.munafo@kion.it changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
------- Additional Comments From filippo.munafo@kion.it 2005-06-22 19:55 -------
I've just tested all of this and found a problem with the current
implementation of method splitAndResolvePaths.
Suppose to have this paths in web.xml
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml,META-INF/struts-config.xml</param-
value>
</init-param>
The first one (/WEB-INF/struts-config.xml) is found inside the servlet context.
The second path will never be loaded through the classloader because resource
will never come back to null.
So the first path will be loaded twice!!! And the second never!
You only need to move:
URL resource = null;
inside the while cicle.
Filippo
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org