Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Purpose of different "lib" in JBoss 5

 
Ranch Hand
Posts: 47
Eclipse IDE Tomcat Server Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

There are three different "lib" folders in JBoss 5
1. /jboss-5.1.0.GA/lib
2. /jboss-5.1.0.GA/server/default/lib
3. /jboss-5.1.0.GA/server/default/deploy/myapp1.war/WEB-INF/lib

Can anyone please explain me the purpose of these three different "lib" folders and in which order and priority the Jars present in these folders are loaded?
and What happen if the same jar with different version is present in all the three "lib" folders and it is also used by our myapp.war and which will be given more priority.

Thanks
 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
/jboss-5.1.0.GA/lib contains library file. You Should not change the contents in this Directory. These are Jar Files used by Jboss to Provide Services
/jboss-5.1.0.GA/server/default/lib contains dependent jar files needed by the files under /jboss-5.1.0.GA/server/default/deploy/
/jboss-5.1.0.GA/server/default/deploy/myapp1.war/WEB-INF/lib Contains lib Files used by your Application
 
rastogi payam
Ranch Hand
Posts: 47
Eclipse IDE Tomcat Server Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Saahil for the reply but still some of my questions are unanswered like in which order and priority the Jars present in these folders are loaded?
and What happen if the same jar with different version is present in all the three "lib" folders and it is also used by our myapp.war and which will be given more priority.

Thanks
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
 
rastogi payam
Ranch Hand
Posts: 47
Eclipse IDE Tomcat Server Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks Jaikiran for the reply ...I have one more question that how can we make a deployement scoped and non scoped in JBOSS. I got these terms (scoped and non-scoped) from the link itself.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic