I do not know which version of OpenJPA is built into WAS 8.0.
In OpenJPA 1.x it was not possible to use "slf4j". The workaround was to copy the org.apache.openjpa.lib.log.SLF4JLogFactory class from OpenJPA 2.x into your application and use it directly:
<property name="openjpa.Log" value="org.apache.openjpa.lib.log.SLF4JLogFactory"/>
You can always specify the factory class name directly, the short name is just a convenient trick.
OpenJPA 2.x has SLF4JLogFactory , so it should work with your current settings; maybe you installed it in a place that is overridden by a different configuration? For example, if you configure JPA through the EntityManagerFactory propertyMap, it takes precedence over the settings in persistence.xml .
source share