Hi,
is it possible to make circular references with servlet services ?
In other words, does a servlet need to be available to be referenced ?

For example :

action-master contains :
<bean id="org.openbluelab.actionmaster.block" class="org.apache.cocoon.sitemap.SitemapServlet"> <servlet:context mount-path="/action-master" context-path="blockcontext:/action-master/">
           <servlet:connections>
               <entry key="cms" value-ref="org.openbluelab.cms.block"/>
...

cms contains :
<bean id="org.openbluelab.cms.block" class="org.apache.cocoon.sitemap.SitemapServlet"> <servlet:context mount-path="/content" context-path="blockcontext:/cms/">
           <servlet:connections>
<entry key="action-master" value-ref="org.openbluelab.actionmaster.block"/>
...

With this configuration, I get the following error :
[ERROR] ContextLoader - Context initialization failed <org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openbluelab.cms.block': Cannot resolve reference to bean 'org.openbluelab.actionmaster.block' while setting bean property 'connections' with key [TypedStringValue: value [action-master], target type [null]]; ...

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openbluelab.actionmaster.block': Cannot resolve reference to bean 'org.openbluelab.cms.block' while setting bean property 'connections' with key [TypedStringValue: value [cms], target type [null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openbluelab.cms.block': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: Target object must not be null

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openbluelab.cms.block': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: Target object must not be null

Caused by: java.lang.IllegalArgumentException: Target object must not be null

Thanks for your help

JC

--
Jean-Christophe Kermagoret,
OpenBlueLab Technological Leader

http://www.openbluelab.org
http://forge.openbluelab.org
http://wiki.openbluelab.org
http://demo.openbluelab.org



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

Reply via email to