Problem description:
I am trying to migrate a web application from Websphere 8.5.5 to Websphere Liberty Profile (WLP 16.0.0.3) under my local Eclipse environment. The application is working fine in Websphere but when started in WLP i get following exception:
Error creating bean with name 'entityManagerFactory': Post-processing of the FactoryBean's object failed; nested exception is java.lang.NoClassDefFoundError: org.apache.openjpa.persistence.query.QueryBuilder
I would expect the QueryBuilder class to be present in the opnJPA implementation provided by the Liberty runtime, but for some reason is not loaded correctly. Any help would be greatly appreciated.
Few details about the jpa configuration:
WLP jpa level: jpa-2.0
Spring version: 3.1.4.RELEASE
EntityManagerFactory bean: class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"
jpaVendorAdapter: class="org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter"
transaction manager: class="org.springframework.orm.jpa.JpaTransactionManager"