Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What difference between app-inf and web-inf folders in JavaEE applications?

Can you give me understanding of main difference between APP-INF and WEB-INF folders in javaEE applications.

Thanks

like image 499
Ishikawa Yoshi Avatar asked Aug 30 '12 07:08

Ishikawa Yoshi


1 Answers

Can you give me understanding of main difference between APP-INF and WEB-INF folders in java EE applications.

APP-INF is specific for WebLogic. In the Java EE standard it does not exist, hence for Java EE applications there is nothing to compare. Java EE does have an [EAR]/lib directory that takes the place of the non-standard APP-INF/lib. Optionally another directory can be configured in [EAR]/META-INF/application.xml"

<application>
   <library-directory>APP-INF/lib</library-directory>
</application>

There is no direct replacement for APP-INF/classes in standard Java EE. You'll have to jar these up as well and put them in [EAR]/lib as well.

like image 186
Arjan Tijms Avatar answered Oct 06 '22 03:10

Arjan Tijms