I have a problem when trying to deploy my project in JBoss. The generated war file contains the servlet.jar that are part of my dependencies but conflicts with the servlet classes of JBoss.
Error ...servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
I can remove the servlet.jar from the war file when running an ant build. It deploys and work fine.
What I would like to do is to tell eclipse to do not deploy the servlet.jar in the war file. How do I do that?
Versions: Eclipse 3.4 Jboss 4.2
Thanks in advance.