6 Replies Latest reply on Aug 2, 2007 9:51 AM by Eric Gandt

    JBOSS Portal 2.6 + MyFaces within my application not working

    Eric Gandt Newbie

      First off there is a Wiki document at http://wiki.jboss.org/wiki/Wiki.jsp?page=Running2.6WithJBossAS4.2.xAndMyFaces

      Which appears to cover this topic, however after making the changes suggested, the portal works, but not my application which uses both ADF and MYfaces. In a JBoss Application Server 4.2 I fix my problems with MYFACES by adding the lines:

       <context-param>
       <param-name>
       org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL
       </param-name>
       <param-value>true</param-value>
       </context-param>
      

      to the web.xml located at default/deploy/jboss-web.deployer/conf under:
       <!-- =========== Common Context Params ================================== -->
       <!-- JBossInjectionProvider provides resource injection for managed beans. -->
       <!-- See JSF 1.2 spec section 5.4 for details.[
      /code]
      However in Portal this breaks the admin Portlets, so then the portal is not usable. I also receive an error with my application which is at the end of this post.
      If I remove jboss-portal.sar from deploy and start the same exact configuration (all that is done is to remove the file jboss-portal.sar fdrom deply) then my application works. This leads me to believe that making this last change for a Portal is install is not correct, but then how does one manage an application that requires myfaces on a JBOSS Portal installation?
      As a last point this last set of changes does not appear to be needed when the first set from the Wiki are implemented.
      
      Any ideas on what I can do to resolve this issue?
      Thanks,
      ERIC
      
      
      
      
      Also it does not seem to fix my application either as I receive an error:
      01:13:35,974 INFO [TomcatDeployer] deploy, ctxPath=/XX, warUrl=.../deploy/XX.war/
      01:13:41,763 ERROR [STDERR] java.lang.IllegalArgumentException: Class org.jboss.portal.faces.portlet.JSFMetaBridgeViewHandlerImpl is no javax.faces.application.ViewHandler
      01:13:41,768 ERROR [STDERR] at org.apache.myfaces.config.FacesConfigurator.getApplicationObject(FacesConfigurator.java:665)
      01:13:41,770 ERROR [STDERR] at org.apache.myfaces.config.FacesConfigurator.configureApplication(FacesConfigurator.java:602)
      01:13:41,771 ERROR [STDERR] at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:148)
      01:13:41,774 ERROR [STDERR] at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:68)
      01:13:41,776 ERROR [STDERR] at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:51)
      01:13:41,779 ERROR [STDERR] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
      01:13:41,781 ERROR [STDERR] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)
      01:13:41,782 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
      01:13:41,784 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
      01:13:41,786 ERROR [STDERR] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
      01:13:41,788 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      01:13:41,790 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      01:13:41,791 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      01:13:41,793 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
      01:13:41,795 ERROR [STDERR] at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
      01:13:41,797 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
      01:13:41,799 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      01:13:41,801 ERROR [STDERR] at org.apache.catalina.core.StandardContext.init(StandardContext.java:5310)
      01:13:41,802 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      01:13:41,804 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      01:13:41,806 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      01:13:41,807 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
      01:13:41,809 ERROR [STDERR] at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
      01:13:41,811 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
      01:13:41,812 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      01:13:41,813 ERROR [STDERR] at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
      01:13:41,815 ERROR [STDERR] at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
      01:13:41,817 ERROR [STDERR] at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
      01:13:41,818 ERROR [STDERR] at org.jboss.web.WebModule.startModule(WebModule.java:83)
      01:13:41,819 ERROR [STDERR] at org.jboss.web.WebModule.startService(WebModule.java:61)
      01:13:41,820 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      01:13:41,821 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      01:13:41,821 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      01:13:41,822 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      01:13:41,833 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
      01:13:41,836 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      01:13:41,838 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      01:13:41,840 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      01:13:41,842 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      01:13:41,843 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      01:13:41,844 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      01:13:41,848 ERROR [STDERR] at $Proxy0.start(Unknown Source)
      01:13:41,858 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
      01:13:41,864 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      01:13:41,867 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      01:13:41,870 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
      01:13:41,871 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      01:13:41,874 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      01:13:41,883 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      01:13:41,885 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      01:13:41,887 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      01:13:41,888 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      01:13:41,890 ERROR [STDERR] at $Proxy182.start(Unknown Source)
      01:13:41,891 ERROR [STDERR] at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
      01:13:41,893 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      01:13:41,895 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      01:13:41,897 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      01:13:41,898 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
      01:13:41,911 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      01:13:41,914 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      01:13:41,916 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      01:13:41,917 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      01:13:41,919 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      01:13:41,921 ERROR [STDERR] at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
      01:13:41,922 ERROR [STDERR] at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
      01:13:41,923 ERROR [STDERR] at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
      01:13:41,925 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
      01:13:41,925 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
      01:13:41,927 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      01:13:41,929 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      01:13:41,930 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      01:13:41,931 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      01:13:41,932 ERROR [STDERR] at $Proxy183.start(Unknown Source)
      01:13:41,933 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      01:13:41,934 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      01:13:41,935 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      01:13:41,938 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
      01:13:41,940 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      01:13:41,941 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
      01:13:41,942 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      01:13:41,944 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      01:13:41,944 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      01:13:41,946 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      01:13:41,949 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      01:13:41,976 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      01:13:41,984 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      01:13:41,989 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      01:13:41,992 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      01:13:41,995 ERROR [STDERR] at $Proxy9.deploy(Unknown Source)
      01:13:42,005 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
      01:13:42,010 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
      01:13:42,013 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
      01:13:42,015 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
      01:13:42,016 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      01:13:42,018 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      01:13:42,020 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      01:13:42,022 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      01:13:42,023 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
      01:13:42,024 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      01:13:42,025 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      01:13:42,026 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      01:13:42,027 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      01:13:42,028 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      01:13:42,029 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      01:13:42,030 ERROR [STDERR] at $Proxy0.start(Unknown Source)
      01:13:42,032 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
      01:13:42,032 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      01:13:42,034 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      01:13:42,036 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
      01:13:42,037 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      01:13:42,038 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      01:13:42,039 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      01:13:42,040 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      01:13:42,043 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      01:13:42,044 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      01:13:42,048 ERROR [STDERR] at $Proxy4.start(Unknown Source)
      01:13:42,050 ERROR [STDERR] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
      01:13:42,052 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      01:13:42,054 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      01:13:42,055 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      01:13:42,056 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
      01:13:42,057 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      01:13:42,058 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      01:13:42,059 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      01:13:42,061 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
      01:13:42,062 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      01:13:42,064 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      01:13:42,066 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      01:13:42,067 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      01:13:42,068 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      01:13:42,070 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      01:13:42,071 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      01:13:42,073 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      01:13:42,074 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      01:13:42,076 ERROR [STDERR] at $Proxy5.deploy(Unknown Source)
      01:13:42,077 ERROR [STDERR] at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
      01:13:42,078 ERROR [STDERR] at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
      01:13:42,079 ERROR [STDERR] at org.jboss.Main.boot(Main.java:200)
      01:13:42,080 ERROR [STDERR] at org.jboss.Main$1.run(Main.java:508)
      01:13:42,081 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)
      


        • 1. Re: JBOSS Portal 2.6 + MyFaces within my application not wor
          Chris Laprun Master

           

          "egandt" wrote:
          First off there is a Wiki document at http://wiki.jboss.org/wiki/Wiki.jsp?page=Running2.6WithJBossAS4.2.xAndMyFaces


          This is only needed if you intend to use MyFaces instead of JSF RI globally, at the application-server level.

          "egandt" wrote:
          Which appears to cover this topic, however after making the changes suggested, the portal works, but not my application which uses both ADF and MYfaces. In a JBoss Application Server 4.2 I fix my problems with MYFACES by adding the lines:
           <context-param>
           <param-name>
           org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL
           </param-name>
           <param-value>true</param-value>
           </context-param>
          

          to the web.xml located at default/deploy/jboss-web.deployer/conf under:


          If I am not mistaken, you're basically instructing JBoss AS to disregard the JSF implementation bundled with AS and use whichever your app is providing. So in essence, you didn't need to replace RI by MyFaces as described in the Wiki. This breaks Portal because Portal doesn't bundle a JSF implementation.

          Why are you bundling MyFaces with your app? Why not just ADF?

          • 2. Re: JBOSS Portal 2.6 + MyFaces within my application not wor
            Eric Gandt Newbie

            My problem is that our product is desgined to work cross platform, and currently supports both SUN Portal, WebSphere Portal and WebLogic Portal as well as Jboss Portal. Since we are cross platform we create our own extension of myfaces which we then load with a contextroot of /faces, we also use ADF faces and this has a contextroot of /adf Since we have extended myfaces I can not use JSF faces as loaded by JBOSS portal by default.
            Since I cannot remove JSF Faces in Portal as one does in Application Server to using myfaces, what is the solution for JBoss Portal, as rewriting the application to use JSF and not myfaces is not a practical solution in this and many other applications.

            ERIC

            • 3. Re: JBOSS Portal 2.6 + MyFaces within my application not wor
              Thomas Heute Master

              First you shouldn't rely on a specific implementation but delegate your work to the underlying implementation

              Since you are stuck with MyFaces , i suggest you have a look at: http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossFaces

              • 4. Re: JBOSS Portal 2.6 + MyFaces within my application not wor
                Eric Gandt Newbie

                I looked at the suggested reading and tried a number of suggested options,

                The best options seems to be adding

                <context-param>
                <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
                 <param-value>true</param-value>
                </context-param>
                

                I assume that since my application includes a portlet.xml file (and also includes portlets), this is the cause of the problem, I'm guessing that something to do with deploying portlets requires access to JSFaces, but this is just a guess on my part.
                A google search did not return anything usefull on this issue.

                23:43:04,817 INFO [TomcatDeployer] deploy, ctxPath=/xx, warUrl=.../deploy/xx.war/
                23:43:08,891 ERROR [STDERR] java.lang.IllegalArgumentException: Class org.jboss.portal.faces.portlet.JSFMetaBridgeViewHandlerImpl is no javax.faces.application.ViewHandler
                23:43:08,892 ERROR [STDERR] at org.apache.myfaces.config.FacesConfigurator.getApplicationObject(FacesConfigurator.java:665)
                23:43:08,892 ERROR [STDERR] at org.apache.myfaces.config.FacesConfigurator.configureApplication(FacesConfigurator.java:602)
                23:43:08,892 ERROR [STDERR] at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:148)
                23:43:08,892 ERROR [STDERR] at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:68)
                23:43:08,892 ERROR [STDERR] at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:51)
                23:43:08,893 ERROR [STDERR] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
                23:43:08,893 ERROR [STDERR] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)
                23:43:08,893 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
                23:43:08,893 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
                23:43:08,893 ERROR [STDERR] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
                23:43:08,893 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                23:43:08,893 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                23:43:08,893 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                23:43:08,893 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
                23:43:08,894 ERROR [STDERR] at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
                23:43:08,894 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
                23:43:08,894 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                23:43:08,894 ERROR [STDERR] at org.apache.catalina.core.StandardContext.init(StandardContext.java:5310)
                23:43:08,894 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                23:43:08,894 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                23:43:08,894 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                23:43:08,894 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
                23:43:08,894 ERROR [STDERR] at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
                23:43:08,895 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
                23:43:08,895 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                23:43:08,895 ERROR [STDERR] at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
                23:43:08,895 ERROR [STDERR] at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
                23:43:08,895 ERROR [STDERR] at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
                23:43:08,895 ERROR [STDERR] at org.jboss.web.WebModule.startModule(WebModule.java:83)
                23:43:08,895 ERROR [STDERR] at org.jboss.web.WebModule.startService(WebModule.java:61)
                23:43:08,895 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                23:43:08,896 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
                23:43:08,896 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
                23:43:08,896 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                23:43:08,896 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
                23:43:08,896 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                23:43:08,896 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                23:43:08,897 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                23:43:08,897 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                23:43:08,897 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                23:43:08,897 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                23:43:08,897 ERROR [STDERR] at $Proxy0.start(Unknown Source)
                23:43:08,897 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
                23:43:08,897 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
                23:43:08,897 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                23:43:08,897 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
                23:43:08,898 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                23:43:08,898 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                23:43:08,898 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                23:43:08,898 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                23:43:08,898 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                23:43:08,898 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                23:43:08,898 ERROR [STDERR] at $Proxy182.start(Unknown Source)
                23:43:08,898 ERROR [STDERR] at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
                23:43:08,898 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                23:43:08,899 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                23:43:08,899 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                23:43:08,899 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
                23:43:08,899 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                23:43:08,899 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                23:43:08,899 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                23:43:08,899 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                23:43:08,900 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                23:43:08,900 ERROR [STDERR] at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
                23:43:08,901 ERROR [STDERR] at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
                23:43:08,901 ERROR [STDERR] at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
                23:43:08,901 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
                23:43:08,901 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
                23:43:08,901 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                23:43:08,901 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                23:43:08,902 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                23:43:08,902 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                23:43:08,902 ERROR [STDERR] at $Proxy183.start(Unknown Source)
                23:43:08,902 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                23:43:08,902 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                23:43:08,902 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                23:43:08,902 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
                23:43:08,902 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                23:43:08,902 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
                23:43:08,902 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                23:43:08,903 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                23:43:08,903 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                23:43:08,903 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                23:43:08,903 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                23:43:08,903 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                23:43:08,903 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                23:43:08,903 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                23:43:08,903 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                23:43:08,904 ERROR [STDERR] at $Proxy9.deploy(Unknown Source)
                23:43:08,904 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
                23:43:08,904 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
                23:43:08,904 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
                23:43:08,904 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
                23:43:08,904 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                23:43:08,904 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
                23:43:08,904 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
                23:43:08,904 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                23:43:08,905 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
                23:43:08,905 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                23:43:08,905 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                23:43:08,905 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                23:43:08,905 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                23:43:08,905 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                23:43:08,905 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                23:43:08,905 ERROR [STDERR] at $Proxy0.start(Unknown Source)
                23:43:08,905 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417)
                23:43:08,908 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
                23:43:08,908 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                23:43:08,908 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
                23:43:08,908 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                23:43:08,908 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                23:43:08,908 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                23:43:08,908 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                23:43:08,909 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                23:43:08,909 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                23:43:08,909 ERROR [STDERR] at $Proxy4.start(Unknown Source)
                23:43:08,909 ERROR [STDERR] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
                23:43:08,909 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                23:43:08,909 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                23:43:08,909 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                23:43:08,909 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
                23:43:08,910 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                23:43:08,910 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                23:43:08,910 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                23:43:08,910 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
                23:43:08,910 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                23:43:08,910 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                23:43:08,910 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                23:43:08,910 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                23:43:08,911 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                23:43:08,911 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                23:43:08,911 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                23:43:08,911 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                23:43:08,911 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                23:43:08,911 ERROR [STDERR] at $Proxy5.deploy(Unknown Source)
                23:43:08,911 ERROR [STDERR] at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
                23:43:08,911 ERROR [STDERR] at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
                23:43:08,911 ERROR [STDERR] at org.jboss.Main.boot(Main.java:200)
                23:43:08,912 ERROR [STDERR] at org.jboss.Main$1.run(Main.java:508)
                23:43:08,912 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)
                23:43:11,644 INFO [STDOUT] Initializing InheritingLoggingContext
                


                Thanks for your continuing help,
                ERIC

                • 5. Re: JBOSS Portal 2.6 + MyFaces within my application not wor
                  Chris Laprun Master

                  The problem seems to be that you are loading JSF from two different spots resulting in java.lang.IllegalArgumentException: Class org.jboss.portal.faces.portlet
                  .JSFMetaBridgeViewHandlerImpl is no javax.faces.application.ViewHandler (in essence a ClassCastException) due to the fact that the classes being compared come from 2 different classloaders. I am not sure what the solution would be as, for it to work, you would need to somehow instruct Portal to use the JSF implementation bundled in your app.
                  Another option that might work would be to replace JBoss AS' JSF implementation by yours, remove the bundled version from your app and revert the org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL instruction. This should ensure that both your app and Portal use the same JSF implementation. Not sure if that's an option for you, though.

                  • 6. Re: JBOSS Portal 2.6 + MyFaces within my application not wor
                    Eric Gandt Newbie

                    This now works with 4.2 and Portal 2.6.1GA, using the steps defined in JBoss's documentation for not inheriting Faces into an application.

                    Thanks to the JBoss Portal team for there hard work,
                    ERIC GANDT