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.
Just check this document: How to create a Web Application without an IDE
posted 4 years ago
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.\