I am working on JSP/Servlets. The web app is to be deployed on Jboss 6.
I am using Java 1.6, Eclipse and Maven2. I do not refer to JSF anywhere in my code.
My pr
I've experienced the same problem. To resolve it I've replace in pom.xml
:
javax
javaee-api
6.0
jar
compile
by :
javax
javaee-api
6.0
provided
According to maven doc you should set the dependency on the Servlet API and related Java EE APIs to scope provided
because the web container provides those classes.
provided
is much like compile
, but indicates you expect the JDK or a container to provide the dependency at runtime. For example, when building a web application for the Java Enterprise Edition, you would set the dependency on the Servlet API and related Java EE APIs to scope provided because the web container provides those classes. This scope is only available on the compilation and test classpath, and is not transitive.