You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Jacek Laskowski <ja...@laskowski.net.pl> on 2008/02/23 01:19:03 UTC
Re: EAR Independence
On Thu, Jan 31, 2008 at 7:36 AM, bdaye <ja...@gmail.com> wrote:
> How can I make my deployed EAR independent of whatever is in the Geronimo
> Repo? Currently, I find myself specifying a lot of system dependencies in
> my openejb-jar.xml file (deployment-1.2:dependency). So basically, I want
> to make every JAR that is distributed with my EAR priority.
Put these jars in lib directory of your EAR or define such a lib
directory in the deployment descriptor and move the jars there. Have
you tried it already?
Jacek
--
Jacek Laskowski
http://www.JacekLaskowski.pl
Re: EAR Independence
Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On Mon, Feb 25, 2008 at 4:38 AM, Kevan Miller <ke...@gmail.com> wrote:
> Placing jars in your ear's lib directory will make their classes available
> to the ear classloader, but system classloaders will still have priority
> over your ear classloader.
> You'll still need to invert classloading or hide classes for this to work.
> Parent classloaders will still have priority... Something like
>
>
> <hidden-classes>
> <filter>javax.xml.ws.</filter>
> </hidden-classes>
>
> or
>
> <inverse-classloading>
>
> Sounds like you've tried using inverse-classloading. What problems have you
> encountered?
Doh, completely forgot about this nifty features. Thanks Kevan! I
think it's time to have a wiki page about how to deploy apps with jars
that are in different version than those provided by Geronimo. It's
an excellent approach to get more involved in Geronimo development.
Anyone fancy looking into it?
Jacek
--
Jacek Laskowski
http://www.JacekLaskowski.pl
Re: EAR Independence
Posted by Kevan Miller <ke...@gmail.com>.
On Feb 22, 2008, at 7:19 PM, Jacek Laskowski wrote:
> On Thu, Jan 31, 2008 at 7:36 AM, bdaye <ja...@gmail.com>
> wrote:
>
>> How can I make my deployed EAR independent of whatever is in the
>> Geronimo
>> Repo? Currently, I find myself specifying a lot of system
>> dependencies in
>> my openejb-jar.xml file (deployment-1.2:dependency). So basically,
>> I want
>> to make every JAR that is distributed with my EAR priority.
>
> Put these jars in lib directory of your EAR or define such a lib
> directory in the deployment descriptor and move the jars there. Have
> you tried it already?
I think you may need to be more specific about your dependencies and
what problems you're running into...
Placing jars in your ear's lib directory will make their classes
available to the ear classloader, but system classloaders will still
have priority over your ear classloader.
You'll still need to invert classloading or hide classes for this to
work. Parent classloaders will still have priority... Something like
<hidden-classes>
<filter>javax.xml.ws.</filter>
</hidden-classes>
or
<inverse-classloading>
Sounds like you've tried using inverse-classloading. What problems
have you encountered?
--kevan