0

我已将我的 WebSphere 从 8.5 升级到 9。现在,在启动服务器时,我遇到了这些异常。我的项目在 8.5 中运行良好,现在升级到 9 后,我什至无法启动 WebSphere 服务器。任何建议将不胜感激。

[8/20/19 13:41:48:418 EDT] 00000057 annotation    W com.ibm.ws.webcontainer.annotation.WASAnnotationHelper collectClasses SRVE8000W: Skipped class that failed to initialize for annotation scanning.
                             java.lang.ClassNotFoundException: com.sun.faces.taglib.jsf_core.SubviewTag
           at java.lang.Class.forNameImpl(Native Method)
           at java.lang.Class.forName(Class.java:403)
           at com.ibm.ws.webcontainer.annotation.WASAnnotationHelper.loadClass(WASAnnotationHelper.java:1004)
           at com.ibm.ws.webcontainer.annotation.WASAnnotationHelper.collectClasses(WASAnnotationHelper.java:214)
           at com.ibm.ws.webcontainer.annotation.WASAnnotationHelper.<init>(WASAnnotationHelper.java:165)
           at com.ibm.ws.webcontainer.annotation.WASAnnotationHelperManager.getAnnotationHelper(WASAnnotationHelperManager.java:66)
           at com.ibm.ws.webcontainer.metadata.WebMetaDataFactory.handOffReferenceData(WebMetaDataFactory.java:440)
           at com.ibm.ws.webcontainer.metadata.WebMetaDataFactory.createMetaData(WebMetaDataFactory.java:413)
           at com.ibm.ws.runtime.component.MetaDataMgrImpl.createMetaDataFromFactories(MetaDataMgrImpl.java:229)
           at com.ibm.ws.runtime.component.MetaDataMgrImpl.createMetaData(MetaDataMgrImpl.java:567)
           at com.ibm.ws.runtime.component.DeployedModuleImpl.preStart(DeployedModuleImpl.java:553)
           at com.ibm.ws.runtime.component.DeployedApplicationImpl.preStart(DeployedApplicationImpl.java:849)
           at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:1045)
           at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:786)
           at com.ibm.ws.runtime.component.ApplicationMgrImpl$5.run(ApplicationMgrImpl.java:2238)
           at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5488)
           at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5614)
           at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
           at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2243)
           at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:436)
           at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
           at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:379)
           at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:127)
           at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:985)
           at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:502)
           at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1892)
4

1 回答 1

0

您的应用程序很可能正在使用 WAS 8.x 中提供的 Sun JSF RI,而 WAS 9.0 中已将其删除。

我强烈建议使用迁移工具来扫描您的应用程序以查找迁移问题:

这些工具将找到您在迁移过程中需要解决的问题。

对于您的情况,我会说您需要在 WEB-INF/lib 中包含 JSF jar 或迁移到在 WAS 9.x 中提供 JSF 实现的 MyFaces

于 2019-08-26T11:46:38.103 回答