cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andre Juffer <ajuf...@sun3.oulu.fi>
Subject Auth block
Date Tue, 29 Apr 2008 18:26:10 GMT
Hi All,

I experience a problem with the Cocoon authentication block, when 
updating from authentication-fw. The following exception is thrown:


......
Caused by: org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 
'org.springframework.beans.factory.config.CustomScopeConfigurer#0' 
defined in URL 
[jar:file:/home/juffer/TriBC/projects/maven/repository/org/apache/cocoon/cocoon-pipeline-impl/1.0.0/cocoon-pipeline-impl-1.0.0.jar!/META-INF/cocoon/spring/PipelineComponentScope.xml]:

Cannot create inner bean 
'org.apache.cocoon.components.pipeline.spring.PipelineComponentScope#442b7fc2' 
of type 
[org.apache.cocoon.components.pipeline.spring.PipelineComponentScope] 
while setting bean property 'scopes' with key [TypedStringValue: value 
[pipelineComponent], target type [null]]; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 
'org.apache.cocoon.components.pipeline.spring.PipelineComponentScope#442b7fc2' 
defined in URL 
[jar:file:/home/juffer/TriBC/projects/maven/repository/org/apache/cocoon/cocoon-pipeline-impl/1.0.0/cocoon-pipeline-impl-1.0.0.jar!/META-INF/cocoon/spring/PipelineComponentScope.xml]:

Initialization of bean failed; nested exception is 
java.lang.IllegalStateException: No Scope registered for scope 'call'


The pom.xml includes the following dependencies for cocoon-auth-api, 
cocoon-pipeline-api, cocoon-pipeline-impl, and cocoon-pipeline-components.

I also have the following in a xml file located in META-INF/cocoon/spring/

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.springframework.org/schema/beans 
     http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">

   <bean name="org.apache.cocoon.auth.SecurityHandler/handler" 
class="org.apache.cocoon.auth.impl.PipelineSecurityHandler" 
scope="singleton">
     <property name="authenticationResource" 
value="cocoon:raw:/subscriptions/authenticate"/>
     <property name="sourceResolver" 
ref="org.apache.excalibur.source.SourceResolver"/>
   </bean>
   <bean name="org.apache.cocoon.auth.Application/sopas" 
class="org.apache.cocoon.auth.StandardApplication" scope="singleton">
     <property name="securityHandler" 
ref="org.apache.cocoon.auth.SecurityHandler/handler"/>
   </bean>
</beans>


Do I miss something?

Thanks,
-- 
Andre H. Juffer              | Email: Andre.Juffer@oulu.fi
The Biocenter and            | WWW: www.biochem.oulu.fi/Biocomputing/
     the Dep. of Biochemistry | Fax: +358-8-553-1141
University of Oulu, Finland  | Phone: +358-8-553 1161
Triacle Biocomputing         | WWW: www.triacle-bc.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message