• Post Reply Bookmark Topic Watch Topic
  • New Topic

diff between jar, ear and war files in detail

 
nallagangu
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
Can some one explain the diff between application level(ear) web archive(war) and java archive(jar) files in detail..
thanks in Advance...
Nallagangu
 
Robin Luo
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ear: contains jar and war files, plus meta-inf/application.xml
jar: contains ejb class and supporting class files, plus meta-inf/ejb-jar.xml and xxx-ejb-jar.xml. (note that the xxx is an application server specific, e.g. ias (for iPlanet Application Server))
war: contains servlet, jsp, html and other static web files, plus web-inf/web.xml and xxx-web.xml
an example:
blahEjb.jar
+--meta-inf
| +-- ejb-jar.xml
| +-- ias-ejb-jar.xml
+--com
+--blah
+--package1 (lots of ejb classes)
+--package2 (lots of normal classes)
+--packageN
blah.war
+-- (lots of jsp and html files)
+--web-inf
| +-- web.xml
| +-- ias-web.xml
| +-- classes
| +--com
| +--blah
| +--package3 (lots of servlet classes)
| +--packageM (lots of supporting classes)
+--images (lots of jpg, gif etc files.)
blah.ear
+--meta-inf
| +-- application.xml
+--blahEjb.jar
+--blah.war
Wish that help
Cheers,
Robin Luo
 
Robin Luo
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To my own post above.
The format of indentation has been changed from the display.
Note that the
+--com
+--blah
+--package1
should look like com.blah.package1.
Cheers,
Robin Luo
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!