How your archive structure look like?
Do you have a beans.xml?
How your code look like?
There's this bug which says it's applicable for JSF 1.2 https://issues.jboss.org/browse/AS7-5564. You however say, you are using JSF 2.0. So I'm not sure if you are running into the same issue. If it's reproducible can you attach a simple application here?
Thx to all you guys for your quick responses.
I found this tag in my web.xml
I removed it and everything is working fine now
It worked on jboss 6.1 but not on jboss 7.1.1. NOW IT WORKS