I am migrating a WLS JEE app to EAP 7. We use the eclipselink moxy api for jaxb. This worked fine on Weblogic. Now, the line of code below :
org.eclipse.persistence.jaxb.JAXBContext jaxbContexL1 = org.eclipse.persistence.jaxb.JAXBContext.newInstance(Level1PayloadType.class)
is failing with
java.lang.ClassCastException: com.sun.xml.bind.v2.runtime.JAXBContextImpl cannot be cast to org.eclipse.persistence.jaxb.JAXBContext
The required moxy jar files are in the ear project in the lib folder. I turned on trace logging for eap deployment, and do not see them getting loaded.
So, the app is using the default jaxb implementation. I also have the jaxb.properties file set:
javax.xml.bind.context.factory=org.eclipse.persistence.jaxb.JAXBContextFactory
Any suggestion on how to get the proper jars to load?