ICEfaces
  1. ICEfaces
  2. ICE-10029

Icefaces 4 isn't compatibile with MyFaces 2.2.3

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0.BETA
    • Fix Version/s: None
    • Component/s: Bridge
    • Labels:
      None
    • Environment:
      Tomcat 7, Java 7, Myfaces 2.2.3, icefaces 4 from trunk

      Description

      Showcase doesn't start if glassfish javax.faces implemetnation is replaced with myfaces libraries.

      maj 18, 2014 3:13:41 PM org.apache.myfaces.webapp.AbstractFacesInitializer initFaces
      SEVERE: An error occured while initializing MyFaces: This method is not supported during startup
      java.lang.UnsupportedOperationException: This method is not supported during startup
              at org.apache.myfaces.context.servlet.StartupServletExternalContextImpl.getSession(StartupServletExternalContextImpl.java:187)
              at org.apache.myfaces.view.impl.DefaultViewScopeHandler.generateViewScopeId(DefaultViewScopeHandler.java:128)
              at org.apache.myfaces.view.ViewScopeProxyMap.getWrapped(ViewScopeProxyMap.java:76)
              at org.apache.myfaces.view.ViewScopeProxyMap.get(ViewScopeProxyMap.java:109)
              at org.icefaces.util.EnvUtils.getViewParam(EnvUtils.java:1041)
              at org.icefaces.util.EnvUtils.isFocusManaged(EnvUtils.java:521)
              at org.icefaces.impl.event.BridgeSetup.<init>(BridgeSetup.java:60)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
              at java.lang.Class.newInstance(Class.java:374)
              at org.apache.myfaces.shared.util.ClassUtils.newInstance(ClassUtils.java:411)
              at org.apache.myfaces.shared.util.ClassUtils.newInstance(ClassUtils.java:374)
              at org.apache.myfaces.config.FacesConfigurator.configureApplication(FacesConfigurator.java:649)
              at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:477)
              at org.apache.myfaces.webapp.AbstractFacesInitializer.buildConfiguration(AbstractFacesInitializer.java:416)
              at org.apache.myfaces.webapp.Jsp21FacesInitializer.initContainerIntegration(Jsp21FacesInitializer.java:73)
              at org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.java:172)
              at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:119)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4971)
      BTW.
      Some pom.xml files isn't updated to support myfaces profile.
      But users can simple fix it so it is not problem.

        Activity

        Hide
        Krashan Brahmanjara added a comment - - edited

        Dirty workaround.

            public BridgeSetup() {
                FacesContext fc = FacesContext.getCurrentInstance();
                reloadOnUpdateFailure = EnvUtils.reloadOnUpdateFailure(fc);
                deltaSubmit = EnvUtils.isDeltaSubmit(fc);
                focusManaged = true; //EnvUtils.isFocusManaged(fc);
                standardFormSerialization = EnvUtils.isStandardFormSerialization(fc);
                fc.getExternalContext().getApplicationMap().put(BRIDGE_SETUP, this);
            }
        
        Show
        Krashan Brahmanjara added a comment - - edited Dirty workaround. public BridgeSetup() { FacesContext fc = FacesContext.getCurrentInstance(); reloadOnUpdateFailure = EnvUtils.reloadOnUpdateFailure(fc); deltaSubmit = EnvUtils.isDeltaSubmit(fc); focusManaged = true; //EnvUtils.isFocusManaged(fc); standardFormSerialization = EnvUtils.isStandardFormSerialization(fc); fc.getExternalContext().getApplicationMap().put(BRIDGE_SETUP, this); }
        Hide
        Krashan Brahmanjara added a comment -

        Can be closed. Fixed by ICE-9966.

        Show
        Krashan Brahmanjara added a comment - Can be closed. Fixed by ICE-9966 .

          People

          • Assignee:
            Unassigned
            Reporter:
            Krashan Brahmanjara
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: