Re: XPathXMLFileModule differences
On Thu, Aug 27, 2009 Ralph Goers wrote: It has been quite a while since I last worked on Cocoon, but since I wrote XPathXMLFileModule I suppose I am best qualified to answer the question. XPathXMLFileModule is a replacement for XMLFileModule but it is not completely compatible - which is why it is a new module and not just an upgraded version of the old one. The differences were itemized in https://issues.apache.org/jira/browse/COCOON-1574 (see my comment on Dec 27, 2007) Thanks for your answer Ralph, and for your work. I am just Cc forrest-dev list. -David
[jira] Commented: (COCOON-2265) Cannot use cocoon-servlet-service-impl 1.2.0 because java.net.MalformedURLException: Could not resolve blockcontext:/...
[ https://issues.apache.org/jira/browse/COCOON-2265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12749745#action_12749745 ] Mark Diggory commented on COCOON-2265: -- This does appear to work with the demo I provided. I can add the following dependencies and web.xml listener and it will start and I can access the block in my browser. However, when I apply the same strategy to our configuration in the dspace-xmlui project I get the following exception (and I do not find that cocoon-spring-configurator-2.1.0.jar contains org/apache/cocoon/spring/configurator/impl/DeploymentUtil anymore as it appears to be moved under a new package in cocoon-block-deployment-1.1.0.jar Aug 31, 2009 8:28:25 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cocoon.template.script.ScriptManager' defined in URL [jar:file:/webapps/dspace-xmlui-webapp/WEB-INF/lib/cocoon-template-impl-1.1.0.jar!/META-INF/cocoon/spring/cocoon-template.xml]: Cannot resolve reference to bean 'org.apache.cocoon.core.xml.SAXParser' while setting bean property 'saxParser'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cocoon.core.xml.SAXParser' defined in URL [jar:file:/webapps/dspace-xmlui-webapp/WEB-INF/lib/cocoon-xml-impl-1.0.0.jar!/META-INF/cocoon/spring/cocoon-xml-impl.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.xml.sax.EntityResolver' defined in URL [jar:file:/webapps/dspace-xmlui-webapp/WEB-INF/lib/cocoon-xml-resolver-1.0.0.jar!/META-INF/cocoon/spring/cocoon-xml-resolver.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/apache/cocoon/spring/configurator/impl/DeploymentUtil at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245) ... at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cocoon.core.xml.SAXParser' defined in URL [jar:file:/webapps/dspace-xmlui-webapp/WEB-INF/lib/cocoon-xml-impl-1.0.0.jar!/META-INF/cocoon/spring/cocoon-xml-impl.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.xml.sax.EntityResolver' defined in URL [jar:file:/webapps/dspace-xmlui-webapp/WEB-INF/lib/cocoon-xml-resolver-1.0.0.jar!/META-INF/cocoon/spring/cocoon-xml-resolver.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/apache/cocoon/spring/configurator/impl/DeploymentUtil at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) ... at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269) ... 33 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.xml.sax.EntityResolver' defined in URL [jar:file:/webapps/dspace-xmlui-webapp/WEB-INF/lib/cocoon-xml-resolver-1.0.0.jar!/META-INF/cocoon/spring/cocoon-xml-resolver.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/apache/cocoon/spring/configurator/impl/DeploymentUtil at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1337) ... at org.apache.cocoon.core.xml.impl.AbstractJaxpParser.setBeanFactory(AbstractJaxpParser.java:109) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1325) at