-
1. Re: Where to package SEAM-FACES in my ear?
bschoen Apr 28, 2011 12:07 PM (in response to garcimouche)I have the same problem. I've got solder, faces and international all in WEB-INF/lib and I get the exact same error as you. I've looked into the source for faces and can't find a producer for ViewConfigExtension.
Have you made any headway?
-
2. Re: Where to package SEAM-FACES in my ear?
jharting Apr 29, 2011 7:32 AM (in response to garcimouche)Your problem is caused by a bug in the JBoss AS 6 which does not recognize CDI extensions when packaged within an ear. See AS7-623 for more details.
There is a workaround for the issue:
Comment out
WarClassLoaderDeployer
in deployers/jbossweb.deployer/META-INF/war-deployers-jboss-beans.xmlThe workaround works fine for single-webapp ear. Problems may occur if multiple web applications are packaged within the ear.
-
3. Re: Where to package SEAM-FACES in my ear?
garcimouche Apr 29, 2011 3:17 PM (in response to garcimouche)Thanks Jozef I have several web modules in the ear. I finally put back seam-faces into the ear/lib folder and it deploys correctly. However I now try to use the UIInputContainer component defined in seam-faces inside one of my web-module through the JSF 2 composite mechanism. However I've got this error :
SEVERE [javax.enterprise.resource.webcontainer.jsf.application] JSF1068: Cannot instantiate component with component-type org.jboss.seam.faces.InputContainer
I use Mojarra 2.0.4.
I don't know if a FacesComponent present in a jar in the ear/lib directory get scanned by JSF 2. -
4. Re: Where to package SEAM-FACES in my ear?
garcimouche Apr 29, 2011 3:34 PM (in response to garcimouche)For the record, I've redeclared the UIInputContainer inside my web-module faces-config:
<component> <component-type>org.jboss.seam.faces.InputContainer</component-type> <component-class>org.jboss.seam.faces.component.UIInputContainer</component-class> </component>
and it's working......