JBoss Seam - Multiple WARs under single EAR - HOW ?
I use JBoss Seam for my application.
Does anyone know is it possible put multiple war files under single EAR?
Each WAR has it's own components.xml and pages.xml in other words there are two separated contexts.
Moreover I need one, faces driven, WAR, and the second one, is Wicket driven - is it possible ?

Comments
Are you using EJBs for your components?
No, there are no EJB, but I have some shared jars that have access to seam components.
These jars have classes registered as Seam components.
<application>
<display-name>demo</display-name>
<module>
<ejb>foo-ejb.jar</ejb>
</module>
<module>
<web>
<web-uri>foo.war</web-uri>
<context-root>foo</context-root>
</web>
</module>
<module>
<web>
<web-uri>bar.war</web-uri>
<context-root>bar</context-root>
</web>
</module>
</application>
Problem here is not in the EAR itself.
Problem in the Seam runtime.
Are there two Seam containers, independent container for each war, or Seam has only one container for EAR.
It depends on the class-loading scheme!
So you should be able to go through with this.
1. (Generally) Multiple WARs are possible.
2. It's simpler when working with JavaBeans (POJOs, Groovy classes, Spring beans).
Make sure you have you're UCL neutralized (by using jboss-web.xml to set java2ParentDelegation=false).
However, working this way and deploying two separate wars is almost the same...
Are you required to package everything in on EAR?
You right, I need neutralize UCL, it was my fault.
I need one EAR just because of deployment simplicity.
Thanks
Cool!