ServletService-FW handles missing i18n catalogue files incorrect
----------------------------------------------------------------

                 Key: COCOON-2089
                 URL: https://issues.apache.org/jira/browse/COCOON-2089
             Project: Cocoon
          Issue Type: Bug
          Components: - Servlet service framework
    Affects Versions: 2.2-dev (Current SVN)
            Reporter: Felix Knecht


ServletService throws an exception when a specific language catalogue in a 
connected block is not found, even when a general catalogue exists.

Forcing the error:
- Run the cocoon-webapp with the form samples
- Choose following link: 
http://localhost:8888/blocks/cocoon-forms-sample/form1.flow?locale=de-DE
- Click on the "Submit Query" button

You will see the errors in the log file:
btpool0-3 ERROR cocoon - Bundle 
<servlet:forms:/resource/internal/i18n/messages_de_DE.xml> not loaded: Exception
org.apache.cocoon.CascadingIOException: Error during resolving of the input 
stream
        at <map:read> - 
file:/home/felix/svn/apache/cocoon/trunk/core/cocoon-webapp/target/work/blocks/cocoon-forms-impl/sitemap.xmap:29:76


OTH when you copy the 
cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/system/i18n/messages.xml
 into cocoon-forms-sample/src/main/resources/COB-INF/messages and adapt the 
cocoon-forms-sample root sitemap to use the local message.xml catalogue file 
instead of the one from the cocoon-forms-impl block you don't get an error and 
the general catalogue (messages.xml) is silently used instead of the missing 
messages_de_DE.xml.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to