Hi,
I've still problems with the Auth blocl in 2.2. To get rid of a
NoSuchClassException, it was required to add to pom.xml the following entry:
<dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-pipeline-components</artifactId>
<version>1.0.0</version>
</dependency>
This addition resulted in the following:
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name
'org.apache.cocoon.reading.Reader/servletLinkRewriter' defined in URL
[jar:file:/home/juffer/TriBC/projects/maven/repository/org/apache/cocoon/cocoon-servlet-service-components/1.0.0-RC1/cocoon-servlet-service-components-1.0.0-RC1.jar!/META-INF/cocoon/spring/cocoon-servlet-linkRewritingReader.xml]:
Invocation of init method failed; nested exception is
java.lang.NoSuchMethodError:
org.apache.cocoon.servletservice.components.LinkRewriterReader.enableLogging(Lorg/apache/avalon/framework/logger/Logger;)V
I can reproduced this error also with the getting-started tutorial at
http://cocoon.apache.org/2.2/1159_1_1.html. I placed an
authentication.xml in the COB-INF/config/spring directory that has the
same bean definitions as listed at
http://cocoon.apache.org/2.2/blocks/auth/1.0/1315_1_1.html. The pom.xml
was modified by adding the following:
<dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-auth-api</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-pipeline-components</artifactId>
<version>1.0.0</version>
</dependency>
Restarting with 'mvn install jetty:run' results in the same exception.
There is a dependency clash which I cannot solve. Anybody?
Thanks,
Andre
Andre Juffer wrote:
Hi,
just to answer my own question: the problem was due to a dependency
mismatch. I had in the pom.xml the following:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>2.5.1</version>
</dependency>
Changing the version to 2.0.6 removed the exception.
Best,
A.
Andre Juffer wrote:
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: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]