I need to migrate project from Java 7 to Java 8 and deploy it on WAS 9 (before this migration application was running on Java 7 and WAS 8.5) So, I upgraded Java to version 8 and add some necessary dependencies in pom.xml but I get stuck with this errors in log file and actually don't know what should I do to resolve it. Am I missing some dependency? Should I exclude some jar files?
Also, for this project class loader was configured to parent last in Websphere.
Caused by: java.lang.LinkageError: loading constraint violation when resolving method "javax/xml/bind/Unmarshaller.unmarshal(Ljavax/xml/stream/XMLStreamReader;Ljava/lang/Class;)Ljavax/xml/bind/JAXBElement;" : loader "com/ibm/ws/classloader/CompoundClassLoader@ebfd011c" of class "org/apache/cxf/configuration/spring/JAXBBeanFactory" and loader "com/ibm/oti/vm/BootstrapClassLoader@38c22f6e" of class "javax/xml/bind/Unmarshaller" have different types for the method signature at org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(JAXBBeanFactory.java:51)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name AuthenticationServicePort.jms-conduit': Cannot create inner bean '(inner bean)' of type [org.apache.cxf.configuration.spring.JAXBBeanFactory] while setting bean property 'clientConfig'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public static java.lang.Object org.apache.cxf.configuration.spring.JAXBBeanFactory.createJAXBBean(javax.xml.bind.JAXBContext,java.lang.String,java.lang.Class)] threw exception; nested exception is java.lang.LinkageError: loading constraint violation when resolving method "javax/xml/bind/Unmarshaller.unmarshal(Ljavax/xml/stream/XMLStreamReader;Ljava/lang/Class;)Ljavax/xml/bind/JAXBElement;" : loader "com/ibm/ws/classloader/CompoundClassLoader@ebfd011c" of class "org/apache/cxf/configuration/spring/JAXBBeanFactory" and loader "com/ibm/oti/vm/BootstrapClassLoader@38c22f6e" of class "javax/xml/bind/Unmarshaller" have different types for the method signature
Does anybody knows what should I do? Or what I am doing wrong?
Many thanks in advance