org.hibernate.cfg.beanvalidation.TypeSafeActivator; 141)HHH000274:无法对DDL应用约束
我正在为我的项目使用JDK 1.7和Maven 3.0。org.hibernate.cfg.beanvalidation.TypeSafeActivator; 141)HHH000274:无法对DDL应用约束
时,我有在pom.xml中以下
<dependency> <groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>6.0</version>
<scope>compile</scope>
</dependency>
我得到,同时部署到Weblogic 10.3.6以下与Eclipse
WARN (org.hibernate.cfg.beanvalidation.TypeSafeActivator;141) HHH000274: Unable to apply constraints on DDL for test.entity.Employee
java.lang.NullPointerException at
org.hibernate.cfg.beanvalidation.TypeSafeActivator.applyDDL(TypeSafeActivator.java:172)
集成如果我删除javaee-api
依赖,那么我当我编译使用mvn编译项目时遇到问题,例如
[ERROR] /domain/view/EmployeeNameConverter.java:[29,76] cannot access javax.el.ELContext
class file for javax.el.ELContext not found
[ERROR] /EmployeeNameConverter.java:[28,55] cannot access javax.el.ELResolver
class file for javax.el.ELResolver not found
更多详细信息here
我该如何解决这个问题?
回答:
就像我们在评论Weblogic 11g doesn't support Java EE6中所做的那样。所以一个解决方案可以使用Java EE5来代替。
以上是 org.hibernate.cfg.beanvalidation.TypeSafeActivator; 141)HHH000274:无法对DDL应用约束 的全部内容, 来源链接: utcz.com/qa/260888.html