Ok vou dar uma verificada…daqui apouco posto algo…
Adicionei o jar “commons-logging-1.0.4.jar” que ele estava reclamando, e agora surgiu outro…
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet execution threw an exception
root cause
java.lang.NoSuchMethodError: org.hibernate.event.PreInsertEvent.getSource()Lorg/hibernate/engine/SessionImplementor;
org.hibernate.validator.event.ValidateEventListener.onPreInsert(ValidateEventListener.java:172)
org.hibernate.action.EntityInsertAction.preInsert(EntityInsertAction.java:178)
org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:72)
org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:167)
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:50)
org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1027)
org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:365)
org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:137)
br.com.dao.DaoFactory.commit(DaoFactory.java:21)
br.com.loja.DaoInterceptor.intercept(DaoInterceptor.java:63)
org.vraptor.core.InterceptorsLogicFlow.execute(InterceptorsLogicFlow.java:72)
org.vraptor.interceptor.FlashScopeInterceptor.intercept(FlashScopeInterceptor.java:22)
org.vraptor.core.InterceptorsLogicFlow.execute(InterceptorsLogicFlow.java:72)
org.vraptor.interceptor.RegisterAttributesInteceptor.intercept(RegisterAttributesInteceptor.java:38)
org.vraptor.core.InterceptorsLogicFlow.execute(InterceptorsLogicFlow.java:72)
org.vraptor.core.VRaptorExecution.execute(VRaptorExecution.java:94)
org.vraptor.core.DefaultController.execute(DefaultController.java:42)
org.vraptor.VRaptorServlet.service(VRaptorServlet.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.14 logs.
=\
NoSuchMethodError geralmente é versão incompatível (ou duplicada) de jars…
dá uma olhada se vc não está com dois jars diferentes do hibernate
Estou trabalhando com esses jars do Hibernate…
hibernate3.jar
hibernate-annotations.jar
hibernate-commons-annotations.jar
hibernate-core-3.3.0.GA.jar
hibernate-jpa-2.0-api-1.0.0.Final.jar
hibernate-testing.jar
hibernate-validator-3.0.0.ga.jar
tire o hibernate3.jar… ele é um pack do core, annotations, etc
sugiro que vc use jars mais novos do hibernate tb… ele tá na versão 3.6.6
Ok,
Tirei o hibernate3.jar, e o erro ainda continua o mesmo…
vou baixar os jars mais recentes e ver o que dá…
lembre-se de tirá-los do WEB-INF/lib e dar um clean no projeto e no servidor para garantir
Baixei as bibliotecas desse link:
http://sourceforge.net/projects/hibernate/files/hibernate3/
fiz as alterações, dei um clean, restartei e o erro ainda continua o mesmo… =\
vc tá fazendo o deploy no jboss? se sim, tire os jars do hibernate, o jboss já vem com eles
Estou rodando com o TomCat
lista por favor os jars que estão no seu WEB-INF/lib e posta aqui.