-
1. Re: No bridge detected for application factory org.jboss.sea
theute Jul 3, 2007 6:01 AM (in response to jgilbert)On which JBoss AS did that happen ?
Also do you use MyFaces or Sun RI ? -
2. Re: No bridge detected for application factory org.jboss.sea
jgilbert Jul 3, 2007 10:13 AM (in response to jgilbert)JBoss AS 4.2 with MyFaces
-
3. Re: No bridge detected for application factory org.jboss.sea
theute Jul 3, 2007 10:59 AM (in response to jgilbert)So you removed the libraries from JBoss AS and replaced them by myFaces ? or you embed myFaces in your war or ... ?
Please give us more details so we can help you. Define what you did, and define what exactly break. -
4. Re: No bridge detected for application factory org.jboss.sea
jgilbert Jul 3, 2007 11:34 AM (in response to jgilbert)yes, i followed the directions on the jboss portal wiki to replace the sun jars with myfaces. after doing that the portal admin portlet worked.
then i tried my seam based portlet which works with CR3. it looks like there has been new code added to the portal in JSFMetaBridgeFactory which assumes the application factory will be either from myfaces or sun.
however, it appears that Seam initializes a different app factory, so JSFMetaBridgeLifecycleFactoryImpl gets a null pointer exception because JSFMetaBridgeFactory does not initialize the metaBridge. -
5. Re: No bridge detected for application factory org.jboss.sea
theute Jul 3, 2007 11:44 AM (in response to jgilbert)The JSFMetaBridgeFactory shouldn't be used in your case (it is used for the Management portlet, and that's how it worked after you changed the libraries).
If you can send me your portlet (by email if it fits) i could try to work on it. That would help me recreate your environment. -
6. Re: No bridge detected for application factory org.jboss.sea
jgilbert Jul 3, 2007 12:03 PM (in response to jgilbert)i'll work up a simple example over the next day or so.
-
7. Re: No bridge detected for application factory org.jboss.sea
jgilbert Jul 3, 2007 12:27 PM (in response to jgilbert)btw, should 2.6 work with 4.2 without using myfaces?
-
8. Re: No bridge detected for application factory org.jboss.sea
prabhat.jha Jul 3, 2007 12:31 PM (in response to jgilbert)yes, 2.6 GA works out of the box with jboss 4.2. jboss 4.2 has sun jsf implementation by default.
-
9. Re: No bridge detected for application factory org.jboss.sea
jgilbert Jul 3, 2007 5:22 PM (in response to jgilbert)you can reproduce the error using the examples/portal from the seam 1.2.1.GA distribution.
steps:
- install portal 2.6 on AS 4.2
- replace the jsf libs with myfaces per the wiki
- build seam/examples/portal
- copy war and datasource to deploy dir
- start app server
the exception from the original posting will be generated -
10. Re: No bridge detected for application factory org.jboss.sea
theute Jul 3, 2007 5:33 PM (in response to jgilbert)I will look at it tomorrow.
Any specific reason why you want to use myFaces and not using the Sun RI ? -
11. Re: No bridge detected for application factory org.jboss.sea
jgilbert Jul 3, 2007 5:40 PM (in response to jgilbert)i am actually moving in that direction, but i suspect this error will happen with the SUN RI also.
thanks -
12. Re: No bridge detected for application factory org.jboss.sea
jgilbert Jul 3, 2007 5:57 PM (in response to jgilbert)yep, same thing with Sun RI
17:53:09,515 WARN [JSFMetaBridgeFactory] No bridge detected for application factory org.jboss.seam.jsf.SeamApplicationFactory 17:53:09,515 ERROR [STDERR] javax.faces.FacesException: org.jboss.portal.faces.portlet.JSFMetaBridgeLifecycleFactoryImpl 17:53:09,515 ERROR [STDERR] at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:569) 17:53:09,515 ERROR [STDERR] at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:448) 17:53:09,515 ERROR [STDERR] at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:249) 17:53:09,515 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:832) 17:53:09,515 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:502) 17:53:09,515 ERROR [STDERR] at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:402) 17:53:09,515 ERROR [STDERR] at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:69) 17:53:09,515 ERROR [STDERR] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854) 17:53:09,515 ERROR [STDERR] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4359) 17:53:09,515 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761) 17:53:09,515 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741) 17:53:09,515 ERROR [STDERR] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553) 17:53:09,515 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor139.invoke(Unknown Source) 17:53:09,515 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 17:53:09,515 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) 17:53:09,515 ERROR [STDERR] at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297) 17:53:09,531 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164) 17:53:09,531 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) 17:53:09,531 ERROR [STDERR] at org.apache.catalina.core.StandardContext.init(StandardContext.java:5310) 17:53:09,531 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor135.invoke(Unknown Source) 17:53:09,531 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 17:53:09,531 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) 17:53:09,531 ERROR [STDERR] at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297) 17:53:09,531 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164) 17:53:09,531 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) 17:53:09,531 ERROR [STDERR] at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301) 17:53:09,531 ERROR [STDERR] at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104) 17:53:09,546 ERROR [STDERR] at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375) 17:53:09,546 ERROR [STDERR] at org.jboss.web.WebModule.startModule(WebModule.java:83) 17:53:09,546 ERROR [STDERR] at org.jboss.web.WebModule.startService(WebModule.java:61) 17:53:09,546 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) 17:53:09,546 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) 17:53:09,546 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) 17:53:09,546 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 17:53:09,546 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) 17:53:09,562 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) 17:53:09,562 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) 17:53:09,562 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) 17:53:09,562 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) 17:53:09,562 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) 17:53:09,562 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) 17:53:09,578 ERROR [STDERR] at $Proxy0.start(Unknown Source) 17:53:09,578 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417) 17:53:09,578 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source) 17:53:09,578 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 17:53:09,578 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) 17:53:09,578 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) 17:53:09,578 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) 17:53:09,578 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) 17:53:09,578 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) 17:53:09,578 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) 17:53:09,593 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) 17:53:09,593 ERROR [STDERR] at $Proxy191.start(Unknown Source) 17:53:09,593 ERROR [STDERR] at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466) 17:53:09,593 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor110.invoke(Unknown Source) 17:53:09,593 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 17:53:09,593 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) 17:53:09,593 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) 17:53:09,593 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) 17:53:09,593 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) 17:53:09,593 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) 17:53:09,593 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) 17:53:09,609 ERROR [STDERR] at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97) 17:53:09,609 ERROR [STDERR] at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238) 17:53:09,609 ERROR [STDERR] at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93) 17:53:09,609 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188) 17:53:09,609 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95) 17:53:09,609 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) 17:53:09,625 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) 17:53:09,625 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) 17:53:09,625 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) 17:53:09,625 ERROR [STDERR] at $Proxy192.start(Unknown Source) 17:53:09,625 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025) 17:53:09,625 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015) 17:53:09,625 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819) 17:53:09,625 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) 17:53:09,625 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source) 17:53:09,625 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 17:53:09,640 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) 17:53:09,640 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) 17:53:09,640 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) 17:53:09,640 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) 17:53:09,640 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) 17:53:09,640 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) 17:53:09,656 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) 17:53:09,656 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) 17:53:09,656 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) 17:53:09,656 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) 17:53:09,656 ERROR [STDERR] at $Proxy9.deploy(Unknown Source) 17:53:09,656 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421) 17:53:09,656 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634) 17:53:09,656 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263) 17:53:09,656 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336) 17:53:09,656 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) 17:53:09,656 ERROR [STDERR] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) 17:53:09,671 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) 17:53:09,671 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 17:53:09,671 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) 17:53:09,671 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) 17:53:09,671 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) 17:53:09,671 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) 17:53:09,671 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) 17:53:09,671 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) 17:53:09,671 ERROR [STDERR] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) 17:53:09,671 ERROR [STDERR] at $Proxy0.start(Unknown Source) 17:53:09,687 ERROR [STDERR] at org.jboss.system.ServiceController.start(ServiceController.java:417) 17:53:09,687 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source) 17:53:09,687 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 17:53:09,687 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) 17:53:09,687 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) 17:53:09,687 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) 17:53:09,703 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) 17:53:09,703 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) 17:53:09,703 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) 17:53:09,703 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) 17:53:09,703 ERROR [STDERR] at $Proxy4.start(Unknown Source) 17:53:09,703 ERROR [STDERR] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302) 17:53:09,703 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025) 17:53:09,703 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819) 17:53:09,703 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782) 17:53:09,703 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766) 17:53:09,718 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 17:53:09,718 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 17:53:09,718 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 17:53:09,718 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) 17:53:09,718 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) 17:53:09,718 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) 17:53:09,718 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) 17:53:09,718 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) 17:53:09,718 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) 17:53:09,718 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) 17:53:09,734 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) 17:53:09,734 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) 17:53:09,734 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) 17:53:09,734 ERROR [STDERR] at $Proxy5.deploy(Unknown Source) 17:53:09,734 ERROR [STDERR] at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482) 17:53:09,750 ERROR [STDERR] at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362) 17:53:09,750 ERROR [STDERR] at org.jboss.Main.boot(Main.java:200) 17:53:09,750 ERROR [STDERR] at org.jboss.Main$1.run(Main.java:508) 17:53:09,750 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595) 17:53:09,750 ERROR [STDERR] Caused by: java.lang.NullPointerException 17:53:09,750 ERROR [STDERR] at org.jboss.portal.faces.portlet.JSFMetaBridgeLifecycleFactoryImpl.<init>(JSFMetaBridgeLifecycleFactoryImpl.java:42) 17:53:09,750 ERROR [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 17:53:09,750 ERROR [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) 17:53:09,750 ERROR [STDERR] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) 17:53:09,750 ERROR [STDERR] at java.lang.reflect.Constructor.newInstance(Constructor.java:494) 17:53:09,750 ERROR [STDERR] at java.lang.Class.newInstance0(Class.java:350) 17:53:09,765 ERROR [STDERR] at java.lang.Class.newInstance(Class.java:303) 17:53:09,765 ERROR [STDERR] at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:567) 17:53:09,765 ERROR [STDERR] ... 139 more
-
13. Re: No bridge detected for application factory org.jboss.sea
theute Jul 3, 2007 6:09 PM (in response to jgilbert)It wasn't supposed to be a solution, just a question :) I was just curious to know why you so wanted to use myFaces.
-
14. Re: No bridge detected for application factory org.jboss.sea
jgilbert Jul 3, 2007 6:16 PM (in response to jgilbert)i'm with you!
i have been wanting to upgrade to Sun RI, but was waiting for all the pieces of the puzzle line up. portal was the last piece and until this morning i didn't think it supported the Sun RI.
i look forward to getting this thread straightened out and then leaving myfaces behind.
let me know if there is any additional way i can help out!