Arash, Please see the first item on the Facelets FAQ (using Facelets and ADF together):
http://wiki.java.net/bin/view/Projects/FaceletsFAQ -- Adam On 4/4/06, Arash Bijanzadeh <[EMAIL PROTECTED]> wrote: > The version of myFaces is head from svn. > I tryed to use ADF in my application ( Facelets, myFaces,ADF) > to do this I added : > application> > <default-render-kit-id> > oracle.adf.core > </default-render-kit-id> > </application> > > and this to web.xml > > <filter> > <filter-name>adfFaces</filter-name> > <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter > </filter-class> > </filter> > > <filter-mapping> > <filter-name>adfFaces</filter-name> > <servlet-name>Faces Servlet</servlet-name> > </filter-mapping> > > to my faces-config.xml ( is there any other step I need?) > The application gives me: > > java.lang.NullPointerException > at > oracle.adfinternal.view.faces.uinode.FacesRenderingContext.setRenderingProperty(FacesRenderingContext.java:157) > at > oracle.adfinternal.view.faces.ui.RenderedNodeRenderingContext.setProperty(RenderedNodeRenderingContext.java:162) > at > oracle.adfinternal.view.faces.ui.RootRenderingContext.init(RootRenderingContext.java:81) > at > oracle.adfinternal.view.faces.uinode.FacesRenderingContext.<init>(FacesRenderingContext.java:106) > at > oracle.adfinternal.view.faces.uinode.FacesRenderingContext.createRenderingContext(FacesRenderingContext.java:79) > at > oracle.adfinternal.view.faces.uinode.UINodeRendererBase.getRenderingContext(UINodeRendererBase.java:89) > at > oracle.adfinternal.view.faces.uinode.FacesRenderingContext.getRenderingContext(FacesRenderingContext.java:66) > at > oracle.adfinternal.view.faces.uinode.FacesRenderingContext.getRenderingContext(FacesRenderingContext.java:52) > at > oracle.adfinternal.view.faces.renderkit.htmlBasic.UINodeRenderer.getRenderingContext(UINodeRenderer.java:79) > at > oracle.adfinternal.view.faces.renderkit.htmlBasic.UINodeRenderer.encodeEnd(UINodeRenderer.java:56) > at > javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536) > at > com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:554) > at > com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:551) > at > com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:457) > at > org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:367) > at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > at > oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:279) > at > oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:248) > at > oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:172) > > > at > oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:80) > > > > On 4/4/06, Thomas Spiegl <[EMAIL PROTECTED]> wrote: > > > > It's just symptom therapy, but remove tomahawk-sandbox.jar from your > > WEB-INF/lib and try to run examples again. > > > > What version of MyFaces do you use? > > > > regards > > Thomas > > > > > > On 4/4/06, Arash Bijanzadeh <[EMAIL PROTECTED]> wrote: > > > ---------- Forwarded message ---------- > > > From: Arash Bijanzadeh <[EMAIL PROTECTED]> > > > Date: Apr 4, 2006 11:17 AM > > > Subject: ADF and myFaces problem > > > To: [EMAIL PROTECTED] > > > > > > I dl the apache-drop.zip and tryed to deploy the example war but get > > this > > > error message: > > > 16:46:39,258 ERROR [STDERR] java.lang.ClassCastException: > > > org.apache.myfaces.custom.ajax.api.AjaxDecodePhaseListener > > > 16:46:39,264 ERROR [STDERR] at > > > com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java > > :711) > > > 16:46:39,265 ERROR [STDERR] at > > > com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java > > :398) > > > 16:46:39,265 ERROR [STDERR] at > > > com.sun.faces.config.ConfigureListener.contextInitialized( > > > ConfigureListener.java:328) > > > 16:46:39,268 ERROR [STDERR] at > > > org.apache.catalina.core.StandardContext.listenerStart( > > StandardContext.java > > > :3692) > > > 16:46:39,268 ERROR [STDERR] at > > > org.apache.catalina.core.StandardContext.start(StandardContext.java > > :4127) > > > 16:46:39,269 ERROR [STDERR] at > > > org.apache.catalina.core.ContainerBase.addChildInternal( > > ContainerBase.java > > > :759) > > > 16:46:39,272 ERROR [STDERR] at > > > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) > > > 16:46:39,272 ERROR [STDERR] at > > > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) > > > 16:46:39,273 ERROR [STDERR] at > > > sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) > > > 16:46:39,273 ERROR [STDERR] at > > > sun.reflect.NativeMethodAccessorImpl.invoke( > > NativeMethodAccessorImpl.java > > > :39) > > > 16:46:39,278 ERROR [STDERR] at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke( > > > DelegatingMethodAccessorImpl.java :25) > > > 16:46:39,278 ERROR [STDERR] at java.lang.reflect.Method.invoke( > > > Method.java:585) > > > 16:46:39,279 ERROR [STDERR] at > > > org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java > > :503) > > > 16:46:39,282 ERROR [STDERR] at > > > org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164) > > > 16:46:39,283 ERROR [STDERR] at > > > org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668) > > > 16:46:39,283 ERROR [STDERR] at > > > org.apache.catalina.core.StandardContext.init (StandardContext.java > > :5031) > > > 16:46:39,283 ERROR [STDERR] at > > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > 16:46:39,304 ERROR [STDERR] at > > > sun.reflect.NativeMethodAccessorImpl.invoke( > > NativeMethodAccessorImpl.java:39) > > > 16:46:39,305 ERROR [STDERR] at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke( > > > DelegatingMethodAccessorImpl.java:25) > > > 16:46:39,305 ERROR [STDERR] at java.lang.reflect.Method.invoke( > > > Method.java:585) > > > 16:46:39,308 ERROR [STDERR] at > > > org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java > > :503) > > > 16:46:39,309 ERROR [STDERR] at > > > org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164) > > > 16:46:39,314 ERROR [STDERR] at > > > org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668) > > > 16:46:39,315 ERROR [STDERR] at > > > org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal( > > > TomcatDeployer.java:345) > > > 16:46:39,315 ERROR [STDERR] at > > > org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy( > > TomcatDeployer.java > > > :106) > > > 16:46:39,316 ERROR [STDERR] at > > org.jboss.web.AbstractWebDeployer.start( > > > AbstractWebDeployer.java:392) > > > 16:46:39,478 ERROR [STDERR] at org.jboss.web.WebModule.startModule( > > > WebModule.java:83) > > > 16:46:39,478 ERROR [STDERR] at org.jboss.web.WebModule.startService( > > > WebModule.java:61) > > > 16:46:39,478 ERROR [STDERR] at > > > org.jboss.system.ServiceMBeanSupport.jbossInternalStart ( > > > ServiceMBeanSupport.java:289) > > > 16:46:39,479 ERROR [STDERR] at > > > org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle( > > > ServiceMBeanSupport.java:245) > > > 16:46:39,483 ERROR [STDERR] at > > > sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) > > > 16:46:39,483 ERROR [STDERR] at > > > sun.reflect.NativeMethodAccessorImpl.invoke( > > NativeMethodAccessorImpl.java > > > :39) > > > 16:46:39,484 ERROR [STDERR] at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke( > > > DelegatingMethodAccessorImpl.java :25) > > > 16:46:39,484 ERROR [STDERR] at java.lang.reflect.Method.invoke( > > > Method.java:585) > > > 16:46:39,487 ERROR [STDERR] at > > > org.jboss.mx.interceptor.ReflectedDispatcher.invoke( > > ReflectedDispatcher.java > > > :157) > > > 16:46:39,488 ERROR [STDERR] at > > org.jboss.mx.server.Invocation.dispatch( > > > Invocation.java:96) > > > 16:46:39,488 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke > > ( > > > Invocation.java:88) > > > 16:46:39,489 ERROR [STDERR] at > > > org.jboss.mx.server.AbstractMBeanInvoker.invoke ( > > AbstractMBeanInvoker.java > > > :262) > > > 16:46:39,497 ERROR [STDERR] at > > > org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668) > > > 16:46:39,497 ERROR [STDERR] at > > > org.jboss.system.ServiceController$ServiceProxy.invoke ( > > > ServiceController.java:974) > > > 16:46:39,498 ERROR [STDERR] at $Proxy0.start(Unknown Source) > > > 16:46:39,498 ERROR [STDERR] at > > org.jboss.system.ServiceController.start( > > > ServiceController.java:417) > > > 16:46:39,501 ERROR [STDERR] at > > > sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source) > > > 16:46:39,501 ERROR [STDERR] at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke( > > > DelegatingMethodAccessorImpl.java:25) > > > 16:46:39,502 ERROR [STDERR] at java.lang.reflect.Method.invoke( > > > Method.java:585) > > > 16:46:39,505 ERROR [STDERR] at > > > org.jboss.mx.interceptor.ReflectedDispatcher.invoke( > > ReflectedDispatcher.java > > > :157) > > > 16:46:39,506 ERROR [STDERR] at > > org.jboss.mx.server.Invocation.dispatch ( > > > Invocation.java:96) > > > 16:46:39,507 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke > > ( > > > Invocation.java:88) > > > 16:46:39,511 ERROR [STDERR] at > > > org.jboss.mx.server.AbstractMBeanInvoker.invoke( > > AbstractMBeanInvoker.java:262) > > > 16:46:39,511 ERROR [STDERR] at > > > org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668) > > > 16:46:39,512 ERROR [STDERR] at > > org.jboss.mx.util.MBeanProxyExt.invoke( > > > MBeanProxyExt.java:190) > > > 16:46:39,513 ERROR [STDERR] at $Proxy34.start(Unknown Source) > > > 16:46:39,516 ERROR [STDERR] at > > org.jboss.web.AbstractWebContainer.start( > > > AbstractWebContainer.java:466) > > > 16:46:39,516 ERROR [STDERR] at > > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > 16:46:39,517 ERROR [STDERR] at > > > sun.reflect.NativeMethodAccessorImpl.invoke( > > NativeMethodAccessorImpl.java > > > :39) > > > 16:46:39,517 ERROR [STDERR] at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke( > > > DelegatingMethodAccessorImpl.java:25) > > > 16:46:39,520 ERROR [STDERR] at java.lang.reflect.Method.invoke( > > > Method.java:585) > > > 16:46:39,521 ERROR [STDERR] at > > > org.jboss.mx.interceptor.ReflectedDispatcher.invoke( > > ReflectedDispatcher.java > > > :157) > > > 16:46:39,521 ERROR [STDERR] at > > org.jboss.mx.server.Invocation.dispatch ( > > > Invocation.java:96) > > > 16:46:39,522 ERROR [STDERR] at > > > org.jboss.mx.interceptor.AbstractInterceptor.invoke( > > AbstractInterceptor.java > > > :138) > > > 16:46:39,529 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke > > ( > > > Invocation.java :90) > > > 16:46:39,529 ERROR [STDERR] at > > > org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke( > > > ModelMBeanOperationInterceptor.java:140) > > > 16:46:39,530 ERROR [STDERR] at > > > org.jboss.mx.interceptor.DynamicInterceptor.invoke ( > > DynamicInterceptor.java > > > :97) > > > 16:46:39,530 ERROR [STDERR] at > > > org.jboss.system.InterceptorServiceMBeanSupport.invokeNext( > > > InterceptorServiceMBeanSupport.java:237) > > > 16:46:39,534 ERROR [STDERR] at > > > org.jboss.ws.server.WebServiceDeployer.start (WebServiceDeployer.java > > :111) > > > 16:46:39,534 ERROR [STDERR] at > > > > > org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start > > ( > > > SubDeployerInterceptorSupport.java:181) > > > 16:46:39,535 ERROR [STDERR] at > > > org.jboss.deployment.SubDeployerInterceptor.invoke( > > > SubDeployerInterceptor.java:96) > > > 16:46:39,535 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke > > ( > > > Invocation.java:90) > > > 16:46:39,539 ERROR [STDERR] at > > > org.jboss.mx.server.AbstractMBeanInvoker.invoke ( > > AbstractMBeanInvoker.java > > > :262) > > > 16:46:39,539 ERROR [STDERR] at > > > org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668) > > > 16:46:39,540 ERROR [STDERR] at > > org.jboss.mx.util.MBeanProxyExt.invoke( > > > MBeanProxyExt.java :190) > > > 16:46:39,540 ERROR [STDERR] at $Proxy35.start(Unknown Source) > > > 16:46:39,543 ERROR [STDERR] at > > org.jboss.deployment.MainDeployer.start( > > > MainDeployer.java:1007) > > > 16:46:39,544 ERROR [STDERR] at > > org.jboss.deployment.MainDeployer.deploy( > > > MainDeployer.java:808) > > > 16:46:39,544 ERROR [STDERR] at > > org.jboss.deployment.MainDeployer.deploy( > > > MainDeployer.java:771) > > > 16:46:39,564 ERROR [STDERR] at > > > sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source) > > > 16:46:39,568 ERROR [STDERR] at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke( > > > DelegatingMethodAccessorImpl.java:25) > > > 16:46:39,568 ERROR [STDERR] at java.lang.reflect.Method.invoke( > > > Method.java:585) > > > 16:46:39,569 ERROR [STDERR] at > > > org.jboss.mx.interceptor.ReflectedDispatcher.invoke( > > ReflectedDispatcher.java > > > :157) > > > 16:46:39,572 ERROR [STDERR] at > > org.jboss.mx.server.Invocation.dispatch( > > > Invocation.java:96) > > > 16:46:39,573 ERROR [STDERR] at > > > org.jboss.mx.interceptor.AbstractInterceptor.invoke ( > > > AbstractInterceptor.java:138) > > > 16:46:39,573 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke > > ( > > > Invocation.java:90) > > > 16:46:39,573 ERROR [STDERR] at > > > org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke ( > > > ModelMBeanOperationInterceptor.java:140) > > > 16:46:39,576 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke > > ( > > > Invocation.java:90) > > > 16:46:39,577 ERROR [STDERR] at > > > org.jboss.mx.server.AbstractMBeanInvoker.invoke ( > > AbstractMBeanInvoker.java > > > :262) > > > 16:46:39,577 ERROR [STDERR] at > > > org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668) > > > 16:46:39,578 ERROR [STDERR] at > > org.jboss.mx.util.MBeanProxyExt.invoke( > > > MBeanProxyExt.java :190) > > > 16:46:39,582 ERROR [STDERR] at $Proxy9.deploy(Unknown Source) > > > 16:46:39,583 ERROR [STDERR] at > > > org.jboss.deployment.scanner.URLDeploymentScanner.deploy( > > > URLDeploymentScanner.java:334) > > > 16:46:39,583 ERROR [STDERR] at > > > org.jboss.deployment.scanner.URLDeploymentScanner.scan( > > > URLDeploymentScanner.java:504) > > > 16:46:39,583 ERROR [STDERR] at > > > > > org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan > > ( > > > AbstractDeploymentScanner.java :207) > > > 16:46:39,589 ERROR [STDERR] at > > > > > org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop( > > > AbstractDeploymentScanner.java:218) > > > 16:46:39,589 ERROR [STDERR] at > > > org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run( > > > AbstractDeploymentScanner.java:197) > > > 16:46:39,594 ERROR [[/adf-faces-demo-ea20-SNAPSHOT]] Exception sending > > > context initialized event to listener instance of class > > > com.sun.faces.config.ConfigureListener > > > javax.faces.FacesException : java.lang.ClassCastException: > > > org.apache.myfaces.custom.ajax.api.AjaxDecodePhaseListener > > > at com.sun.faces.config.ConfigureListener.contextInitialized( > > > ConfigureListener.java:334) > > > at org.apache.catalina.core.StandardContext.listenerStart ( > > > StandardContext.java:3692) > > > at org.apache.catalina.core.StandardContext.start( > > > StandardContext.java:4127) > > > > > > > > > > > > Could someone help me please? > > > > > > > > > -- > > > from debian manifesto: > > > Debian Linux is a brand-new kind of Linux distribution. > > > Rather than being developed by one isolated individua > > > l or group, as other distributions of Linux have been developed in the > > > past, Debian is being developed openly in the spirit of Linux and GNU. > > > > > > > > > -- > > > from debian manifesto: > > > Debian Linux is a brand-new kind of Linux distribution. > > > Rather than being developed by one isolated individua > > > l or group, as other distributions of Linux have been developed in the > > > past, Debian is being developed openly in the spirit of Linux and GNU. > > > > > > > > > > > > -- > > http://www.irian.at > > > > Your JSF powerhouse - > > JSF Consulting, Development and > > Courses in English and German > > > > Professional Support for Apache MyFaces > > > > > > -- > from debian manifesto: > Debian Linux is a brand-new kind of Linux distribution. > Rather than being developed by one isolated individua > l or group, as other distributions of Linux have been developed in the > past, Debian is being developed openly in the spirit of Linux and GNU. > >