WebSphere 9 支持 Java 9 吗?

Pab*_*oX3 2 java websphere

我有一个用 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 ]
Run Code Online (Sandbox Code Playgroud)

WebSphere 9 支持 Java 9 吗?

Ala*_*air 6

WebSphere Application Server V9 传统运行时不能在 8 之后的 Java 版本上运行。如果您想在 Java 11、17 或更高版本上运行,那么您可以改用 WebSphere Liberty。