Dan Allen wrote:
I don't want it in the WAR. However, if it is added in any way to the WEB-INF/lib directory of the WAR project, you will face the issue described in this thread (unless you are using JBoss AS 4.2.2).

With the way Seam is designed, if you have Seam on the classpath twice, the results are undefined. In some cases it will work, others it will not. The reason for the initial warning is that Seam bundles faces-config.xml and JSF is going to find it twice and try to start the phase listener twice. Hmm...
Dan, as discussed before this is a broken design - duplicates on a classpath is not illegal; only the first one should be listened to AFAIK.

Snjezana, if you remove the seam.jar from web-inf/lib does the compilation still work ? Or is it WTP that is putting it in there for us ?

/max

-Dan

--
Dan Allen
Senior Software Engineer, Red Hat | Author of Seam in Action

http://mojavelinux.com
http://mojavelinux.com/seaminaction
http://in.relation.to/Bloggers/Dan

NOTE: While I make a strong effort to keep up with my email on a daily
basis, personal or other work matters can sometimes keep me away
from my email. If you contact me, but don't hear back for more than a week,
it is very likely that I am excessively backlogged or the message was
caught in the spam filters.  Please don't hesitate to resend a message if
you feel that it did not reach my attention.