• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

"WAR file must contain a deployement descriptor"

 
Himai Minh
Ranch Hand
Posts: 1360
7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On p.643 of Head First book,

Which statements about WAR files are true?
...
B. A valid WAR file must contain a deployment descriptor.



I think a deployment descriptor is optional with Servlet 3.0.
According to Oracle's documentation :http://docs.oracle.com/cd/E14571_01/web.1111/e13712/web_xml.htm#WBAPP502,

With Java EE annotations, the standard web.xml deployment descriptor is optional.

 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are correct. If you look at the copyright on Head First Java, you'll see that it way predated the web.xml becoming optional.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic