Hello cocooners,
Cocoon in trunk is buiding OK, but when running webapp:
Offending resource: URL
[jar:file:/home/gustavo/sourcecode/cocoon-trunk/core/cocoon-webapp/target/cocoon-webapp/WEB-INF/
lib/cocoon-databases-impl-1.0.0-RC2-SNAPSHOT.jar!/META-INF/cocoon/spring/SpringToAvalonDataSourceBridge.xml]
[...]
java.lang.ClassNotFoundException:
org.springframework.jdbc.datasource.DriverManagerDataSource
the following missing dep from Spring fixes the problem:
Index: pom.xml
===================================================================
--- pom.xml (revision 578632)
+++ pom.xml (working copy)
@@ -2022,6 +2022,11 @@
<version>2.0.6</version>
</dependency>
<dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-jdbc</artifactId>
+ <version>2.0.6</version>
+ </dependency>
+ <dependency>
<groupId>stax</groupId>
<artifactId>stax-api</artifactId>
<version>1.0</version>
Index: blocks/cocoon-databases/cocoon-databases-impl/pom.xml
===================================================================
--- blocks/cocoon-databases/cocoon-databases-impl/pom.xml
(revision 578632)
+++ blocks/cocoon-databases/cocoon-databases-impl/pom.xml (working
copy)
@@ -62,6 +62,10 @@
<groupId>org.apache.excalibur.components</groupId>
<artifactId>excalibur-datasource</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-jdbc</artifactId>
+ </dependency>
<!-- Specify transitive dependencies to avoid MNG-2782 with
JDK1.4.2. -->
<dependency>
<groupId>org.springframework</groupId>
Ciao,
Gustavo