• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Enthuware question WAR

 
Ranch Hand
Posts: 1710
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry, its D and not C.

And its E for the second one..
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 242
Mac Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi khushhal,

Thanks for so nice explanation!

I really appreciate you.

Thanks,
 
reply
    Bookmark Topic Watch Topic
  • New Topic