Announcement Announcement Module
Collapse
No announcement yet.
No qualifying bean of type [javax.persistence.EntityManagerFactory] is defined Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • No qualifying bean of type [javax.persistence.EntityManagerFactory] is defined

    Trying to get spring data REST + Neo4j working in a no XML config.

    My source is here: https://github.com/tony-landis/spring-data-neo4j-rest

    Jetty starts up fine, but any request throws this error:

    Code:
    2013-05-14 16:12:11.152:WARN:oejs.ServletHandler:/
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [javax.persistence.EntityManagerFactory] is defined
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:296)
    	at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1125)
    	at org.springframework.orm.jpa.EntityManagerFactoryUtils.findEntityManagerFactory(EntityManagerFactoryUtils.java:114)
    	at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.lookupEntityManagerFactory(OpenEntityManagerInViewFilter.java:229)
    	at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.lookupEntityManagerFactory(OpenEntityManagerInViewFilter.java:205)
    	at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:152)
    	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
    	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
    	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
    	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
    	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
    	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
    	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)
    	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
    	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
Working...
X