Silvano Maffeis created TILES-554: ------------------------------------- Summary: Compatibility bug in BaseLocaleUrlDefinitionDAO.loadDefinitionsFromURL Key: TILES-554 URL: https://issues.apache.org/jira/browse/TILES-554 Project: Tiles Issue Type: Bug Components: tiles-core Affects Versions: 2.2.2 Reporter: Silvano Maffeis
I found a compatibility issue when running tiles under Apache Felix. The Tiles method BaseLocaleUrlDefinitionDAO.loadDefinitionsFromURL(URL url) assumes a FileNotFoundException is thrown by the underlying URL handler, when the resource pointed to by the URL cannot be found. However, a URL does not necessarily have to denote a file in the filesystem. Therefore I think you should not expect a FileNotFoundException here. Therefore the Apache Felix URL loader will through a IOException, and not a FileNotFoundException. Therefore the finding of localized resources will fail when running Tile under Apache Felix. Proposed fix: Can BaseLocaleUrlDefinitionDAO.loadDefinitionsFromURL be changed, so that only IOException is treated, the same way as you currently treat FileNotFoundException? Actually the Apache Felix folks think the current Felix URL handler implementation (throwing IOException and not FileNotFoundException!) is correct: http://mail-archives.apache.org/mod_mbox/felix-users/201202.mbox/%3c4f3305cf.9040...@ungoverned.org%3E -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira