• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

.war files containes??

 
Poonam Agarwal
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have developed a web application and have packaged it in a war file named sample.war. Which of the following are true? (question from enthuware)

A. When you deploy the war file, META-WAR folder is automatically created under /sample.

B. When you deploy the war file, META-INF folder is automatically created under /sample.

C. When you deploy the war file, MANIFEST.MF file is automatically created under /sample.

D. When you deploy the war file, META-INF folder is automatically created under /sample/WEB-INF.

E. When you deploy the war file, the container may validate whether you have configured your application classes correctly.


the given answers are in bold. I thought B, D would be the correct answers. As mention in HFSJ that .war files is exactly behave like a normal web-application dierctory structure. "Rules dosen't change for the .war files"

1. Then why this option not included in the correct options???
2. option E is not very clear to me. Is this the case only for .war files??


Can anyone please tell me the exact structure of a .war files.
Thnaks
Poonam
 
Ankit Garg
Sheriff
Posts: 9519
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well in .jar files, the META-INF folder is at the top of the directory structure. And so does it in a .war file. If it is in the WEB-INF directory, then it is not at the top of the directory structure in the archive like .jar files. So the rule would be changed but the rule remains the same as you also know. I hope I'm clear...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic