JPA 2.1 Integration issue with Liberty Profile 16.0.0.4

Hello, I am trying to integrate my application which running in Liberty Profile 16.0.0.4 but I’m having problems with JPA 2.1.

I use Hibernate 5.1.0.Final entity manager (to use JPA 2.1 features), which does not seem to be working by WLP 16.0.0.4.
I have tried Class loader setting as “Parent Last” but no effect. Below is the error for your reference.

Below is the error returned when trying to create the EntityManager .

CWWKZ0002E: An exception occurred while starting the application . The exception message was: com.ibm.ws.container.service.state.StateChangeException: javax.xml.stream.FactoryConfigurationError: Provider javax.xml.stream.XMLEventFactory could not be instantiated: java.util.ServiceConfigurationError: javax.xml.stream.XMLEventFactory: Provider com.ibm.xml.xlxp2.api.stax.XMLEventFactoryImpl not found.

Appreciate your help on this regard.

Thanks
Ramesh

Related:

./example: error while loading shared libraries: libodbc.so: cannot open shared object file: No such file or directory

Hi,

I’ve installed the SDAP711 on a Red Hat Enterprise Linux Server release 7.1, I found the following document
https://www.ibm.com/developerworks/library/ba-pp-spss-page660/
and I would use the utility example in order to test the connection to Teradata but when I try o run it, I get the following error:

root@pmsnhas01v example]# ./example
./example: error while loading shared libraries: libodbc.so: cannot open shared object file: No such file or directory

But the libodbc.so is available at the following link:

[root@pmsnhas01v SDAP711]# find /opt/IBM/SPSS/SDAP711/ -name libodbc.so
/opt/IBM/SPSS/SDAP711/lib/libodbc.so

Why?
Many thanks
*Federica*

Related: