After downloading trunk (0.9 Incubating) and making changes (in blue below), I
ran 'mvn –Pdist' and got the following result
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Rave :: rave-project ....................... SUCCESS [6.561s]
[INFO] Apache Rave :: rave-components .................... SUCCESS [0.171s]
[INFO] Apache Rave :: rave-commons ....................... SUCCESS [15.642s]
[INFO] Apache Rave :: rave-core .......................... SUCCESS [46.190s]
[INFO] Apache Rave :: rave-web ........................... SUCCESS [16.238s]
[INFO] Apache Rave :: rave-providers ..................... SUCCESS [0.128s]
[INFO] Apache Rave :: rave-opensocial-provider ........... SUCCESS [9.326s]
[INFO] Apache Rave :: rave-w3c-provider .................. SUCCESS [8.438s]
[INFO] Apache Rave :: rave-portal-resources .............. SUCCESS [11.077s]
[INFO] Apache Rave :: rave-portal-dependencies ........... SUCCESS [4.305s]
[INFO] Apache Rave :: rave-shindig ....................... FAILURE [30.468s]
[INFO] Apache Rave :: Demo Gadgets ....................... SKIPPED
[INFO] Apache Rave :: rave-portal ........................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
Database configuration
Add mysql-connector-java-5.1.18.jar to same director as the h2 jar:
./rave-portal/target/rave-portal-0.9-incubating-SNAPSHOT/WEB-INF/lib
./rave-shindig/target/rave-shindig-0.9-incubating-SNAPSHOT/WEB-INF/lib
Add following dependency to ./rave-shindig/pom.xml and ./rave-portal/pom.xml
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.18</version>
</dependency>
Add mysql properties to
./rave-portal-resources/src/main/resources/portal.properties
portal.dataSource.url=jdbc:mysql://localhost:3306/rave-portal?allowMultiQueries=true
portal.dataSource.driver=com.mysql.jdbc.Driver
portal.dataSource.username=rave
portal.dataSource.password=rave
portal.jpaDialect=org.springframework.orm.jpa.DefaultJpaDialect
portal.jpaVendorAdapter.databasePlatform=org.apache.openjpa.jdbc.sql.MySQLDictionary
portal.jpaVendorAdapter.database=MYSQL
Add mysql properties to
./rave-shindig/src/main/resources/rave.shindig.properties
rave-shindig.dataSource.url=jdbc:mysql://localhost:3306/rave-shindig?allowMultiQueries=true
rave-shindig.dataSource.driver=com.mysql.jdbc.Driver
rave-shindig.dataSource.username=rave
rave-shindig.dataSource.password=rave
rave-shindig.jpaDialect=org.springframework.orm.jpa.DefaultJpaDialect
rave-shindig.jpaVendorAdapter.databasePlatform=org.apache.openjpa.jdbc.sql.MySQLDictionary
rave-shindig.jpaVendorAdapter.database=MYSQL
Here are the errors I'm getting:
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'entityManagerFactory' defined in class path resource
[rave-shindig-applicationContext.xml]: Cannot resolve reference to bean
'dataSource' while setting bean property 'dataSource'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'dataSource' defined in class path resource
[rave-shindig-applicationContext.xml]: Error setting property values; nested
exception is org.springframework.beans.PropertyBatchUpdateException; nested
PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException:
Property 'driverClassName' threw exception; nested exception is
java.lang.IllegalStateException: Could not load JDBC driver class
[org.h2.Driver]
I can't figure out where it's picking up the H2 database driver. It should be
using the mysql database driver.
Any ideas? What else can I provide to help figure this out?
Thanks,
Wm