• Post Reply Bookmark Topic Watch Topic
  • New Topic

"WAR file must contain a deployement descriptor"  RSS feed

 
Himai Minh
Ranch Hand
Posts: 1574
10
  • 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
Sheriff
Posts: 37398
531
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
Boost this thread!