Hi Mark, Good news. I managed to deploy my application with CODI (myfaces-extcdi-dist-jsf20-0.9.1-SNAPSHOT.jar) and EJB. I just packed the EJB-project in a .jar, added it to my Webapplication and deployed it as .war. Though the application is running now I have a new problem -> When I change a view I get the following Nullpointerexception 3 times after the RESTORE_VIEW phase. After that the view is loaded. The problem is, that the screen goes blank completely between two views !
INFO: START PHASE RESTORE_VIEW 1 INFO: END PHASE RESTORE_VIEW 1 WARNUNG: StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exception java.lang.NullPointerException at org.apache.myfaces.extensions.cdi.jsf.impl.security.SecurityViewListener.che ckPermission(SecurityViewListener.java:43) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.j ava:304) at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAc cess.java:54) at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(Secure ReflectionAccess.java:163) at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.ja va:298) at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodIm pl.java:200) at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(Forwarding WeldMethod.java:59) at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialVal ue(MethodInjectionPoint.java:194) at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:24 1) at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:216) at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java: 654) at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:647) at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:641) at org.jboss.weld.event.EventImpl.fire(EventImpl.java:93) at org.apache.myfaces.extensions.cdi.jsf.impl.listener.phase.JsfRequestLifecycl eBroadcaster.broadcastAfterEvent(JsfRequestLifecycleBroadcaster.java:66) at sun.reflect.GeneratedMethodAccessor750.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.j ava:304) at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAc cess.java:54) at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(Secure ReflectionAccess.java:163) at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.ja va:298) at org.jboss.weld.bean.proxy.ClientProxyMethodHandler.invoke(ClientProxyMethodH andler.java:113) at org.jboss.weld.util.CleanableMethodHandler.invoke(CleanableMethodHandler.jav a:43) at org.apache.myfaces.extensions.cdi.jsf.impl.listener.phase.JsfRequestLifecycl eBroadcaster_$$_javassist_208.broadcastAfterEvent(JsfRequestLifecycleBroadca ster_$$_javassist_208.java) at org.apache.myfaces.extensions.cdi.jsf.impl.listener.phase.JsfRequestLifecycl ePhaseListener.afterPhase(JsfRequestLifecyclePhaseListener.java:51) at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:189) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:107) at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at org.apache.myfaces.extensions.cdi.jsf2.impl.listener.phase.CodiLifecycleWrap per.execute(CodiLifecycleWrapper.java:55) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:343) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:215) at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java :79) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:256) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:215) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:277) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:188) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLock ingStandardPipeline.java:85) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185 ) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325 ) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:226) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper. java:165) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.jav a:170) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolCh ain.java:135) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.jav a:53) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57 ) at com.sun.grizzly.ContextTask.run(ContextTask.java:69) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.jav a:330) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:3 09) at java.lang.Thread.run(Thread.java:619) ....... -> 2x same Message as above -> INFO: START PHASE RESTORE_VIEW 1 INFO: END PHASE RESTORE_VIEW 1 INFO: START PHASE RENDER_RESPONSE 6 Is this a known problem - I couldn't find anything about this error. ! best regards Thomas