Olá, sou iniciante em programação para Web e estou estudando o framework Neo. E gostaria de saber se alguém poderia me dá uma força!?
É o seguinte, estou usando o eclipse Ganymede, com JBoss 4.2 e postgres.
Fiz alguns exemplos que estão no site e ocorreu tudo funcionou tranqüilo, mas no momento que eu vou tentar associar com o banco de dados ocorre um estranho que eu não consigo descobrir.
Segue o erro:
Code:
23:30:26,687 INFO [AnnotationSessionFactoryBean] Building new Hibernate SessionFactory
23:30:26,734 ERROR [ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in null: Initialization of bean failed; nested exception is java.lang.ClassCastException: org.hibernate.validator.event.ValidateEventListener cannot be cast to org.hibernate.event.PreInsertEventListener
java.lang.ClassCastException: org.hibernate.validator.event.ValidateEventListener cannot be cast to org.hibernate.event.PreInsertEventListener
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:783)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:800)
at br.com.linkcom.neo.hibernate.AnnotationSessionFactoryBean.newSessionFactory(AnnotationSessionFactoryBean.java:81)
23:30:27,156 ERROR [StandardContext] Error listenerStart
23:30:27,156 ERROR [StandardContext] Context [/crud] startup failed due to previous errors
23:30:27,156 INFO [[/crud]] Closing Spring root WebApplicationContext
23:30:27,578 WARN [ServiceController] Problem starting service jboss.web.deployment:war=crud.war,id=-729533530
org.jboss.deployment.DeploymentException: URL file:/C:/jboss-4.2.3.GA/server/default/tmp/deploy/tmp18128crud-exp.war/ deployment failed
Detalhe, adicionei todos os jar no diretório lib, assim como driver de conexão com o banco de dados.
Obrigado pela Atenção!!!