Grzegorz Kossakowski wrote:
At this point I'm not sure how, but your commit breakes servletService
components (generator, transformer and serializer) usage. You can check
it accessing this url:
http://localhost:8888/blocks/cocoon-forms-sample/
and you should get this error:
Message: Cannot create consumer source for request that is not POST.
Ok I finally managed to build trunk, can you give me a pointer on how to start
samples? I used:
cd core/cocoon-webapp && mvn -Dorg.apache.cocoon.mode=dev jetty:run
I got an exception [1]. Any ideas?
Vadim
[1]
ERROR [main] (ContextLoader.java:203) - Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Unable to read
Avalon configuration from 'resource://org/apache/cocoon/cocoon.xconf'.; nested
exception is org.apache.avalon.framework.configuration.ConfigurationException:
Cannot load 'resource://org/apache/cocoon/cocoon.roles' at
jar:file:/Users/vgritsenko/Projects/Apache/cocoon/core/cocoon-webapp/target/cocoon-webapp/WEB-INF/lib/cocoon-core-2.2.0-RC2-SNAPSHOT.jar!/org/apache/cocoon/cocoon.xconf:30:61
Caused by:
org.apache.avalon.framework.configuration.ConfigurationException: Cannot load
'resource://org/apache/cocoon/cocoon.roles' at
jar:file:/Users/vgritsenko/Projects/Apache/cocoon/core/cocoon-webapp/target/cocoon-webapp/WEB-INF/lib/cocoon-core-2.2.0-RC2-SNAPSHOT.jar!/org/apache/cocoon/cocoon.xconf:30:61
at
org.apache.cocoon.core.container.spring.avalon.ConfigurationReader.handleInclude(ConfigurationReader.java:460)
at
org.apache.cocoon.core.container.spring.avalon.ConfigurationReader.parseConfiguration(ConfigurationReader.java:304)
at
org.apache.cocoon.core.container.spring.avalon.ConfigurationReader.convert(ConfigurationReader.java:253)
...
Caused by: org.apache.avalon.framework.configuration.ConfigurationException:
Cannot load
'jar:file:/Users/vgritsenko/Projects/Apache/cocoon/core/cocoon-webapp/target/cocoon-webapp/WEB-INF/lib/cocoon-core-2.2.0-RC2-SNAPSHOT.jar!/org/apache/cocoon/cocoon.roles'
at
jar:file:/Users/vgritsenko/Projects/Apache/cocoon/core/cocoon-webapp/target/cocoon-webapp/WEB-INF/lib/cocoon-core-2.2.0-RC2-SNAPSHOT.jar!/org/apache/cocoon/cocoon.xconf:30:61
at
org.apache.cocoon.core.container.spring.avalon.ConfigurationReader.loadURI(ConfigurationReader.java:508)
at
org.apache.cocoon.core.container.spring.avalon.ConfigurationReader.handleInclude(ConfigurationReader.java:458)
... 62 more
Caused by: org.gjt.xpp.XmlPullParserException: <![DOCTYPE declarations not
supported at line 33 and column 3 seen "...CDATA #REQUIRED\n class
CDATA #REQUIRED\n>\n]"... (parser state UNKNONW_EVENT (-1))
at org.gjt.xpp.sax2.Driver.parse(Driver.java:304)
at
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.build(DefaultConfigurationBuilder.java:255)
at
org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.build(DefaultConfigurationBuilder.java:224)
at
org.apache.cocoon.core.container.spring.avalon.ConfigurationReader.loadURI(ConfigurationReader.java:506)