where should we put the web fragment.xml inside the jar file?

Given a web fragment jar file, where should we put the web fragment.xml inside the jar file?

Given a web fragment jar file, where should we put the web fragment.xml inside the jar file?

A.
WEB-INF

B.
META-INF

C.
WEB-INF/lib

D.
WEB-INF/classes

E.
META-INF/services

Explanation:
* If you’re dealing with web applications, /WEB-INF/lib is the portable place to put
JARs. This is where web servers servlet containers expect to find an application’s jar files.
* The /WEB-INF/classes directory is on the ClassLoader’s classpath. This is where .class files are
loaded from when the web application is executing. Any JAR files placed in the /WEB-INF/lib
directory will also be placed on the ClassLoader’s classpath.



Leave a Reply 3

Your email address will not be published. Required fields are marked *


giuseppe farscadore

giuseppe farscadore

B