aspose file tools*
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

Joined: Sep 15, 2013
Posts: 28

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: 2771

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: 9318

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
Similar Threads
Hot Deploy with Weblogic 8.1
message-resources reload
META-INF directory?
JBoss 7.1.1.Final - Log4j - EAR File application - Logging not working
Diff. Btwn EAR, WAR, & JAR Files????