Hi christian! Yes, this is perfectly possible. You just have to move all your JSF deps which are needed by CODI to a shared jarĀ (in an EAR lib). myfaces-api.jar myfaces-impl.jar, el, etc. All the stuff which is (transitively) required on the classpath.
I have this scenario running over here with 12 webapps in an EAR (with ClassLoader isolation). LieGrue, strub ----- Original Message ----- > From: Christian Beikov <christian.bei...@gmail.com> > To: MyFaces Discussion <users@myfaces.apache.org> > Cc: > Sent: Thursday, September 6, 2012 10:06 PM > Subject: MyFaces CODI within EAR > > Hello! > > I am trying to package the codi jsf 2 bundle 1.0.5 within my ear but I am > getting some exceptions like: > > java.lang.NoClassDefFoundError: javax/faces/bean/ViewScoped > > I have placed the bundle in EAR/lib since I have 2 Webapps that use CODI. > Is it even possible to use CODI in such a scenario? Could you please provide > some details on how CODI is supposed to be packaged within an EAR? > > Regards, > Christian >