I've a problem and a solution. But I don't like my solution, could someone provide an elegant way of solving this?
This is for running web application inside IDE. I've an EAR project and I'm using RAD7.5. My EAR project looks like
EAR_Project
Deployment Descriptor
Module
Jar1
Jar2
War
Meta-Inf
application.xml
My question is, Jar1 and Jar2 has its own libraries and properties files. As of now, I copy all libraries and properties of Jar1&Jar2 into War/Web-Inf and it works fine. Is there a config change that i make to application.xml so that I don't have to copy dependent libraries and properties? Your help is much appreciated
In application.xml there can be
<library-directory>
element that points to the location to shared libraries within EAR. For example, for directorylib
in the root of EAR there should be entry<library-directory>lib</library-directory>
in application.xml: