-
1. Re: There should only be one Seam phase listener per application message in *Non* Seam Application
ley Nov 26, 2008 6:54 PM (in response to georges.goebel)Hi,
I have the exact same problem on JBoss 4.2.3 with Seam 2.0.1 in an EAR and a JSF, non seam war file next to it.
Did you solve this ? how ?
Thanks in advance
Ley
-
2. Re: There should only be one Seam phase listener per application message in *Non* Seam Application
martin4s Feb 26, 2009 9:09 AM (in response to georges.goebel)Hi,
we have the same problem with two independent Seam (2.0.1) applications (EARs) in JBoss 4.2.2.GA.
WARN [org.jboss.seam.jsf.SeamPhaseListener] There should only be one Seam phase listener per application
As a result (we think), both applications use the same components.properties from Seam application 1, which doesn't work with application 2 of course. Or could this have another cause?
Thanks for help!
Martin
-
3. Re: There should only be one Seam phase listener per application message in *Non* Seam Application
georges.goebel Feb 26, 2009 10:11 AM (in response to georges.goebel)Hi,
try upgrading to the latest version of Seam. I do not get the log message anylonger with the new versions of Seam
Georges
-
4. Re: There should only be one Seam phase listener per application message in *Non* Seam Application
martin4s Feb 27, 2009 12:37 PM (in response to georges.goebel)
georges goebel wrote on Feb 26, 2009 10:11:
try upgrading to the latest version of Seam. I do not get the log message anylonger with the new versions of SeamThanks for your hint, but it doesn't work with Seam 2.1.1 neither :-(
Martin
-
5. Re: There should only be one Seam phase listener per application message in *Non* Seam Application
rend Feb 27, 2009 5:07 PM (in response to georges.goebel)We have this same problem. 2 WARs, using the components.xml file from one of the WARs, which obviously does not work.
Filed a bug with a test case quite a while ago, no word yet...
-
6. Re: There should only be one Seam phase listener per application message in *Non* Seam Application
rehdiehome Mar 6, 2009 2:55 PM (in response to georges.goebel)Unfortunately I have the same problem.
My configuration:
- Mac OSX Leopard
- jBoss 4.2.3.GA for Java 6
- Java 5
- Eclipse 3.4.1 (Ganymede)
- jBoss Tools plugins
I've created a seam project with exploded ear-deployment. The earfile contains a .war-file (the web-application) and an ejb-module:
flexChartTests-ear.ear jboss-seam.jar ... flexChartTests-ejb.jar flexChartTests.war WEB-INF/lib commons-beanutils.jar commons-digester.jar jboss-seam-debug.jar jboss-seam-excel.jar jboss-seam-ioc.jar jboss-seam-mail.jar jboss-seam-pdf.jar jboss-seam-remoting.jar jboss-seam-ui.jar jsf-facelets.jar jxl.jar richfaces-impl.jar richfaces-ui.jar
As you can see, there is only a single jboss-seam.jar! (which contains the faces-config.xml, which registers the SeamPhaseListener).The results of a few hours debugging:
During deployment the class com.sun.faces.config.LifecycleProcessor processes the faces-config.xml twice:
- jar:file:/Users/rehdie/development/projects/seam-tests/workspace/jboss-4.2.3.GA/server/default/deploy/flexChartTests-ear.ear/jboss-seam.jar!/META-INF/faces-config.xml
- jar:file:/Users/rehdie/development/projects/seam-tests/workspace/jboss-4.2.3.GA/server/default/tmp/deploy/tmp6267jboss-seam.jar!/META-INF/faces-config.xml
Then I checked the directory <jboss-home>/server/default and searched for *jboss-seam.jar. Here are the results:
rehdie$ find . -name \*jboss-seam.jar ./deploy/flexChartTests-ear.ear/jboss-seam.jar ./tmp/deploy/tmp6263jboss-seam.jar ./tmp/deploy/tmp6267jboss-seam.jar
The deploy directory contains a single jboss-seam.jar but tmp/deploy contains 2! (I've deleted the tmp directory before I started the server).
Does anybody have an idea, what's going in here?
-
7. Re: There should only be one Seam phase listener per application message in *Non* Seam Application
rehdiehome Mar 6, 2009 3:00 PM (in response to georges.goebel)I forgot to mention the seam version: 2.1.1 GA
And the find should look like this (* must not be escaped within a code-block :-)):
rehdie$ find . -name *jboss-seam.jar ./deploy/flexChartTests-ear.ear/jboss-seam.jar ./tmp/deploy/tmp6263jboss-seam.jar ./tmp/deploy/tmp6267jboss-seam.jar
-
8. Re: There should only be one Seam phase listener per application message in *Non* Seam Application
rehdiehome Mar 6, 2009 5:48 PM (in response to georges.goebel)I think, I've found the solution:
If you create a Seam project with Eclipse Seam Tools using ear-deployment, the classpath in the manifest-file of the ejb-module contains jboss-seam.jar. Remove it, and everything works fine.
Change
Manifest-Version: 1.0 Class-Path: antlr-runtime.jar drools-compiler.jar drools-core.jar jboss-el.jar jboss-seam.jar jbpm-jpdl.jar mvel14.jar richfaces-api.jar
to
Manifest-Version: 1.0 Class-Path: antlr-runtime.jar drools-compiler.jar drools-core.jar jboss-el.jar jbpm-jpdl.jar mvel14.jar richfaces-api.jar
and the problem is solved (at least for me),
Hope that helps some the other folks with the same problem.
Dieter
-
9. Re: There should only be one Seam phase listener per application message in *Non* Seam Application
nathandennis Jul 8, 2009 9:43 PM (in response to georges.goebel)i didnt create the project with eclipse seam tools and im having this problem. when you removed jboss-seam.jar from the manifest what changed in the ear layout?
-
10. Re: There should only be one Seam phase listener per application message in *Non* Seam Application
ganton516 Nov 15, 2009 12:58 AM (in response to georges.goebel)I dunno if you guys ever solved your issue, this thread is kind of old, but this helped me.
By making sure all of my deployments were isolated, everything started working, and the
One Phase Listener
warning went away. -
11. Re: There should only be one Seam phase listener per application message in *Non* Seam Application
balazska Jan 28, 2010 7:18 PM (in response to georges.goebel)HY!
What was the final config?
Is it works with AS 5.1?