-
1. Re: Seam 3.1: two WARs in an EAR
fcorneli Feb 19, 2012 2:34 AM (in response to fcorneli)Even if you just have one WAR within the EAR, and in the WAR you just have seam-faces, seam-faces-api and prettyfaces-jsf2 (moved everything else up to the EAR/lib), the logout will fail due to: https://issues.jboss.org/browse/SOLDER-311
-
2. Re: Seam 3.1: two WARs in an EAR
lightguard Feb 20, 2012 3:29 PM (in response to fcorneli)Yes, EAR is complicated. There have been some posts about using an EAR though and at least one from Antoine about a skeleton.
Multiple WARs inside of an EAR is problematic even for CDI. Sorry, I don't have a good answer.
-
3. Re: Seam 3.1: two WARs in an EAR
fcorneli Feb 20, 2012 4:31 PM (in response to lightguard)If multiple WARs inside an EAR is problematic for CDI then Java EE 6 has a serious issue as almost every enterprise oriented application, where you have to deal with multi-user RBAC systems with a clear need for separated web front-ends, requires such an architecture. How come this was not properly addressed? As I remember the problems related to this issue getting fixed in Seam 2, one would expect that it had been taken into account this time. Don't tell me that you guys just forgot about it? This isn't a small detail, no?
-
4. Re: Seam 3.1: two WARs in an EAR
pmuir Feb 20, 2012 5:25 PM (in response to fcorneli)What version of what app server are you using?
-
5. Re: Seam 3.1: two WARs in an EAR
fcorneli Feb 20, 2012 11:23 PM (in response to pmuir)7.1.0.Final, you know, the certified one...
I've got a working EAR with WAR as part of my eID Archetype: http://code.google.com/p/eid-archetype/wiki/UsageJavaEE6
The current WAR covers the admin portal. Now I would like to add the end-user portal.
-
6. Re: Seam 3.1: two WARs in an EAR
pmuir Feb 21, 2012 12:20 PM (in response to fcorneli)I *think* this is a bug in Weld. Section 5.3 handles ambiguous bean names. I have a feeling when I implemented this, I did it across all WARs, not just based on visbility, which on a re-read the spec requires. I'll ask Jozef to take a look.
-
7. Re: Seam 3.1: two WARs in an EAR
jharting Feb 21, 2012 12:40 PM (in response to pmuir)Yes, this is a bug in Weld. See WELD-1065
-
8. Re: Seam 3.1: two WARs in an EAR
fcorneli Feb 23, 2012 4:56 AM (in response to jharting)Do you have any idea of when the related issues will be fixed? As I get it right both Weld and Seam need some fixing. Can we expect this to be part of JBoss AS 7.1.1.Final and/or JBoss Seam 3.1.1.Final?
Trying to hunt these issues myself is probably to difficult I guess? Where should I start (if I find myself some time)? Is there any integration test for multiple WARs in an EAR already?
-
9. Re: Seam 3.1: two WARs in an EAR
fcorneli Mar 12, 2012 8:19 AM (in response to fcorneli)After adding a simple Arquillian based integration test myself (see https://issues.jboss.org/browse/WELD-1065) I started to dig into the Weld source code... to finally hit https://issues.jboss.org/browse/WELD-1
Unless I'm dreaming, this is the _first_ Weld issue ever created back in July 2009, titled "Add tests for multiple wars in an ear". Back then the Seam 2.2 multiple WARs within an EAR hangover was still hot I guess... so this WELD-1 probably served as a friendly reminder.
Could someone please try to explain what is going on here? Why was this important feature skipped upon each Weld release?
-
10. Re: Seam 3.1: two WARs in an EAR
fcorneli Mar 21, 2012 5:07 AM (in response to fcorneli)I noticed that https://issues.jboss.org/browse/WELD-1065 has been scheduled under 1.1.6.Final. Will this also be part of JBoss AS 7.1.2.Final?
-
11. Re: Seam 3.1: two WARs in an EAR
lightguard Mar 26, 2012 4:40 PM (in response to fcorneli)I would imagine so. I think it's been commited to the AS7 master branch, it should make it out for whichever is the next release.
-
12. Re: Seam 3.1: two WARs in an EAR
fcorneli Mar 29, 2012 5:45 AM (in response to lightguard)OK, I see that Weld 1.1.6.Final will be included in JBoss AS 7.1.2.Final. But https://issues.jboss.org/browse/WELD-1065 has been rescheduled to Weld 1.2.0.Beta1. Is it that hard to fix it? When can we expect this one to become available? Rough estimation? And with which JBoss AS will it be bundled? As long as this issue has not been resolved I cannot port any of my eID products from the (unsupported) JBoss AS 6.0 to JBoss AS 7.x.
-
13. Re: Seam 3.1: two WARs in an EAR
lightguard Mar 29, 2012 10:58 AM (in response to fcorneli)Pete and Stuart have been talking about this. It's actually a fair level more difficult technically than I would have thought. We're still discussing the best way to solve this. This difficulty comes from a feature you may or may not use, but needs to be solved: Adding annotated types and beans from a CDI extension and getting them into a correct Bean Deployment Archive (BDA).
-
14. Re: Seam 3.1: two WARs in an EAR
ceefour Mar 29, 2012 5:09 PM (in response to lightguard)I really hope this gets solved soon.
Java EE 6 has been out for a long time. The reliability needs to improve a lot to compete with Spring. ;-)
BTW, join the club:
Also, please vote for the mentioned bugs above the forum thread :-)