1 2 Previous Next 17 Replies Latest reply on May 11, 2012 11:16 AM by lightguard

    Seam 3.1: two WARs in an EAR





      I'm trying to construct an EAR with two WARs: one for admins, one for regular users.

      I'm using Seam 3.1 Security, Seam 3.1 Faces (for ViewConfig authorization) and RichFaces 4.1.

      As I (and a lot of other people) already had this fight with Seam 2.2, ... I thought that this time it would have been some less painfull... unfortunately it's the same trouble all over again.

      So, how to do it properly?


      Seems like you need to keep seam-faces in the WEB/lib of both WARs else you get a class not found exception (JSF dependency).

      But then again, putting seam-faces in both WARs gives me:

      WELD-001414 Bean name is ambiguous. Name defaultFacesLocale resolves to beans [Producer Method [Locale] with qualifiers [@Any @DefaultLocale @Faces @Named] declared as [[method] @Produces @Named @Faces @DefaultLocale public org.jboss.seam.faces.environment.LocaleProducer.getDefaultFacesLocale(FacesContext)], Producer Method [Locale] with qualifiers [@Any @DefaultLocale @Faces @Named] declared as [[method] @Produces @Named @Faces @DefaultLocale public org.jboss.seam.faces.environment.LocaleProducer.getDefaultFacesLocale(FacesContext)]]


      I already checked out https://community.jboss.org/thread/178845 but this is just showing it for one WAR in an EAR (which is kind of pointless as you can do without the EAR in that case).


      I'm all ears (again)...

        1 2 Previous Next