gpt4 book ai didi

tomcat - HTTP 状态 500 - oracle.adfinternal.controller.faces.context.StubJSFPageLifecycleContext 无法转换为

转载 作者:行者123 更新时间:2023-11-28 22:28:56 24 4
gpt4 key购买 nike

我们正在使用 Oracle ADF (jdeveloper 11.1.2.4) 开发 Web 应用程序。我们需要在 tomcat6.x 上运行这些应用程序。我们已经使用帖子 ADF Essentials on tomcat 设置了我们的 tomcat6.x 环境。 .

我们只能在 tomcat 上运行一个应用程序。意味着如果我们只部署一个应用程序,它会在浏览器上成功运行并且一切正常。每当我们尝试部署多个应用程序时,tomcat 服务器控制台上都不会出现异常。

但是当我们试图打开像http://localhost:1234/E/faces/j.jsf 这样的页面时它给出了以下错误。

HTTP Status 500 - oracle.adfinternal.controller.faces.context.StubJSFPageLifecycleContext cannot be cast to oracle.adf.controller.faces.context.FacesPageLifecycleContext
exception

java.lang.ClassCastException: oracle.adfinternal.controller.faces.context.StubJSFPageLifecycleContext cannot be cast to oracle.adf.controller.faces.context.FacesPageLifecycleContext
oracle.adfinternal.controller.application.model.UpdateBindingListener.beforePhase(UpdateBindingListener.java:66)
oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper.beforePhase(ADFLifecycleImpl.java:550)
oracle.adfinternal.controller.lifecycle.LifecycleImpl.internalDispatchBeforeEvent(LifecycleImpl.java:100)
oracle.adfinternal.controller.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:191)
oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.access$200(ADFPhaseListener.java:23)
oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.startPageLifecycle(ADFPhaseListener.java:232)
oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$1.after(ADFPhaseListener.java:274)
oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:75)
oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:53)
oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:447)
oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

请帮助我们。我们必须在 tomcat 6.x 上部署并成功运行多个 adf 应用程序。

最佳答案

可能与此处发布的问题相同:https://community.oracle.com/thread/724037?start=15&tstart=0

简而言之,正确答案是:

I cannot say for sure, but this sounds like you have the same library placed in both web application library folder and Tomcat common library directory. Depending of where you place those libraries, they will be loaded by application classloader or the parent Tomcat classloader. In other words, I believe that you have one library loaded by webapplication's lib folder instead of having it loaded into the parent classloader. - Florin

关于tomcat - HTTP 状态 500 - oracle.adfinternal.controller.faces.context.StubJSFPageLifecycleContext 无法转换为,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30052088/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com