Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Purpose of different "lib" in JBoss 5

 
rastogi payam
Ranch Hand
Posts: 47
Chrome Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • 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
 
Ifteqar Ald
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • 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
Chrome Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • 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
 
rastogi payam
Ranch Hand
Posts: 47
Chrome Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic