Reputation: 267067
I've built a basic Java Web Project using Netbeaans, which uses Maven.
The issue is, in my 'dependencies' I see 'javaee-web-api-6.0.jar'. However, when I build the project, in the .war file I don't see this .jar file included anywhere.
Am I missing something, or is there any extra step that I need to take to have all the dependencies be included in the .jar?
Upvotes: 0
Views: 158
Reputation: 10987
Check the scope of javaee-web-api-6.0.jar dependency. If its provided then it will not be bundled into the resultant war.
Upvotes: 1
Reputation: 121998
javaee-api-6.0.jar and servlet-api-3.jar
These jars are already provided by Tomcat(assuming using tomact). To verify this look in <TOMCAT_HOME>\lib
to see that these jars are already there.
Upvotes: 0
Reputation: 13821
Servlet API dependencies should never be in the resulting war file. It is a dependency that is provided by your container. Having it in the war file would only result in a bunch of classloader issues. Most containers would ignore the jar file anyway, if it was present inside the war.
Upvotes: 1