Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Himai Minh
Ranch Hand
Posts: 1361
7
  • 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.
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2535
113
Android Chrome Eclipse IDE
  • 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 Hand
Posts: 1361
7
  • 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
Saloon Keeper
Pie
Posts: 2535
113
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, that is right.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic