How to resolve AnnotationExceptions encountered during startup when updating 7.0 to de-67+ while using WebSphere

Issue

  • Using WebSphere FP 11 as our application server, we are unable to start up a 7.0 deployment after patching to de-67, and are receiving an AnnotationException in the log, as follows:
    Annotation processing failed with the following error: com.ibm.ws.metadata.annotations.AnnotationException: Annotation processing failed for class: META-INF/versions/9/javax/xml/bind/ModuleUtil.class at com.ibm.ws.metadata.annotations.AnnotationConfigReader.getAnnotationData(AnnotationConfigReader.java:883)
    ...
    Caused by: java.lang.IllegalArgumentException

Environment

  • Liferay DXP 7.0
  • WebSphere 8.5.5 patched to Fix Pack 11-13

Resolution

  • Since the WebSphere 8.5.5 application server does not recognize multi-release .jars until FP 14, it is necessary to update the fix pack of the WebSphere Application Server to FP 14+ in order to successfully launch a Liferay 7.0 deployment patched to de-67+.
  • Once the WebSphere fix pack is updated and the application server is restarted, the Liferay server will be able to start without further necessary action.

Additional Information

  • This is necessary due to the changes added to resolve LPS-85610, which allows a portal compiled on JDK 8 to be started while using JDK 11.
这篇文章有帮助吗?
0 人中有 0 人觉得有帮助