File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes Common jars with multiple ears Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Common jars with multiple ears" Watch "Common jars with multiple ears" New topic

Common jars with multiple ears

chicha sonu
Ranch Hand

Joined: Sep 15, 2013
Posts: 54

I have two Ears


Both my ears need some common jars like

If i pleace all the above required jars in my ear ,my ear size would grow big in size.
Earlier i used to deploy in Jboss 4.x and JBoss 5.1 where i userd to place all the requires jars as well as application relation proerty files in $JBOSS_HOME/profile/lib/

I am newbie to JBOSS-AS 7.1

Could someoneplease help me out with this.....

Thanks in advance..
Greg Charles

Joined: Oct 01, 2001
Posts: 2968

Hi, and welcome to Java Ranch!

I'm not the big JBoss expert around here, but I believe modules are the new concept that replaces lib jars. Some of the jars you listed are included as modules out of the box, and at most you will just have to update the extensions section your standalone.xml configuration file (if you are running a single server). For the others, you can create your own modules.
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441

Greg is correct, JBoss AS7 and WildFly (the new name of JBoss AS) uses module classloaders. By default, some modules are shipped out of the box. If you have some specific jars that you want to share between applications then you can create a module for it and add a dependency on that module from your application.

See the documentation here for details:

[My Blog] [JavaRanch Journal]
I agree. Here's the link:
subject: Common jars with multiple ears
It's not a secret anymore!