我有一个使用这些技术的项目,但遇到了很多问题。第一个是这个错误: -
org.apache.tapestry5.ioc.internal.util.TapestryException: 异常构造服务'ValueEncoderSource': 调用服务构建器方法时出错 org.apache.tapestry5.services.TapestryModule.buildValueEncoderSource(Map, InvalidationEventHub) (在 TapestryModule.java:1910) (对于服务'ValueEncoderSource'):调用服务贡献方法org.apache.tapestry5.hibernate.HibernateModule.contributeValueEncoderSource(MappedConfiguration,boolean,HibernateSessionSource,Session,TypeCoercer,PropertyAccess,LoggerSource)时出错:异常构造服务'HibernateSessionSource':调用服务时出错构建器方法 org.apache.tapestry5.hibernate.HibernateCoreModule.buildHibernateSessionSource(Logger, List, RegistryShutdownHub) (在 HibernateCoreModule.java:123) (用于服务 'HibernateSessionSource'): org.hibernate.validator.event.ValidateEventListener 不能转换为 org.hibernate.event.PreInsertEventListener [在 classpath:org/apache/tapestry5/corelib/components/ExceptionDisplay.tml,第 3 行]
这是使用最新的休眠注释(版本 3.4.0 GA)。在 Maven pom.xml 中,如果我将 org.hibernate 依赖项更改为:-
org.hibernate 休眠注释 3.2.1.ga
错误消失了,但我们丢失了较新版本的注释中的错误修复。有谁知道解决这个问题的方法?