1 Reply Latest reply on Mar 26, 2011 7:29 AM by iabughosh

    Can not deploy API on JBoss. web.xml parse error.

    Anna Ayscha Newbie

      Hi everyone.

      I have faced a problem related to migration of project to IntelliJ IDEA from Eclipse. The same web-project (but on another pc) worked just perfect, but now after long-term adjustments of IDEA it almost works except I cannot deploy it on JBoss server. It's smth with web.xml file. It complains about dublication of context initialization parameter. here is an error:



      12:44:22,787 ERROR [ContextConfig]Parse error in application web.xml file at jndi:/localhost/touragency/WEB-INF/web.xml

      java.lang.IllegalArgumentException: Duplicate context initialization parameter com.sun.faces.injectionProvider



      I have such lines in my web.xml







      As I've understood, the problem is here.


      What should I do now? I cann't remove this part because without this injection my appi is not working.

      Why does  this problem appear?


      I will be very happy if you could help me to fix this problem or at least to give a tip where to search for the solution???