• 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:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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.
 
Do you want ants? Because that's how you get ants. And a tiny ads:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic