Patrick Refondini wrote:
Hi,

while running my Cocoon 2.2 block ( mvn jett6:run ) I obtain the following exception:

(...)
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.NoSuchMethodError: org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.build(Ljava/io/InputStream;Ljava/lang/String;)Lorg/apache/avalon/framework/configuration/Configuration;
(...)

Deleting the avalon-framework-4.1.3.jar lib from
${PROJECT}/target/${PROJECT}/WEB-INF/cocoon/lib/avalon-framework-4.1.3.jar

After rebuilding the latest cocoon trunk (2.2) and moving the AJAX dependency from:

    <dependency>
      <groupId>org.apache.cocoon</groupId>
      <artifactId>cocoon-ajax-impl</artifactId>
      <version>1.0.0-M1</version>
    </dependency>

to:
    <dependency>
      <groupId>org.apache.cocoon</groupId>
      <artifactId>cocoon-ajax-impl</artifactId>
      <version>1.0.0-M2-SNAPSHOT</version>
    </dependency>

I did not obtain this behaviour anymore.


let jetty start running the block without errors.


Now when triggering runtime Spring bean initialisation from a call flowscript function:
var sendMail = cocoon.getComponent("sendMail");

The following exception is thrown:

Component with 'sendMail' is not defined in this service manager. (Key='AvalonServiceManager')


This is a Spring bean ! Not an Avalon component ... is this a side effect of deleting the avalon-framework-4.1.3.jar or a missing configuration ?

Any hint to follow to solve this issue is welcome.


Patrick

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to