{"action":"opened","issue":{"url":"https://api.github.com/repos/spring-projects/spring-xd/issues/1760","labels_url":"https://api.github.com/repos/spring-projects/spring-xd/issues/1760/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-xd/issues/1760/comments","events_url":"https://api.github.com/repos/spring-projects/spring-xd/issues/1760/events","html_url":"https://github.com/spring-projects/spring-xd/issues/1760","id":98671255,"number":1760,"title":"Exception while running ./xd-singlenode with mysql","user":{"login":"JaideepKatkar","id":6366850,"avatar_url":"https://avatars.githubusercontent.com/u/6366850?v=3","gravatar_id":"","url":"https://api.github.com/users/JaideepKatkar","html_url":"https://github.com/JaideepKatkar","followers_url":"https://api.github.com/users/JaideepKatkar/followers","following_url":"https://api.github.com/users/JaideepKatkar/following{/other_user}","gists_url":"https://api.github.com/users/JaideepKatkar/gists{/gist_id}","starred_url":"https://api.github.com/users/JaideepKatkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JaideepKatkar/subscriptions","organizations_url":"https://api.github.com/users/JaideepKatkar/orgs","repos_url":"https://api.github.com/users/JaideepKatkar/repos","events_url":"https://api.github.com/users/JaideepKatkar/events{/privacy}","received_events_url":"https://api.github.com/users/JaideepKatkar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-03T04:53:35Z","updated_at":"2015-08-03T04:53:35Z","closed_at":null,"body":"Hi\r\nAfter setting below properties in xd/config/servers.yml for mysql\r\nI give my localhost mysql , username and password below\r\n#Config for use with MySQL - uncomment and edit with relevant values for your environment\r\nspring:\r\n  datasource:\r\n    url: jdbc:mysql://yourDBhost:3306/yourDB\r\n    username: yourUsername\r\n    password: yourPassword\r\n    driverClassName: com.mysql.jdbc.Driver\r\n\r\nNow if run ./xd-singlenode. I am getting the below exception\r\n\r\n2015-08-02T21:51:23-0700 1.2.1.RELEASE INFO main singlenode.SingleNodeApplication - Starting SingleNodeApplication v1.2.1.RELEASE on jaideepk-VirtualBox with PID 5374 (/home/jaideepk/spring-xd-1.2.1.RELEASE/xd/lib/spring-xd-dirt-1.2.1.RELEASE.jar started by jaideepk in /home/jaideepk/spring-xd-1.2.1.RELEASE/xd/bin)\r\n2015-08-02T21:51:23-0700 1.2.1.RELEASE INFO main singlenode.SingleNodeApplication - Started SingleNodeApplication in 2.267 seconds (JVM running for 4.713)\r\n2015-08-02T21:51:30-0700 1.2.1.RELEASE WARN main annotation.AnnotationConfigApplicationContext - Exception encountered during context initialization - cancelling refresh attempt\r\norg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.batch.core.configuration.annotation.SimpleBatchConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.util.Collection org.springframework.batch.core.configuration.annotation.AbstractBatchConfiguration.dataSources; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceAutoConfiguration$NonEmbeddedConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.sql.DataSource]: Factory method 'dataSource' threw exception; nested exception is java.lang.IllegalStateException: Cannot load driver class: com.mysql.jdbc.Driver\r\n\r\n"}}