java - WebSphere 9 是否支持 Java 9?

我有一个在 Java 8 中构建的 EAR,它在 WAS 9 中运行良好,但是如果我在 Java 9 中编译,EAR 将不起作用并引发如下错误:

[17/05/22 16:19:56:214 CDT] 000000ad wtp           W org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.WARFileAnnotationsDetector locateAnnotations Failed to create class reader for [ WEB-INF/classes/com/ibatis/sqlmap/engine/mapping/sql/dynamic/DynamicSql.class ] in [ H2H.war ]: [ null ]
[17/05/22 16:19:56:214 CDT] 000000ad wtp           W org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.WARFileAnnotationsDetector locateAnnotations Failed to create class reader for [ WEB-INF/classes/com/back/auditoria/InsertAuditoriaADM.class ] in [ H2H.war ]: [ null ]
[17/05/22 16:19:56:214 CDT] 000000ad wtp           W org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.WARFileAnnotationsDetector locateAnnotations Failed to create class reader for [ WEB-INF/classes/com/back/auditoria/PistasAuditoria.class ] in [ H2H.war ]: [ null ]
[17/05/22 16:19:56:215 CDT] 000000ad wtp           W org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.WARFileAnnotationsDetector locateAnnotations Failed to create class reader for [ WEB-INF/classes/com/back/auditoria/SecurityPistas.class ] in [ H2H.war ]: [ null ]
[17/05/22 16:19:56:215 CDT] 000000ad wtp           W org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.WARFileAnnotationsDetector locateAnnotations Failed to create class reader for [ WEB-INF/classes/com/back/auditoria/Variables.class ] in [ H2H.war ]: [ null ]
[17/05/22 16:19:56:215 CDT] 000000ad wtp           W org.eclipse.jst.j2ee.commonarchivecore.internal.helpers.WARFileAnnotationsDetector locateAnnotations Failed to create class reader for [ WEB-INF/classes/com/back/bd/PFIMonitorBD.class ] in [ H2H.war ]: [ null ]

WebSphere 9 是否支持 Java 9?

回答1

WebSphere Application Server V9 传统运行时无法在 Java 8 之后的版本上运行。如果您想在 Java 11、17 或更高版本上运行,则可以使用 WebSphere Liberty 代替。

相似文章