You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Hanne Moa <ha...@uninett.no> on 2007/10/16 11:27:38 UTC

Cocoon 2.2: Error in database migration guide

Following the database migration guide at
<http://cocoon.apache.org/2.2/blocks/databases/1.0/1409_1_1.html> (after
having done the "Your first Cocoon application using Maven 2" followed
by "Your first XML pipeline (publishing)" leads to the error

java.lang.RuntimeException: Cannot invoke listener
org.springframework.web.context.ContextLoaderListener@17574b9
...
Caused by:
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot
find class
[org.apache.cocoon.databases.bridge.spring.avalon.SpringToAvalonDataSourceWrapper]
for bean with name 'javax.sql.DataSource/personnel' defined in URL
[file:/home/SVN/tjenesteportal/tjp/target/classes/META-INF/cocoon/spring/datasources.xml];
nested exception is java.lang.ClassNotFoundException:
org.apache.cocoon.databases.bridge.spring.avalon.SpringToAvalonDataSourceWrapper

Furthermore, jetty responds to all queries with 503 Service unavailable
after that.

So I guess the migration guide is missing a step? Where and how do I add
org.apache.cocoon.databases.bridge.spring.avalon.SpringToAvalonDataSourceWrapper?

Is there some other way to add a datasource than via the bridge above?


HM

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


Re: Cocoon 2.2: Error in database migration guide

Posted by Hanne Moa <ha...@uninett.no>.
Grzegorz Kossakowski wrote:
> Hanne Moa pisze:
>> So I guess the migration guide is missing a step? Where and how do I add
>> org.apache.cocoon.databases.bridge.spring.avalon.SpringToAvalonDataSourceWrapper?
> 
>> Is there some other way to add a datasource than via the bridge above?
> 
> If you want to use the datasource in Avalon components, the answer is no.

Is there an overview anywhere of which components are still dependent on
Avalon? I have no self-written java in the stuff I'm trying to port (not
even flowscript-stuff but that'll be added later), it's still all xml
and xslt at this point.


HM

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


Re: Cocoon 2.2: Error in database migration guide

Posted by Grzegorz Kossakowski <gk...@apache.org>.
Hanne Moa pisze:
> Following the database migration guide at
> <http://cocoon.apache.org/2.2/blocks/databases/1.0/1409_1_1.html> (after
> having done the "Your first Cocoon application using Maven 2" followed
> by "Your first XML pipeline (publishing)" leads to the error
> 
> java.lang.RuntimeException: Cannot invoke listener
> org.springframework.web.context.ContextLoaderListener@17574b9
> ...
> Caused by:
> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot
> find class
> [org.apache.cocoon.databases.bridge.spring.avalon.SpringToAvalonDataSourceWrapper]
> for bean with name 'javax.sql.DataSource/personnel' defined in URL
> [file:/home/SVN/tjenesteportal/tjp/target/classes/META-INF/cocoon/spring/datasources.xml];
> nested exception is java.lang.ClassNotFoundException:
> org.apache.cocoon.databases.bridge.spring.avalon.SpringToAvalonDataSourceWrapper
> 
> Furthermore, jetty responds to all queries with 503 Service unavailable
> after that.
> 
> So I guess the migration guide is missing a step? Where and how do I add
> org.apache.cocoon.databases.bridge.spring.avalon.SpringToAvalonDataSourceWrapper?

Yep, the missing step is adding dependency on cocoon-databases-bridge module that is optional. The
problem is that this module has not been officially released yet but it is already prepared for a
release. Nevertheless, will need to checkout Cocoon's trunk and build it in order to depend on
cocoon-databases-bridge module until it is released.

After checking if this helps could you add missing step to the guide?

> Is there some other way to add a datasource than via the bridge above?

If you want to use the datasource in Avalon components, the answer is no.

HTH.

-- 
Grzegorz Kossakowski
Committer and PMC Member of Apache Cocoon
http://reflectingonthevicissitudes.wordpress.com/

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