{"action":"created","issue":{"url":"https://api.github.com/repos/rhiot/rhiot/issues/443","labels_url":"https://api.github.com/repos/rhiot/rhiot/issues/443/labels{/name}","comments_url":"https://api.github.com/repos/rhiot/rhiot/issues/443/comments","events_url":"https://api.github.com/repos/rhiot/rhiot/issues/443/events","html_url":"https://github.com/rhiot/rhiot/issues/443","id":127625306,"number":443,"title":"Unable to start CloudPlatform programmatically","user":{"login":"ppatierno","id":5842311,"avatar_url":"https://avatars.githubusercontent.com/u/5842311?v=3","gravatar_id":"","url":"https://api.github.com/users/ppatierno","html_url":"https://github.com/ppatierno","followers_url":"https://api.github.com/users/ppatierno/followers","following_url":"https://api.github.com/users/ppatierno/following{/other_user}","gists_url":"https://api.github.com/users/ppatierno/gists{/gist_id}","starred_url":"https://api.github.com/users/ppatierno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppatierno/subscriptions","organizations_url":"https://api.github.com/users/ppatierno/orgs","repos_url":"https://api.github.com/users/ppatierno/repos","events_url":"https://api.github.com/users/ppatierno/events{/privacy}","received_events_url":"https://api.github.com/users/ppatierno/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rhiot/rhiot/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/rhiot/rhiot/labels/cloud","name":"cloud","color":"fad8c7"},{"url":"https://api.github.com/repos/rhiot/rhiot/labels/help%20wanted","name":"help wanted","color":"159818"},{"url":"https://api.github.com/repos/rhiot/rhiot/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-20T07:54:08Z","updated_at":"2016-01-20T08:51:28Z","closed_at":null,"body":"Hi,\r\nI have just imported rhiot cloudplatform Maven projects into Eclipse IDE and developed a simple Java application to start CloudPlatform as described in the documentation here : \r\n\r\nhttps://rhiot.gitbooks.io/rhiotdocumentation/content/cloudplatform/starting.html\r\n\r\nAll dependencies seems to be resolved in the right way but on starting I receive the following exception : \r\n\r\n08:30:54.319 [main] DEBUG i.r.c.runtime.spring.CloudPlatform - About to start CloudPlatform with arguments: []\r\nException in thread \"main\" java.lang.IllegalArgumentException: Cannot instantiate interface org.springframework.context.ApplicationListener : org.springframework.boot.logging.ClasspathLoggingApplicationListener\r\n\tat org.springframework.boot.SpringApplication.createSpringFactoriesInstances(SpringApplication.java:412)\r\n\tat org.springframework.boot.SpringApplication.getSpringFactoriesInstances(SpringApplication.java:392)\r\n\tat org.springframework.boot.SpringApplication.getSpringFactoriesInstances(SpringApplication.java:383)\r\n\tat org.springframework.boot.SpringApplication.initialize(SpringApplication.java:263)\r\n\tat org.springframework.boot.SpringApplication.<init>(SpringApplication.java:237)\r\n\tat org.springframework.boot.builder.SpringApplicationBuilder.createSpringApplication(SpringApplicationBuilder.java:99)\r\n\tat org.springframework.boot.builder.SpringApplicationBuilder.<init>(SpringApplicationBuilder.java:87)\r\n\tat io.rhiot.cloudplatform.runtime.spring.CloudPlatform.start(CloudPlatform.java:56)\r\n\tat com.example.rhiot.RHIoTMain.main(RHIoTMain.java:12)\r\nCaused by: java.lang.NoClassDefFoundError: org/springframework/context/event/GenericApplicationListener\r\n\tat java.lang.ClassLoader.defineClass1(Native Method)\r\n\tat java.lang.ClassLoader.defineClass(ClassLoader.java:760)\r\n\tat java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)\r\n\tat java.net.URLClassLoader.defineClass(URLClassLoader.java:467)\r\n\tat java.net.URLClassLoader.access$100(URLClassLoader.java:73)\r\n\tat java.net.URLClassLoader$1.run(URLClassLoader.java:368)\r\n\tat java.net.URLClassLoader$1.run(URLClassLoader.java:362)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.net.URLClassLoader.findClass(URLClassLoader.java:361)\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:424)\r\n\tat sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:357)\r\n\tat org.springframework.util.ClassUtils.forName(ClassUtils.java:250)\r\n\tat org.springframework.boot.SpringApplication.createSpringFactoriesInstances(SpringApplication.java:405)\r\n\t... 8 more\r\nCaused by: java.lang.ClassNotFoundException: org.springframework.context.event.GenericApplicationListener\r\n\tat java.net.URLClassLoader.findClass(URLClassLoader.java:381)\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:424)\r\n\tat sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:357)\r\n\t... 22 more\r\n\r\nI see that all rhiot projects have following Maven Dependencies solved about spring context : \r\n\r\nspring-context-4.2.4.RELEASE\r\n\r\nIn my simple Java application, adding the dependecy to artifact rhiot-cloudplatform-runtime-spring as documented, I see the following Maven Dependencies solved : \r\n\r\nspring-context-4.1.8.RELEASE\r\n\r\nThere are other spring related dependecies to 4.1.8 and not 4.2.4\r\nI suppose it should be the problem..why ?\r\n\r\nThanks,\r\nPaolo"},"comment":{"url":"https://api.github.com/repos/rhiot/rhiot/issues/comments/173132171","html_url":"https://github.com/rhiot/rhiot/issues/443#issuecomment-173132171","issue_url":"https://api.github.com/repos/rhiot/rhiot/issues/443","id":173132171,"user":{"login":"ppatierno","id":5842311,"avatar_url":"https://avatars.githubusercontent.com/u/5842311?v=3","gravatar_id":"","url":"https://api.github.com/users/ppatierno","html_url":"https://github.com/ppatierno","followers_url":"https://api.github.com/users/ppatierno/followers","following_url":"https://api.github.com/users/ppatierno/following{/other_user}","gists_url":"https://api.github.com/users/ppatierno/gists{/gist_id}","starred_url":"https://api.github.com/users/ppatierno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppatierno/subscriptions","organizations_url":"https://api.github.com/users/ppatierno/orgs","repos_url":"https://api.github.com/users/ppatierno/repos","events_url":"https://api.github.com/users/ppatierno/events{/privacy}","received_events_url":"https://api.github.com/users/ppatierno/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T08:51:28Z","updated_at":"2016-01-20T08:51:28Z","body":"Executing dependency:tree goal with pom.xml file of my test application, it seems that the apache camel 2.16.1 has reference to spring context 4.1.8 but the right versione should be 4.2.4\r\n\r\n![capture](https://cloud.githubusercontent.com/assets/5842311/12443859/5dfd99fe-bf5b-11e5-9203-bf692673c102.PNG)\r\n"}}