• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Enthuware question WAR

 
Chandra Bhatt
Ranch Hand
Posts: 1710
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Which of the following must be present in the WAR file.
a. /meta-inf/index.html
b. /index.xml
c. /MANIFEST-INF
d. /WEB-INF/web.xml
e. /WEB-INF/classes
f. /WEB-INF/index.html
g. /meta-inf/web.xml


Source: Enthuware Exam 5

Thanks,
 
Amol Nayak
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which of the following must be present in the WAR file.
a. /meta-inf/index.html
b. /index.xml
c. /MANIFEST-INF
d. /WEB-INF/web.xml
e. /WEB-INF/classes
f. /WEB-INF/index.html
g. /meta-inf/web.xml


Hi chandra, a war is nothing but an archive of the web application's directory
My answer is C.

D would be required if your app has some class files as well.
 
Amol Nayak
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, its D and not C.

And its E for the second one..
 
sergio luiz pereira filho
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

the letter c is wrong. The 'MANIFEST' file contains only the dependencies of classes...
I think the correct is "D" because the WAR file is the entire web project and any web project has a web.xml
 
khushhal yadav
Ranch Hand
Posts: 242
Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Chandra

What does WAR stands for???
-It's Web Archive.
What's it purpose?
-packaging of web application for importing and deployment.

Then what must be present in a Web Archive file??
- It's web.xml.
Where should it be present?
- In WEB-INF.

So What should be the answer??
- It's /WEB-INF/web.xml

Also it may contain METAINF.MF file for defining external library dependency.
But that should be present in META-INF directory under context root directly.
And it's presence is not imperative too.

Regards,
Khushhal
 
Chandra Bhatt
Ranch Hand
Posts: 1710
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi khushhal,

Thanks for so nice explanation!

I really appreciate you.

Thanks,
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic