You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Andre Juffer <aj...@sun3.oulu.fi> on 2008/05/05 20:36:39 UTC
Re: Auth block
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: 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
Re: Auth block
Posted by Andre Juffer <aj...@sun3.oulu.fi>.
Hi Martin,
Still one more correction. The org.apache.cocoon.auth.acting.* package,
from cocoon-auth-impl, version 1.0.0, gives another exception:
java.lang.NoSuchMethodError:
org.apache.cocoon.auth.acting.LoggedInAction.getLogger()Lorg/apache/commons/logging/Log;
at
org.apache.cocoon.auth.acting.LoggedInAction.act(LoggedInAction.java:50)
I could get rid of this by using the 1.0.0-RC2 version of
cocoon-auth-impl instead.
Note that at
http://repo1.maven.org/maven2/org/apache/cocoon/cocoon-auth-impl, the
jar file for version 1.0.0 actually exists, since 07-Apr-2008 (and
similar for cocoon-pipeline-components). But for the time being, it
seems that one still should use the RC2 version of both cocoon-auth-impl
and cocoon-pipeline-components.
Cheers,
A.
Andre Juffer wrote:
> Hi Martin,
>
> You were right. The 1.0.0-RC2 for cocoon-pipeline-components was fine.
>
> Note that there is small error at
> http://cocoon.apache.org/2.2/blocks/auth/1.0/1315_1_1.html
>
> The class
>
> org.apache.cocoon.auth.StandardApplication
>
> should be replaced with
>
> org.apache.cocoon.auth.impl.StandardApplication
>
> The first is from cocoon 2.1 series, the second is for 2.2:
>
> http://cocoon.apache.org/2.2/blocks/auth/1.0/apidocs/org/apache/cocoon/auth/impl/StandardApplication.html
>
>
> Thanks,
> Andre
>
>
> Martin Heiden wrote:
>> Hi Andre,
>>
>> Monday, May 5, 2008, 8:52:30 PM, you wrote:
>>
>> AJ> <dependency>
>> AJ> <groupId>org.apache.cocoon</groupId>
>> AJ> <artifactId>cocoon-pipeline-components</artifactId>
>> AJ> <version>1.0.0</version>
>> AJ> </dependency>
>>
>> I don't think that cocoon-pipeline-components 1.0.0 is already
>> released officially. The 1.0.0 POMs appeared a few weeks ago, but I
>> couldn't get them to work and the site didn't mention the release at
>> all...
>>
>> So stick with the RC2 version and resolve your other dependency woes.
>> I don't think that the NoSuchClassException disappeared. It appeared
>> another Exception before the point it was thrown, or?
>>
>> This might be useful:
>> http://maven.apache.org/plugins/maven-dependency-plugin/examples/resolving-conflicts-using-the-dependency-tree.html
>>
>>
>> Good Luck!
>>
>> Martin
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: users-help@cocoon.apache.org
>>
>
>
--
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
Re: Auth block
Posted by Andre Juffer <aj...@sun3.oulu.fi>.
Hi Martin,
You were right. The 1.0.0-RC2 for cocoon-pipeline-components was fine.
Note that there is small error at
http://cocoon.apache.org/2.2/blocks/auth/1.0/1315_1_1.html
The class
org.apache.cocoon.auth.StandardApplication
should be replaced with
org.apache.cocoon.auth.impl.StandardApplication
The first is from cocoon 2.1 series, the second is for 2.2:
http://cocoon.apache.org/2.2/blocks/auth/1.0/apidocs/org/apache/cocoon/auth/impl/StandardApplication.html
Thanks,
Andre
Martin Heiden wrote:
> Hi Andre,
>
> Monday, May 5, 2008, 8:52:30 PM, you wrote:
>
> AJ> <dependency>
> AJ> <groupId>org.apache.cocoon</groupId>
> AJ> <artifactId>cocoon-pipeline-components</artifactId>
> AJ> <version>1.0.0</version>
> AJ> </dependency>
>
> I don't think that cocoon-pipeline-components 1.0.0 is already
> released officially. The 1.0.0 POMs appeared a few weeks ago, but I
> couldn't get them to work and the site didn't mention the release at
> all...
>
> So stick with the RC2 version and resolve your other dependency woes.
> I don't think that the NoSuchClassException disappeared. It appeared
> another Exception before the point it was thrown, or?
>
> This might be useful:
> http://maven.apache.org/plugins/maven-dependency-plugin/examples/resolving-conflicts-using-the-dependency-tree.html
>
> Good Luck!
>
> Martin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
--
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
Re[2]: Auth block
Posted by Martin Heiden <ma...@netcologne.de>.
Hi Andre,
Monday, May 5, 2008, 8:52:30 PM, you wrote:
AJ> <dependency>
AJ> <groupId>org.apache.cocoon</groupId>
AJ> <artifactId>cocoon-pipeline-components</artifactId>
AJ> <version>1.0.0</version>
AJ> </dependency>
I don't think that cocoon-pipeline-components 1.0.0 is already
released officially. The 1.0.0 POMs appeared a few weeks ago, but I
couldn't get them to work and the site didn't mention the release at
all...
So stick with the RC2 version and resolve your other dependency woes.
I don't think that the NoSuchClassException disappeared. It appeared
another Exception before the point it was thrown, or?
This might be useful:
http://maven.apache.org/plugins/maven-dependency-plugin/examples/resolving-conflicts-using-the-dependency-tree.html
Good Luck!
Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Auth block
Posted by Andre Juffer <aj...@sun3.oulu.fi>.
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: 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