Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

EPractice Lab quiz 3 , about packing web application in a jar

 
Ranch Foreman
Posts: 1906
13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Which of the following statements regarding a web application deployed on Java EE server are true?
[ Choose three ]

a. The configuration information is maintained in an XML file called web application deployment descriptor.
b. The web components are packaged in a file with war as an extension.
c. The web components are packaged in a file with jar as an extension.
d. The web application packages can be created using the war utility.
e. The web application packages can be created using the jar utility.

Choice A, Choice B and Choice E are correct

The configuration information for a web application to be deployed on a JavaEE server is maintained in an XML file called as the Deployment Descriptor.
Web components in a Java EE application are added in a package called WAR (Web Application Archive), which can be created either using "deploytool" facility of Java EE server or manually with the JAR tool distributed with the Java SE.


I wonder if D is the answer. The web application is always packed in war before it is deployed.
For E, if we want to pack a web application into a jar file , we first need to move the .class files from /WEB-INF/classes to the root directory.
So, we cannot just simply jar the web application without rearranging the file structures.
 
Creator of Enthuware JWS+ V6
Posts: 3346
303
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
E is correct.

Just check this document: How to create a Web Application without an IDE
 
Himai Minh
Ranch Foreman
Posts: 1906
13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Frits. Thanks for the document.
I see what option E means now. It means using jar cvf command to package a web application into a .war file.
And there is not war utility. Instead, there is a jar utility.\

 
Frits Walraven
Creator of Enthuware JWS+ V6
Posts: 3346
303
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, that is right.
 
He was giving me directions and I was powerless to resist. I cannot resist this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic