我正在嘗試集成我在Liberty Profile 16.0.0.4中運行的應用程序,但是我遇到了JPA 2.1的問題。JPA 2.1與Liberty Profile 16.0.0.4集成問題
我使用Hibernate 5.1.0.Final實體管理器(使用JPA 2.1功能),它似乎不是由WLP 16.0.0.4工作。我曾嘗試將類加載器設置爲「父最後」,但沒有效果。以下是您參考的錯誤。
下面是嘗試創建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.
感謝您在這方面的幫助。
我從我的pom.xml排除所有的STAX-API JAR引用 – Ramesh