File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes .war files containes?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark ".war files containes??" Watch ".war files containes??" New topic

.war files containes??

Poonam Agarwal
Ranch Hand

Joined: May 12, 2008
Posts: 323
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.

Thanks <br />Poonam Agarwal SCWCD 86%
Ankit Garg

Joined: Aug 03, 2008
Posts: 9280

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...

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
I agree. Here's the link:
subject: .war files containes??
Similar Threads
Question 21 of HFSJ Final mocktest
Problems setting up website with context.xml inside META-INF
157 Question Help and Resourses
jar & war files
ibm websphere test 157 for websphere studio application developer 4.0.3 for windows