title: org.hibernate.cfg.beanvalidation.TypeSafeActivator;141) HHH000274: Unable to apply constraints on DDL
body: <p>I am using JDK 1.7 with Maven 3.0 for my project.</p>
  
  <p>When I have the following in pom.xml</p>
  
  <pre><code>&lt;dependency&gt;
  &lt;groupId&gt;javax&lt;/groupId&gt;
  &lt;artifactId&gt;javaee-api&lt;/artifactId&gt;
  &lt;version&gt;6.0&lt;/version&gt;
  &lt;scope&gt;compile&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>I am getting the following while deploying to Weblogic 10.3.6 integrated with Eclipse</p>
  
  <pre><code>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)
  </code></pre>
  
  <p>If I remove <code>javaee-api</code> dependency, then I do have issues when I compile project using mvn compile with errors like </p>
  
  <pre><code>[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
  </code></pre>
  
  <p>More details <a href="https://stackoverflow.com/q/16603576/599528">here</a></p>
  
  <p>How can I resolve this issue?</p>