I have this project https://github.com/maxtorzito/tomee-codi where i tested CODI issues with TomEE, i updated to use 1.6.0 final realease, I just downloaded minutes ago in two PC'S one with linux ubuntu an the other with Windows 8.1, then i ran the clean install, in both the compile is successful, after that i run tomee run, in linux the server runs but in windows instead i get the same exception.
SEVERE - null java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.apache.myfaces.shared.util.ClassUtils.buildApplicationObject(ClassUtils.java:561) at org.apache.myfaces.config.FacesConfigurator.configureApplication(FacesConfigurator.java:532) at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:419) at org.apache.myfaces.webapp.AbstractFacesInitializer.buildConfiguration(AbstractFacesInitializer.java:370) at org.apache.myfaces.webapp.Jsp21FacesInitializer.initContainerIntegration(Jsp21FacesInitializer.java:73) at org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.java:143) 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$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) 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:724) Caused by: java.lang.IllegalStateException: No bean found for type: org.apache.myfaces.extensions.cdi.jsf.api.config.JsfModuleConfig at org.apache.myfaces.extensions.cdi.core.impl.util.CodiUtils.getOrCreateBeanByClass(CodiUtils.java:198)................... Then, its possible to be a TomEE issue with CODI only in Windows environment? 2013/12/10 José Luis Cetina <maxtorz...@gmail.com> > Now i tested with the same JVM 1.7u25 and i copy the entire apache tomee > that i use in linux (with my ear inside) and try to run startup.bat and the > problem persist. > > I dont understand what could be wrong, its possible to be a TomEE issue > with CODI only in Windows environment? > > > > 2013/12/10 José Luis Cetina <maxtorz...@gmail.com> > >> Linux JDK 1.7u25 Windows 1.7u45, i will downgrade my windows to update 25. >> >> Same app, same version of tomme, the difference are SO and jdk. >> >> >> >> 2013/12/10 Romain Manni-Bucau <rmannibu...@gmail.com> >> >>> Exclusions = not scanned jars >>> >>> So you mean it works under linux? Same jvm? >>> Le 10 déc. 2013 19:36, "José Luis Cetina" <maxtorz...@gmail.com> a >>> écrit : >>> >>> > Is the same app, im running the same app (ear, using tomee 1.6.0) in >>> linux >>> > with any problem then when i try to run in windows using tomee plugin >>> or >>> > startup.bat i get that exception. >>> > >>> > You sayed "Exclusions changed" Exclusions changed with relation of >>> what? >>> > SO? >>> > >>> > >>> > 2013/12/10 Romain Manni-Bucau <rmannibu...@gmail.com> >>> > >>> > > Hi >>> > > >>> > > You deploy the same app? >>> > > >>> > > Exclusions changed but i think we dont exclude codi so I'd say it can >>> > the a >>> > > bean manager or classloader issue. In all case a simple arquillian >>> test >>> > > would help to dig into it >>> > > Le 10 déc. 2013 18:52, "José Luis Cetina" <maxtorz...@gmail.com> a >>> > écrit : >>> > > >>> > > > Im deploying my ear in c:\tomee\apps using startup.bat (without >>> using >>> > > tomee >>> > > > maven plugin) and the problem persist. >>> > > > >>> > > > This same problem i reported en may 2012 ( >>> > > > >>> > > > >>> > > >>> > >>> http://myfaces.10567.n7.nabble.com/CODI-No-bean-found-for-type-td109946.html >>> > > > ). >>> > > > >>> > > > In July 2012 somebody else report the same trouble ( >>> > > > >>> > > > >>> > > >>> > >>> http://openejb.979440.n4.nabble.com/Apache-CODI-and-TomEE-problem-td4656002.html >>> > > > ) >>> > > > and then Romain suggest to use 1.1.0-SNAPSHOT >>> > > > >>> > > > It was a tomee issue with CODI, im not remeber if i was using >>> linux in >>> > > that >>> > > > time, but now with windows im getting the same problem that i >>> > > reported.With >>> > > > the manually deploy i could confirm that is not a tomee maven >>> plugin >>> > > issue >>> > > > or a permisson issue. >>> > > > >>> > > > Now i dont know what could be, because this work in linux >>> environment. >>> > > > >>> > > > >>> > > > 2013/12/10 José Luis Cetina <maxtorz...@gmail.com> >>> > > > >>> > > > > Im trying to deploy manually in c: folder, im on it >>> > > > > >>> > > > > >>> > > > > 2013/12/10 Howard W. Smith, Jr. <smithh032...@gmail.com> >>> > > > > >>> > > > > Also, >>> > > > >> >>> > > > >> On Tue, Dec 10, 2013 at 12:20 PM, Howard W. Smith, Jr. < >>> > > > >> smithh032...@gmail.com> wrote: >>> > > > >> >>> > > > >> > Log: >>> > > > >> >> >>> > > > >> >> Información - Deployed >>> > > > >> >> >>> > > > >> >> >>> > > > >> >>> > > > >>> > > >>> > >>> Application(path=C:\Users\JoséLuis\Documents\NetBeansProjects\kx-apps\kx-apps-ear\target\apache-tomee\apps\kx-apps-ear-1.0) >>> > > > >> > >>> > > > >> > >>> > > > >> The NetBeans in the project path tells me that you 'may' be >>> > deploying >>> > > > EAR >>> > > > >> 'via' NetBeans (deploy to server). >>> > > > >> >>> > > > >> I usually: >>> > > > >> >>> > > > >> 1. in Netbeans, build WAR >>> > > > >> 2. In/via Windows Explorer, copy from NetBeans 'dist' folder to >>> > > > >> tomee/webapps folder...manually >>> > > > >> 3. in Netbeans, start tomee (server) >>> > > > >> >>> > > > >> yeah, i know those steps may be too much for others (or most >>> > people), >>> > > > but >>> > > > >> it works for me. :) >>> > > > >> >>> > > > > >>> > > > > >>> > > > > >>> > > > > -- >>> > > > > >>> ------------------------------------------------------------------- >>> > > > > *SCJA. José Luis Cetina* >>> > > > > >>> ------------------------------------------------------------------- >>> > > > > >>> > > > >>> > > > >>> > > > >>> > > > -- >>> > > > ------------------------------------------------------------------- >>> > > > *SCJA. José Luis Cetina* >>> > > > ------------------------------------------------------------------- >>> > > > >>> > > >>> > >>> > >>> > >>> > -- >>> > ------------------------------------------------------------------- >>> > *SCJA. José Luis Cetina* >>> > ------------------------------------------------------------------- >>> > >>> >> >> >> >> -- >> ------------------------------------------------------------------- >> *SCJA. José Luis Cetina* >> ------------------------------------------------------------------- >> > > > > -- > ------------------------------------------------------------------- > *SCJA. José Luis Cetina* > ------------------------------------------------------------------- > -- ------------------------------------------------------------------- *SCJA. José Luis Cetina* -------------------------------------------------------------------