Grzegorz Kossakowski (JIRA) pisze:
Creation of child settings object is broken -------------------------------------------Key: COCOON-2227 URL: https://issues.apache.org/jira/browse/COCOON-2227 Project: Cocoon Issue Type: Bug Components: * Cocoon Core Affects Versions: 2.2-dev (Current SVN) Reporter: Grzegorz Kossakowski Fix For: 2.2-dev (Current SVN) It seems that there is a problem with creation of child settings object. To reproduce this problem just go to: core/cocoon-webapp and then run Cocoon using following command: mvn jetty:run -Dorg.apache.cocoon.formencoding=UTF-8 Then access: http://localhost:8888/ and you will get following exception: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cocoon.configuration.Settings': Invocation of init method failed; nested exception is java.lang.IllegalStateException: This value can only be changed for the root settings object. [...] Caused by: java.lang.IllegalStateException: This value can only be changed for the root settings object. at org.apache.cocoon.configuration.MutableSettings.checkSubSetting(MutableSettings.java:423) at org.apache.cocoon.configuration.MutableSettings.setFormEncoding(MutableSettings.java:364) at org.apache.cocoon.configuration.MutableSettings.configure(MutableSettings.java:151) at org.apache.cocoon.spring.configurator.impl.AbstractSettingsBeanFactoryPostProcessor.createSettings(AbstractSettingsBeanFactoryPostProcessor.java:258) at org.apache.cocoon.spring.configurator.impl.AbstractSettingsBeanFactoryPostProcessor.init(AbstractSettingsBeanFactoryPostProcessor.java:130)
To be honest, I don't know what's the expected behaviour here. Carsten, any chance for you looking at this issue or at least explaining how this should work? -- Best regards, Grzegorz Kossakowski
