views:

78

answers:

1

I have two web application projects which are related. One is the website itself and the other one serves the static resources (css, JS) for the website.

I'm trying to run a native tomcat6 instance from IntelliJ and deploy the two exploded wars. When I run my configuration I get the following warning:

WARN [org.jboss.seam.jsf.SeamPhaseListener] - <There should only be one Seam phase listener per application>

followed by:

SEVERE: Error listenerStart

it looks like it somehow detects multiple seam phase listeners which prevent my application from starting properly.

When I run my applications in a Jetty container I'm not facing any problems. I also tried running only the website (without the static-resources). This gave me the same results: works with jetty but not with native tomcat. Also, I'm able to deploy the application manually in a tomcat instance (on a dedicated server).

What am I missing here?

+1  A: 

I found out that in the WEB-INF/lib directory of the exploded war two seam jars are present. One org.jboss.seam.jar and one seam.jar. When I remove one of them, the warning doesn't occur anymore. Maybe IntelliJ puts this additional jar in the exploded war, cos I didn't see it before.

Jeroen Rosenberg