I'm using 8890 and Seam 2.0.2 SP1.
I created an Idea project so that the output ear directory is exactly like the directory generated with running ant deploy in seam.dir/examples/registration.
The ant deploy generated directory has the structure in the attached fig 1.
The fig 2 ( without the red lines) shows what I can achieve (the structure of an ear application and the Idea-generated application.xml) with Idea. The fig 2 with the red lines shows what I want. I can make Idea add the jboss-seam.ear to the root directory of the ear application by adding a library (which contains jboss-seam.jar only) to the 'EJB' facet of my ear application, but I don't know how to tell Idea that the jboss-seam.jar should be an ejb (i.e. I cannot make Idea write the red line in the application.xml file).
I can add the red line in the application.xml to that file manually. But when I did that and deployed the ear application to JBoss 4.2.3.GA, there was a warning that there might be 2 SeamPhaseListener instances installed (the SeamPhaseListener is declared in the faces-config.xml in the META-INF of jboss-seam.jar). And when I run the ear application, there were some exceptions.
If I copy the exploded ear application to jboss-4.2.3.GA/server/default/deploy and run JBoss outside Idea, there is no warning nor exception. So the way I add the red line manually to the application.xml might not be an Idea way to do.
What should I do?