Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Unknown entity

INFORMAÇÕES: Reloading Context with name [/lojaspring] is completed Produto [titulo=Teste1, descricao=teste 2, paginas=5] dez 19, 2017 11:40:28 AM org.apache.catalina.core.StandardWrapperValve invoke GRAVE: Servlet.service() for servlet [dispatcher] in context with path [/lojaspring] threw exception [Request processing failed; nested exception is java.lang.IllegalArgumentException: Unknown entity: br.com.lojaspring.models.Produto] with root cause java.lang.IllegalArgumentException: Unknown entity: br.com.lojaspring.models.Produto at org.hibernate.jpa.spi.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:1184) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:289) at com.sun.proxy.$Proxy44.persist(Unknown Source) at br.com.lojaspring.daos.ProdutoDAO.gravar(ProdutoDAO.java:19) at br.com.lojaspring.daos.ProdutoDAO$$FastClassBySpringCGLIB$$38d1796a.invoke() at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:717) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:98) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:266) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:95) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)

1 resposta
solução!

Desculpe minha falha. Tinha digitado errado o factoryBean.setPackagesToScan.

Problema resolvido.