{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/5860","repository_url":"https://api.github.com/repos/spring-projects/spring-boot","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/5860/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/5860/comments","events_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/5860/events","html_url":"https://github.com/spring-projects/spring-boot/issues/5860","id":152948240,"number":5860,"title":"Devtools does not work with the `dynamic.classpath` in IntelliJ IDEA","user":{"login":"vlastikcz","id":498454,"avatar_url":"https://avatars.githubusercontent.com/u/498454?v=3","gravatar_id":"","url":"https://api.github.com/users/vlastikcz","html_url":"https://github.com/vlastikcz","followers_url":"https://api.github.com/users/vlastikcz/followers","following_url":"https://api.github.com/users/vlastikcz/following{/other_user}","gists_url":"https://api.github.com/users/vlastikcz/gists{/gist_id}","starred_url":"https://api.github.com/users/vlastikcz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlastikcz/subscriptions","organizations_url":"https://api.github.com/users/vlastikcz/orgs","repos_url":"https://api.github.com/users/vlastikcz/repos","events_url":"https://api.github.com/users/vlastikcz/events{/privacy}","received_events_url":"https://api.github.com/users/vlastikcz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spring-projects/spring-boot/labels/waiting-for-triage","name":"waiting-for-triage","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-04T07:44:41Z","updated_at":"2016-05-04T08:22:46Z","closed_at":null,"body":"Steps:\r\n 1) Open the `spring-boot-sample-devtools` (1.3.3.RELEASE) application in IntelliJ IDEA 15.0.5\r\n 2) Create the `Run configuration` with the `Spring Boot` type and `sample.devtools.SampleDevToolsApplication` as the main class\r\n 3) Open `workspace.xml`, find `<component name=\"PropertiesComponent\">` and set `<property name=\"dynamic.classpath\" value=\"true\" />`\r\n 4) Reload workspace\r\n 5) Run application\r\n\r\nExpected:\r\n - `LocalDevToolsAutoConfiguration` is applied and the Devtools are working\r\n\r\nActual:\r\n - `LocalDevToolsAutoConfiguration` is not initialized, because of the `ConditionalOnInitializedRestarter`. \r\n\r\nThe `dynamic.classpath` changes the class loader to the `URLClassLoader`, which is not compatible with the `DefaultRestartInitializer`.\r\n\r\nI even tried to create my own `DefaultRestartInitializer` without the `AppClassLoader` condition. The Devtools were initialized, but not working correctly because of the `InvocationTargetException` (see attached log [devtools_withURLClassLoader-1.3.3-RELEASE.log.txt](https://github.com/spring-projects/spring-boot/files/248314/devtools_withURLClassLoader-1.3.3-RELEASE.log.txt)).\r\n\r\nThe same result seems to be with Devtools master ([devtools_withURLClassLoader-master.log.txt](https://github.com/spring-projects/spring-boot/files/248324/devtools_withURLClassLoader-master.log.txt)).\r\n"},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/comments/216781360","html_url":"https://github.com/spring-projects/spring-boot/issues/5860#issuecomment-216781360","issue_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/5860","id":216781360,"user":{"login":"snicoll","id":490484,"avatar_url":"https://avatars.githubusercontent.com/u/490484?v=3","gravatar_id":"","url":"https://api.github.com/users/snicoll","html_url":"https://github.com/snicoll","followers_url":"https://api.github.com/users/snicoll/followers","following_url":"https://api.github.com/users/snicoll/following{/other_user}","gists_url":"https://api.github.com/users/snicoll/gists{/gist_id}","starred_url":"https://api.github.com/users/snicoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snicoll/subscriptions","organizations_url":"https://api.github.com/users/snicoll/orgs","repos_url":"https://api.github.com/users/snicoll/repos","events_url":"https://api.github.com/users/snicoll/events{/privacy}","received_events_url":"https://api.github.com/users/snicoll/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T08:22:46Z","updated_at":"2016-05-04T08:22:46Z","body":"Looks like a duplicate of #5127"}}