You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Robby Pelssers <ro...@ciber.nl> on 2009/05/12 13:39:12 UTC

No bean named 'org.apache.excalibur.source.SourceResolver' is defined

Hi all,

 

I get following exception while trying to run a unittest.  It looks like
there is no bean "org.apache.excalibur.source.SourceResolver" defined.
I created this Cocoon2 block about 3 months ago using the
maven-archetype.  Anybody who can give me some help fixing this?

 

Kind regards,

Robby Pelssers

 

------------------------------------------------------------------------
-------

Test set: com.nxp.spider.common.SpiderTest

------------------------------------------------------------------------
-------

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 4.578
sec <<< FAILURE!

testSpider(com.nxp.spider.common.SpiderTest)  Time elapsed: 4.516 sec
<<< ERROR!

org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'org.apache.excalibur.source.SourceFactory/cached'
defined in URL
[jar:file:/D:/maven/repo/org/apache/cocoon/cocoon-core/2.2.0/cocoon-core
-2.2.0.jar!/META-INF/cocoon/spring/cocoon-core-caching-source.xml]:
Cannot resolve reference to bean
'org.apache.excalibur.source.SourceResolver' while setting bean property
'sourceResolver'; nested exception is
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
named 'org.apache.excalibur.source.SourceResolver' is defined

      at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.re
solveReference(BeanDefinitionValueResolver.java:275)

      at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.re
solveValueIfNecessary(BeanDefinitionValueResolver.java:104)

      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)

      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)

      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)

      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory$1.run(AbstractAutowireCapableBeanFactory.java:409)


RE: No bean named 'org.apache.excalibur.source.SourceResolver' is defined

Posted by Robby Pelssers <ro...@ciber.nl>.
It looks like this has been fixed.
http://issues.apache.org/jira/browse/COCOON-2176

 

Is this a matter of checking out cocoon 2.2 from trunk..  run mvn
install and change the dependency to use the 1.1.0-SNAPSHOT ?

 

                                <dependency>

 
<groupId>org.apache.cocoon</groupId>

 
<artifactId>cocoon-servlet-service-components</artifactId>

 
<version>1.1.0-SNAPSHOT</version>

                                </dependency>

 

Thx in advance,

Robby

 

From: Robby Pelssers [mailto:robby.pelssers@ciber.nl] 
Sent: Tuesday, May 12, 2009 1:39 PM
To: users@cocoon.apache.org
Subject: No bean named 'org.apache.excalibur.source.SourceResolver' is
defined

 

Hi all,

 

I get following exception while trying to run a unittest.  It looks like
there is no bean "org.apache.excalibur.source.SourceResolver" defined.
I created this Cocoon2 block about 3 months ago using the
maven-archetype.  Anybody who can give me some help fixing this?

 

Kind regards,

Robby Pelssers

 

------------------------------------------------------------------------
-------

Test set: com.nxp.spider.common.SpiderTest

------------------------------------------------------------------------
-------

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 4.578
sec <<< FAILURE!

testSpider(com.nxp.spider.common.SpiderTest)  Time elapsed: 4.516 sec
<<< ERROR!

org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'org.apache.excalibur.source.SourceFactory/cached'
defined in URL
[jar:file:/D:/maven/repo/org/apache/cocoon/cocoon-core/2.2.0/cocoon-core
-2.2.0.jar!/META-INF/cocoon/spring/cocoon-core-caching-source.xml]:
Cannot resolve reference to bean
'org.apache.excalibur.source.SourceResolver' while setting bean property
'sourceResolver'; nested exception is
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
named 'org.apache.excalibur.source.SourceResolver' is defined

      at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.re
solveReference(BeanDefinitionValueResolver.java:275)

      at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.re
solveValueIfNecessary(BeanDefinitionValueResolver.java:104)

      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)

      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)

      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)

      at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory$1.run(AbstractAutowireCapableBeanFactory.java:409)