Description of problem: The guideline how to switch database to MySQL is obsolete in Petclinic example. Version-Release number of selected component (if applicable): WFK2 ER5 How reproducible: Always Steps to Reproduce: 1. follow the guideline src/main/resources/db/mysql/petclinic_db_setup_mysql.txt Actual results: Uncommenting the MySQL JDBC Connector in pom.xml causes error: Missing artifact com.mysql.jdbc:com.springsource.com.mysql.jdbc:jar:5.1.6 Expected results: Petclinic is deployable and uses MySQL database.
Fixed
Fixed at http://git.app.eng.bos.redhat.com/?p=wfk/examples.git;a=commitdiff;h=74b1d9d8971c27d80908306e8903e46e61b8b880
The MySQL JBDC Connector is OK now, but the content of file src/main/resources/db/mysql/petclinic_db_setup_mysql.txt is still obsolete. If the file is not going to be removed, it should be updated. What I miss: 3) there is no longer the createDB.txt but there are two scripts for DB initialization now, initDB.txt and populate.DB.txt 4) there are more than one jdbc.properties currently, each one for different profile. The files can be found at src/main/environments/<environment>/resources/jbdc.properties Other - the name of datasource has to be changed in persistence.xml and applicationContextDatasource.xml, because the default ExampleDS is not going to be used. - note that tests will fail after migration to MySQL - maybe link to the page describing how to configure the MySQL datasource for AS7
Fixed.
Removed the faulty instruction file.
Verified in WFK 2.1.0.ER2.
Distributed as a part of WFK 2.1.0.GA release.