AS7 JPA ValidatorFactory
prasad.deshpande Jul 5, 2011 6:44 AMHi Guys,
My application is EE5 compliant, I'm using following persistence.xml :
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence">
<persistence-unit name="efp" transaction-type="JTA">
<jta-data-source>java:jboss/datasources/eFpDataSource</jta-data-source>
<properties>
<property name="hibernate.show_sql" value="false"/>
<property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect"/>
<property name="javax.persistence.validation.mode" value="none"/>
</properties>
</persistence-unit>
</persistence>
This is JPA 1.0 so doesn't have validation-mode node to it, I've set property to disable Validations. Still while deploying my entities, I get error like :
"jboss.naming.context.java.comp.efp.efprocess.TypeLink.ValidatorFactory missing [ jboss.naming.context.java.comp.efp.efprocess.TypeLink ]",
"jboss.naming.context.java.comp.efp.efprocess.DeadlineConf.ValidatorFactory missing [ jboss.naming.context.java.comp.efp.efprocess.DeadlineConf ]",
"jboss.naming.context.java.comp.efp.efprocess.MapEntity.ValidatorFactory missing [ jboss.naming.context.java.comp.efp.efprocess.MapEntity ]",
"jboss.naming.context.java.comp.efp.efprocess.Form.Validator missing [ jboss.naming.context.java.comp.efp.efprocess.Form ]",
"jboss.naming.context.java.comp.efp.efprocess.NestedRule.Validator missing [ jboss.naming.context.java.comp.efp.efprocess.NestedRule ]",
"jboss.naming.context.java.comp.efp.efprocess.OperationalContext.Validator missing [ jboss.naming.context.java.comp.efp.efprocess.OperationalContext ]",
My question is why is deployment even looking for ValidationFactory/Validator when I set the property to "none". I know with JPA2 (AS7 default) validation always kicks-in, but with my persistence.xml, it should still work (JPA1 backword compatibility).
Any suggestions?
Thanks,
Prasad
-
server.log.zip 7.3 KB