{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-data-examples/issues/50","labels_url":"https://api.github.com/repos/spring-projects/spring-data-examples/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-data-examples/issues/50/comments","events_url":"https://api.github.com/repos/spring-projects/spring-data-examples/issues/50/events","html_url":"https://github.com/spring-projects/spring-data-examples/issues/50","id":56094960,"number":50,"title":"Create JPA example based on EclipseLink","user":{"login":"olivergierke","id":128577,"avatar_url":"https://avatars.githubusercontent.com/u/128577?v=3","gravatar_id":"","url":"https://api.github.com/users/olivergierke","html_url":"https://github.com/olivergierke","followers_url":"https://api.github.com/users/olivergierke/followers","following_url":"https://api.github.com/users/olivergierke/following{/other_user}","gists_url":"https://api.github.com/users/olivergierke/gists{/gist_id}","starred_url":"https://api.github.com/users/olivergierke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivergierke/subscriptions","organizations_url":"https://api.github.com/users/olivergierke/orgs","repos_url":"https://api.github.com/users/olivergierke/repos","events_url":"https://api.github.com/users/olivergierke/events{/privacy}","received_events_url":"https://api.github.com/users/olivergierke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"olivergierke","id":128577,"avatar_url":"https://avatars.githubusercontent.com/u/128577?v=3","gravatar_id":"","url":"https://api.github.com/users/olivergierke","html_url":"https://github.com/olivergierke","followers_url":"https://api.github.com/users/olivergierke/followers","following_url":"https://api.github.com/users/olivergierke/following{/other_user}","gists_url":"https://api.github.com/users/olivergierke/gists{/gist_id}","starred_url":"https://api.github.com/users/olivergierke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivergierke/subscriptions","organizations_url":"https://api.github.com/users/olivergierke/orgs","repos_url":"https://api.github.com/users/olivergierke/repos","events_url":"https://api.github.com/users/olivergierke/events{/privacy}","received_events_url":"https://api.github.com/users/olivergierke/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-01-30T22:45:33Z","updated_at":"2015-04-21T19:15:30Z","closed_at":null,"body":"Based on [this request](https://jira.spring.io/browse/DATAJPA-626).\r\n\r\n- Spring Boot with Eclipselink instead of Hibernate\r\n- Project configured to use static weaving"},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-data-examples/issues/comments/94910417","html_url":"https://github.com/spring-projects/spring-data-examples/issues/50#issuecomment-94910417","issue_url":"https://api.github.com/repos/spring-projects/spring-data-examples/issues/50","id":94910417,"user":{"login":"ThomBrando","id":1444195,"avatar_url":"https://avatars.githubusercontent.com/u/1444195?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomBrando","html_url":"https://github.com/ThomBrando","followers_url":"https://api.github.com/users/ThomBrando/followers","following_url":"https://api.github.com/users/ThomBrando/following{/other_user}","gists_url":"https://api.github.com/users/ThomBrando/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomBrando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomBrando/subscriptions","organizations_url":"https://api.github.com/users/ThomBrando/orgs","repos_url":"https://api.github.com/users/ThomBrando/repos","events_url":"https://api.github.com/users/ThomBrando/events{/privacy}","received_events_url":"https://api.github.com/users/ThomBrando/received_events","type":"User","site_admin":false},"created_at":"2015-04-21T19:15:30Z","updated_at":"2015-04-21T19:15:30Z","body":"I started with an Application class that was identical to the one in the example.  There was no DataSource definition I could find, so I added the following to the Application class:\r\n\r\n    @Bean\r\n    public DataSource dataSource() {\r\n        JndiObjectFactoryBean jndiObjectFactoryBean = new JndiObjectFactoryBean();\r\n        jndiObjectFactoryBean.setJndiName(\"java:comp/env/jdbc/EEVDataSource\");\r\n        try {\r\n            jndiObjectFactoryBean.afterPropertiesSet();\r\n        } catch (NamingException e) {\r\n            System.err.println(\"Error retrieving datasource: \" + e);\r\n        }\r\n        return (DataSource) jndiObjectFactoryBean.getObject();\r\n    }\r\n\r\nI didn't get the nifty Spring Data ascii art when the app started up until I changed the Application class to extend SpringBootServletInitializer instead of JpaBaseConfiguration.  Then I'd get the nifty ascii art, but also the error message:\r\n\r\n\"NoSuchBeanDefinitionException: No bean named 'entityManagerFactory' is defined\"\r\n\r\nand that started me on the path to adding more and more bean definitions to my Application class until I gave up and submitted my comment to the thread https://github.com/spring-projects/spring-boot/issues/1268#ref-commit-59ce634\r\n\r\nThat's why I mentioned it here."}}