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
> [EMAIL PROTECTED]
> ...
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to