I am working on JBoss AS 7, so do I really need to package the jsf api and impl within the EAR/lib?

If I understand you right, I should have something like:

EAR
 - lib
   - jsf-api.jar
   - jsf-impl.jar
   - myfaces-extcdi-jsf2-bundle.jar
 - WAR1
 - WAR2

Regards,
Christian

Am 06.09.2012 22:29, schrieb Mark Struberg:
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


Reply via email to