ICEfaces
  1. ICEfaces
  2. ICE-10907

emporium samples app deployment server error (MyFaces JSF)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.1
    • Fix Version/s: 4.1.1
    • Component/s: ACE-Components, Sample Apps
    • Labels:
      None
    • Environment:
      ICEfaces-4.1.0 Jenkins Build# 3/MyFaces JSF
      Browsers: all
      Server: Tomcat7
    • Assignee Priority:
      P1

      Description

      Emporium app (MyFaces JSF):

      A server error occurs when deploying emporium with MyFaces JSF:

      Dec 20, 2015 3:11:54 PM org.apache.myfaces.util.ExternalSpecifications isBeanValidationAvailable
      INFO: MyFaces Bean Validation support disabled
      Dec 20, 2015 3:11:54 PM org.icefaces.impl.renderkit.DOMRenderKit <clinit>
      INFO:
      ICEsoft Technologies Inc.
      ICEfaces 4.1.0
      Build number: 3
      Build date: 151218
      Revision: 46894

      Dec 20, 2015 3:11:54 PM org.apache.myfaces.config.FacesConfigurator handleSerialFactory
      INFO: Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
      Dec 20, 2015 3:11:54 PM org.apache.myfaces.config.annotation.DefaultLifecycleProviderFactory getLifecycleProvider
      INFO: Using LifecycleProvider org.apache.myfaces.config.annotation.Tomcat7AnnotationLifecycleProvider
      Dec 20, 2015 3:11:54 PM org.apache.myfaces.webapp.AbstractFacesInitializer _createEagerBeans
      WARNING: The managed-bean with name icefacesBeanDestroyRecorder must be application scoped to support eager=true.
      Dec 20, 2015 3:11:54 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(StartupServletExternalContext
      Impl.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.apache.myfaces.config.ManagedBeanBuilder.getScope(ManagedBeanBuilder.java:560)
              at org.apache.myfaces.config.ManagedBeanBuilder.getNarrowestScope(ManagedBeanBuilder.java:464)
              at org.apache.myfaces.config.ManagedBeanBuilder.isInValidScope(ManagedBeanBuilder.java:435)
              at org.apache.myfaces.config.ManagedBeanBuilder.initializeProperties(ManagedBeanBuilder.java:319)
              at org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(ManagedBeanBuilder.java:163)
              at org.apache.myfaces.webapp.AbstractFacesInitializer._createEagerBeans(AbstractFacesInitializer.java:303)
              at org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.java:193)
              at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java
      :119)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4937)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
              at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1120)
              at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1678)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
              at java.util.concurrent.FutureTask.run(FutureTask.java:262)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
              at java.lang.Thread.run(Thread.java:744)

      Dec 20, 2015 3:11:54 PM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory C:\Servers\apache-tomcat-7.0.42\webapps\examples
      Dec 20, 2015 3:11:56 PM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory C:\Servers\apache-tomcat-7.0.42\webapps\host-manager
      Dec 20, 2015 3:11:56 PM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory C:\Servers\apache-tomcat-7.0.42\webapps\manager
      Dec 20, 2015 3:11:56 PM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory C:\Servers\apache-tomcat-7.0.42\webapps\ROOT
      Dec 20, 2015 3:11:56 PM org.icefaces.demo.emporium.watcher.base.ThreadedWatcher stop
      INFO: Stop requested for null.
      Dec 20, 2015 3:11:56 PM org.apache.coyote.AbstractProtocol start
      INFO: Starting ProtocolHandler ["http-bio-8080"]
      Dec 20, 2015 3:11:56 PM org.apache.coyote.AbstractProtocol start
      INFO: Starting ProtocolHandler ["http-bio-8443"]
      Dec 20, 2015 3:11:56 PM org.apache.coyote.AbstractProtocol start
      INFO: Starting ProtocolHandler ["ajp-bio-8009"]
      Dec 20, 2015 3:11:56 PM org.apache.catalina.startup.Catalina start
      INFO: Server startup in 9900 ms
      Dec 20, 2015 3:12:11 PM org.icepush.servlet.MainServlet <init>
      INFO:
      ICEsoft Technologies Inc.
      ICEpush 4.1.0
      Build number: 3
      Revision: 46894

      Dec 20, 2015 3:12:13 PM org.apache.myfaces.util.ExternalSpecifications isUnifiedELAvailable
      INFO: MyFaces Unified EL support enabled
      Dec 20, 2015 3:12:13 PM org.icefaces.demo.emporium.auth.AuthController determineStatus
      WARNING: Failed to find or validate Auth password file from path: /opt/tomcat/emporium/password, disallowing Auth.
      Dec 20, 2015 3:12:14 PM org.icefaces.demo.emporium.bid.model.AuctionImage generateParentDir
      INFO: Item image directory C:\Servers\apache-tomcat-7.0.42\temp\1-emporium\resources\items valid with 177 files.
      Dec 20, 2015 3:12:14 PM org.icefaces.demo.emporium.settings.SettingsBean initSettingsBean
      INFO: User initialized with SettingsBean: User #34333 from North America using theme cupertino with fg/bg colors rgba(0,
       0, 0, 0.9)/rgba(176, 196, 222, 0.9)
      Dec 20, 2015 3:12:14 PM org.icefaces.demo.emporium.bid.AuctionService initAuctionService
      INFO: Test Flag status...no interval push [false], expiry [false], bid robot [false], many items [false], many past bids
       [false], autojoin chat [false], growl messages [false], no auth [false].

        Activity

        Hide
        Carlo Guglielmin added a comment -

        This issue stems from a MyFaces 2.2.8 problem with "eager=true".

        See:
        https://issues.apache.org/jira/browse/MYFACES-4010

        Their issue is fixed in MyFaces 2.2.9.

        The problem is when we use eager=true and ManagedProperty injection, specifically in AuctionService.java. As a 2.2.8 workaround we could technically just remove eager=true, but then we get into some initialization problems we'd have to resolve another way.

        Show
        Carlo Guglielmin added a comment - This issue stems from a MyFaces 2.2.8 problem with "eager=true". See: https://issues.apache.org/jira/browse/MYFACES-4010 Their issue is fixed in MyFaces 2.2.9. The problem is when we use eager=true and ManagedProperty injection, specifically in AuctionService.java. As a 2.2.8 workaround we could technically just remove eager=true, but then we get into some initialization problems we'd have to resolve another way.
        Hide
        Carmen Cristurean added a comment -

        The same server error can be reproduced after upgrading to MyFaces 2.2.9 (ICEfaces4 trunk r.47603/ Jenkins IF 4.1.1 Build #2).

        Show
        Carmen Cristurean added a comment - The same server error can be reproduced after upgrading to MyFaces 2.2.9 (ICEfaces4 trunk r.47603/ Jenkins IF 4.1.1 Build #2).
        Hide
        Carlo Guglielmin added a comment -

        Checked in potential fix r47617, waiting for verification before closing the bug.

        Show
        Carlo Guglielmin added a comment - Checked in potential fix r47617, waiting for verification before closing the bug.
        Hide
        Carmen Cristurean added a comment -

        There is still an error when deploying emporium with MyFaces (IF 4 trunk r. 47617):

        Feb 11, 2016 4:27:37 PM org.apache.myfaces.webapp.AbstractFacesInitializer initFaces
        SEVERE: An error occured while initializing MyFaces: java.lang.reflect.InvocationTargetException
        javax.faces.FacesException: java.lang.reflect.InvocationTargetException
        at org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(ManagedBeanBuilder.java:223)
        at org.apache.myfaces.webapp.AbstractFacesInitializer._createEagerBeans(AbstractFacesInitializer.java:303)
        at org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.java:193)
        at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java
        :121)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4937)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:983)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1660)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:744)
        Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.catalina.core.DefaultInstanceManager.postConstruct(DefaultInstanceManager.java:221)
        at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:163)
        at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:155)
        at org.apache.myfaces.config.annotation.Tomcat7AnnotationLifecycleProvider.postConstruct(Tomcat7AnnotationLifecy
        cleProvider.java:94)
        at org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(ManagedBeanBuilder.java:213)
        ... 16 more
        Caused by: java.lang.UnsupportedOperationException: This method is not supported during startup
        at org.apache.myfaces.context.servlet.StartupServletExternalContextImpl.getRequestParameterMap(StartupServletExt
        ernalContextImpl.java:148)
        at org.icefaces.impl.application.WindowScopeManager.lookupWindowScope(WindowScopeManager.java:108)
        at org.icefaces.impl.application.WindowELResolver.getScope(WindowELResolver.java:66)

        Show
        Carmen Cristurean added a comment - There is still an error when deploying emporium with MyFaces (IF 4 trunk r. 47617): Feb 11, 2016 4:27:37 PM org.apache.myfaces.webapp.AbstractFacesInitializer initFaces SEVERE: An error occured while initializing MyFaces: java.lang.reflect.InvocationTargetException javax.faces.FacesException: java.lang.reflect.InvocationTargetException at org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(ManagedBeanBuilder.java:223) at org.apache.myfaces.webapp.AbstractFacesInitializer._createEagerBeans(AbstractFacesInitializer.java:303) at org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.java:193) at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java :121) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4937) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:983) at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1660) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.catalina.core.DefaultInstanceManager.postConstruct(DefaultInstanceManager.java:221) at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:163) at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:155) at org.apache.myfaces.config.annotation.Tomcat7AnnotationLifecycleProvider.postConstruct(Tomcat7AnnotationLifecy cleProvider.java:94) at org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(ManagedBeanBuilder.java:213) ... 16 more Caused by: java.lang.UnsupportedOperationException: This method is not supported during startup at org.apache.myfaces.context.servlet.StartupServletExternalContextImpl.getRequestParameterMap(StartupServletExt ernalContextImpl.java:148) at org.icefaces.impl.application.WindowScopeManager.lookupWindowScope(WindowScopeManager.java:108) at org.icefaces.impl.application.WindowELResolver.getScope(WindowELResolver.java:66)
        Hide
        Carmen Cristurean added a comment - - edited

        Verified ICEfaces4 trunk r. 47621/ IE11, FF41, Chrome48 .with MyFaces 2.2.9 and Mojarra 2.2.13
        Verified ICEfaces 4.1.1 Jenkins Build #4 /FF41 with MyFaces/Mojarra.
        No errors found.

        Show
        Carmen Cristurean added a comment - - edited Verified ICEfaces4 trunk r. 47621/ IE11, FF41, Chrome48 .with MyFaces 2.2.9 and Mojarra 2.2.13 Verified ICEfaces 4.1.1 Jenkins Build #4 /FF41 with MyFaces/Mojarra. No errors found.

          People

          • Assignee:
            Carlo Guglielmin
            Reporter:
            Carmen Cristurean
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: