This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why to use META-INF directory under webapplication name

 
samdeep aarzoo
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most likely it's merely an artifact of making a jar/war file using the jar command.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Yuriy Zilbergleyt
Ranch Hand
Posts: 429
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
META-INF/MANIFEST.MF is also where you would specify library dependencies of your application.

-Yuriy
 
Rajesh Agarwal
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The .MF file stands for the manifest. It basically contains the information which is contained in the WEB-INF directory
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic