0

我正在尝试使用 WebSphere Portal (HCL DX) v9.5 在 WebSphere Application Server 9 上配置 JFS 2.0。我有一个 portlet,但它不能与这个自定义实现一起工作。到目前为止,我所做的是按照 JAR 文件下载的 -

  1. commons-beanutils-1.9.4.jar
  2. commons-collections-3.2.jar
  3. commons-logging-1.1.1.jar
  4. myfaces-impl-2.0.25.jar
  5. commons-codec-1.3.jar
  6. commons-digester-1.8.jar
  7. myfaces-api-2.0.25.jar

将它们捆绑在隔离的共享库中,在模块级别引用共享库并重新启动应用程序。下面是应用程序启动时抛出的异常。

[12/16/21 11:36:39:134 UTC] 0000008c AbstractFaces E   An error occured while initializing MyFaces: Class com.ibm.faces20.portlet.httpbridge.PortletResourceHandler is no javax.faces.application.ResourceHandler
                             java.lang.IllegalArgumentException: Class com.ibm.faces20.portlet.httpbridge.PortletResourceHandler is no javax.faces.application.ResourceHandler
    at org.apache.myfaces.shared.util.ClassUtils.buildApplicationObject(ClassUtils.java:498)
    at org.apache.myfaces.shared.util.ClassUtils.buildApplicationObject(ClassUtils.java:465)
    at org.apache.myfaces.config.FacesConfigurator.configureApplication(FacesConfigurator.java:535)
    at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:414)
    at org.apache.myfaces.webapp.AbstractFacesInitializer.buildConfiguration(AbstractFacesInitializer.java:370)
    at org.apache.myfaces.webapp.Jsp21FacesInitializer.initContainerIntegration(Jsp21FacesInitializer.java:73)
    at org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.java:143)
    at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:117)
    at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1837)
    at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:443)
    at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)
    at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:171)
    at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:904)
    at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:789)
    at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:427)
    at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:719)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1249)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1591)
    at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:708)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:1162)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:801)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl$5.run(ApplicationMgrImpl.java:2325)
    at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5536)
    at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5662)
    at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2330)
    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:524)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1909)

此外,尝试在企业应用程序级别将类加载设置为 PARENT_LAST 但同样的问题。

有没有人有同样的问题或可以帮助解决这个问题?

4

0 回答 0