aspose file tools*
The moose likes JSP and the fly likes  why to use META-INF directory under  webapplication name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark " why to use META-INF directory under  webapplication name" Watch " why to use META-INF directory under  webapplication name" New topic
Author

why to use META-INF directory under webapplication name

samdeep aarzoo
Ranch Hand

Joined: Jun 09, 2005
Posts: 160
hi
i find IN webapps name "META-INF" DIRECTORY and under it
MANIFEST.MF

can anyone please tell me what is the use of it
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60048
    
  65

Most likely it's merely an artifact of making a jar/war file using the jar command.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Tomcat will look for a context fragment (xml file) there as well.
It's not mandatory and it doesn't hurt if it's there or not there.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60048
    
  65

I should also note that, in jar file format, the META-INF folder can be very important. For example. it's where the container will look for TLD files when the jar contains custom tag libraries.
samdeep aarzoo
Ranch Hand

Joined: Jun 09, 2005
Posts: 160
but if we dont consider TLD case
except other than this there is no use of META-INF
this is just implicit behavior when we open jar file compiler creates.

Without META-INF file also we can deploy the application
please correct me if i m wrong

I should also note that, in jar file format, the META-INF folder can be very important. For example. it's where the container will look for TLD files when the jar contains custom tag libraries.
Annie Smith
Ranch Hand

Joined: Mar 05, 2005
Posts: 172
Originally posted by sandeep mittal:
Without META-INF file also we can deploy the application
please correct me if i m wrong


Yes. For a web application, we can.


Cheers!<br /><b>Annie</b>
Yuriy Zilbergleyt
Ranch Hand

Joined: Dec 13, 2004
Posts: 429
META-INF/MANIFEST.MF is also where you would specify library dependencies of your application.

-Yuriy
Rajesh Agarwal
Ranch Hand

Joined: Aug 01, 2005
Posts: 79
The .MF file stands for the manifest. It basically contains the information which is contained in the WEB-INF directory
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: why to use META-INF directory under webapplication name
 
Similar Threads
Doubt about Locations of TLD files
Confirmation About tag files inside jar
what is the use of meta-inf directory in weblogic server??
META-INF/application.xml
taglib-directive tagdir and uri