This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Configure a shared library dir in AS7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Configure a shared library dir in AS7" Watch "Configure a shared library dir in AS7" New topic
Author

Configure a shared library dir in AS7

Xolani Nkosi
Ranch Hand

Joined: Apr 29, 2009
Posts: 32
How do you configure a shared library directory in AS7? So that any EAR I deploy will find the contents of that directory on its classpath, if it looks up a properties file or wants to use a class in a jar in the folder? In websphere, it's dead simple, and I was hoping that the contents of $JBOSS_HOME/standalone/lib or $JBOSS_HOME/standalone/lib/ext would automatically be on the classpath, with no joy.

So how's it done? Preferably with as little changes to the EAR as possible, as I'm trying to make an EAR that'll deploy to other app servers too (the question of why so much vendor-specific configuration is needed for what should a standard platform is a question for another day...)

Thanks
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9957
    
163

If you are looking for a portable way of doing this, then the spec recommended way is packaging the libraries within the .ear/lib folder. That should make it available in the classpath of the .ear

[My Blog] [JavaRanch Journal]
Xolani Nkosi
Ranch Hand

Joined: Apr 29, 2009
Posts: 32
Thanks, but that's not that way I want to do things, as it would mean redeploying the EAR every time I want to make a config change to a properties file. Anyone know how to configure a shared library folder in AS7?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9957
    
163

Thanks, but that's not that way I want to do things, as it would mean redeploying the EAR every time I want to make a config change to a properties file.

In that case, you'll have to go with a non-portable approach.

Anyone know how to configure a shared library folder in AS7?


See this http://community.jboss.org/message/615774#615774#615774
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Configure a shared library dir in AS7
 
Similar Threads
manifest classpath
UnsatisfiedLink error
eclipse ganymede - how to redirect non ejb library jars to lib
UnsatisfiedLink error
UnsatisfiedLink Error