1 Reply Latest reply on Aug 8, 2012 5:33 AM by hostage

    Errors while catch exception in Weblogic 12c (Seam 3)

    hostage

      Hi!

      I deploy my application (with Seam 3.1.0-Final) to Weblogic 12c (necessarily with patch QPXR). Version WELD in box Weblogic 12c — 1.1.3.SP1. All works is good! But...

      In my web.xml i have

       

      <error-page>
        <error-code>404</error-code>
      
        <location>/404.html</location>
      </error-page>
      <error-page>
        <exception-type>javax.faces.application.ViewExpiredException</exception-type>
        <location>/login.html</location>
      </error-page>
      <error-page>
        <error-code>500</error-code>
        <location>/500.html</location>
      </error-page>
      

       

      and, when throw exception in JSF page, CatchExceptionHandler work fine, redirect to 500.html execute, but SeamExternalContext throw exception and 500.html page not rendered

       

       

      <08.08.2012 11:24:04 GMT+04:00> <Error> <Kernel> <BEA-000802> <ExecuteRequest failed
       java.lang.IllegalStateException: Could not wrap ExternalContext.
      java.lang.IllegalStateException: Could not wrap ExternalContext
        at org.jboss.seam.faces.environment.SeamExternalContextFactory.getExternalContext(SeamExternalContextFactory.java:47)
        at com.sun.faces.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:93)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:583)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:242)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:216)
        Truncated. see log file for complete stacktrace
      Caused By: org.jboss.weld.context.ContextNotActiveException: WELD-001303 No active contexts for scope type javax.enterprise.context.RequestScoped
        at org.jboss.weld.manager.BeanManagerImpl.getContext(BeanManagerImpl.java:612)
        at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:71)
        at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:79)
        at org.jboss.seam.faces.environment.SeamExternalContext$Proxy$_$$_WeldClientProxy.setWrapped(SeamExternalContext$Proxy$_$$_WeldClientProxy.java)
        at org.jboss.seam.faces.environment.SeamExternalContextFactory.getExternalContext(SeamExternalContextFactory.java:43)
        Truncated. see log file for complete stacktrace
      
      

       

      Help me, please!

        • 1. Re: Errors while catch exception in Weblogic 12c (Seam 3)
          hostage

          Step reproduce:

          1. Install Weblogic 12c (only Middleware. Development zip have not Bea Smart Update)
          2. Using BSU install patch QPXR (in Oracle Support search by patch name '13893259'). Will need to remove one of the previous conflict patches, it's ok
          3. Download source and build (mvn clean package ) seamtest.war
          4. Deploy war to weblogic (move to domain/autodeploy folder)