【发布时间】:2014-10-17 04:34:47
【问题描述】:
我正在将一个 Java EE 应用程序从 GlassFish (4.0) 迁移到 Wildfly (8.1.0 final)。需要使用来自hibernate-core(4.3.6 最终版)的本机 Hibernate 包,即org.hibernate.annotations.Type。例如,
@Type(type="org.jadira.usertype.dateandtime.joda.PersistentDateTime")
private DateTime discountStartDate; //Getter and setter.
使用 Joda-Time。
但是,此类型尚未解决。出现编译时错误,指示此包不存在。
我尝试在 ejb 模块中向 MANIFEST.MF 添加显式依赖项,如 here 所述,但包仍然无法解析。
我是否需要打包自己的副本并将其作为外部库添加到 ejb 模块?应该使用服务器中包含的 Hibernate jar,而不是将它们添加为外部 jar。
【问题讨论】:
标签: hibernate wildfly wildfly-8