MyFaces CODI within EAR

2012-09-06 Thread Christian Beikov
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

Re: MyFaces CODI within EAR

2012-09-06 Thread 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

Re: MyFaces CODI within EAR

2012-09-06 Thread Christian Beikov
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

Regarding JSF page becoming inaccessible

2012-09-06 Thread Yogeen Honnavar
Dear users, We are using myfaces-1.2.9 with apache-tomcat-6.0.35. We have a JSF page which works fine most of the time. However, recently all of a sudden, the JSF page became unavailable. On checking the logs following lines are observed. Any idea what is the likely cause ? Please let us

Re: Regarding JSF page becoming inaccessible

2012-09-06 Thread Leonardo Uribe
Hi I remember that problem, it is an old issue: MYFACES-3398. It was caused by some improvements done in that part. Please try with the latest version (1.2.12), which has that one fixed and is considered the most stable one. regards, Leonardo Uribe 2012/9/6 Yogeen Honnavar yog...@isac.gov.in:

Re: Regarding JSF page becoming inaccessible

2012-09-06 Thread Yogeen Honnavar
Hi Leonardo, Thank you for your suggestion. Have you got any idea under what condition this problem manifests ? Anyways, we will upgrade to latest version as suggested. Thanks once again. regards -yogeen Quoting Leonardo Uribe lu4...@gmail.com: Hi I remember that problem, it is an old

Re: MyFaces CODI within EAR

2012-09-06 Thread Christian Beikov
Well, it took me some time, but I figured out that JBoss AS does not add the JSF stuff to the classpath when starting CODI. The solution for JBoss AS7 to get CODI working when located in EAR/lib finally is: Add a jboss-deployment-structure.xml file to EAR/META-INF that looks like this: ?xml